Lines 59-64
Link Here
|
59 |
|
59 |
|
60 |
/* Our default configuration file */ |
60 |
/* Our default configuration file */ |
61 |
const char DEFAULT_CONF[] = "/etc/iftab"; |
61 |
const char DEFAULT_CONF[] = "/etc/iftab"; |
|
|
62 |
const char ETCNET_CONF[] = "/etc/net/iftab"; |
62 |
|
63 |
|
63 |
/* Debian stuff */ |
64 |
/* Debian stuff */ |
64 |
const char DEBIAN_CONFIG_FILE[] = "/etc/network/interfaces"; |
65 |
const char DEBIAN_CONFIG_FILE[] = "/etc/network/interfaces"; |
Lines 2620-2625
Link Here
|
2620 |
int is_debian = 0; |
2621 |
int is_debian = 0; |
2621 |
int skfd; |
2622 |
int skfd; |
2622 |
int ret; |
2623 |
int ret; |
|
|
2624 |
FILE * file_exist; |
2625 |
file_exist = fopen(DEFAULT_CONF, "r"); |
2626 |
if(!file_exist) conf_file = ETCNET_CONF; |
2627 |
else fclose(file_exist); |
2623 |
|
2628 |
|
2624 |
/* Loop over all command line options */ |
2629 |
/* Loop over all command line options */ |
2625 |
while(1) |
2630 |
while(1) |