~ubuntu-branches/ubuntu/hardy/ifupdown/hardy

« back to all changes in this revision

Viewing changes to header.h

  • Committer: Package Import Robot
  • Author(s): Alexander Sack
  • Date: 2007-09-20 00:38:33 UTC
  • Revision ID: package-import@ubuntu.com-20070920003833-zpw27pfvyfl5p0jg
ifupdown.nw: use 100 as default route metric unless an explicit metric
parameter is set in /etc/network/interface; this applies for static and
dhcp interfaces and passes the -e IF_METRIC=%metric% option to dhclient{3}
in order to accomplish this. For details see the launchpad bug
(LP: #139403).

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
        int n_mappings;
81
81
        char **mapping;
82
82
};
83
 
#line 2644 "ifupdown.nw"
 
83
#line 2676 "ifupdown.nw"
84
84
#define MAX_OPT_DEPTH 10
85
 
#line 2702 "ifupdown.nw"
 
85
#line 2734 "ifupdown.nw"
86
86
#define EUNBALBRACK 10001
87
87
#define EUNDEFVAR   10002
88
 
#line 2727 "ifupdown.nw"
 
88
#line 2759 "ifupdown.nw"
89
89
#define MAX_VARNAME    32
90
90
#define EUNBALPER   10000
91
91
#line 408 "ifupdown.nw"
92
92
extern address_family *addr_fams[];
93
93
#line 1170 "ifupdown.nw"
94
94
interfaces_file *read_interfaces(char *filename);
95
 
#line 1943 "ifupdown.nw"
 
95
#line 1975 "ifupdown.nw"
96
96
allowup_defn *find_allowup(interfaces_file *defn, char *name);
97
 
#line 2396 "ifupdown.nw"
 
97
#line 2428 "ifupdown.nw"
98
98
int execute_all(interface_defn *ifd, execfn *exec, char *opt);
99
 
#line 2433 "ifupdown.nw"
 
99
#line 2465 "ifupdown.nw"
100
100
int iface_up(interface_defn *iface);
101
101
int iface_down(interface_defn *iface);
102
 
#line 2476 "ifupdown.nw"
 
102
#line 2508 "ifupdown.nw"
103
103
int execute(char *command, interface_defn *ifd, execfn *exec);
104
 
#line 2835 "ifupdown.nw"
 
104
#line 2867 "ifupdown.nw"
105
105
int run_mapping(char *physical, char *logical, int len, mapping_defn *map);
106
 
#line 3161 "ifupdown.nw"
 
106
#line 3193 "ifupdown.nw"
107
107
extern int no_act;
108
108
extern int verbose;
109
109