summaryrefslogtreecommitdiff
path: root/xutils.c
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:32:48 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-06-04 10:32:48 +0200
commitac5fd9168efaa4e149340340805b1be7425d8834 (patch)
tree6f87f03c79d0168c44f472c03f9f800c9883d266 /xutils.c
parent92206a78c27de6442f1428ccf8cd622fa3364a5a (diff)
xutils: break out promisc mode functions
Put them separately for the sake of maintanence. Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'xutils.c')
-rw-r--r--xutils.c21
1 files changed, 0 insertions, 21 deletions
diff --git a/xutils.c b/xutils.c
index e3e7f6f..991ff5b 100644
--- a/xutils.c
+++ b/xutils.c
@@ -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)