diff options
Diffstat (limited to 'xutils.c')
-rw-r--r-- | xutils.c | 21 |
1 files changed, 0 insertions, 21 deletions
@@ -569,27 +569,6 @@ void register_signal_f(int signal, void (*handler)(int), int flags) sigaction(signal, &saction, NULL); } -short enter_promiscuous_mode(char *ifname) -{ - short ifflags; - - if (!strncmp("any", ifname, strlen("any"))) - return 0; - - ifflags = device_get_flags(ifname); - device_set_flags(ifname, ifflags | IFF_PROMISC); - - return ifflags; -} - -void leave_promiscuous_mode(char *ifname, short oldflags) -{ - if (!strncmp("any", ifname, strlen("any"))) - return; - - device_set_flags(ifname, oldflags); -} - int device_up_and_running(char *ifname) { if (!ifname) |