#include #include #include #include "promisc.h" #include "dev.h" 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); } .git Git repository'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2016-06-01 09:18:21 +0200
committerChristoph Hellwig <hch@lst.de>2016-06-01 09:21:26 +0200
commitf2bf2c70488145c961306b873c75147048db743d (patch)
tree031b7be24ada96322bc002211e2bb10a7025d3c6
parent8985f53ee2eaa503c22e2fc90e81b1fb8e547ab4 (diff)
freevxfs: avoid the need for forward declaring the super operations
Signed-off-by: Christoph Hellwig <hch@lst.de>
-rw-r--r--fs/freevxfs/vxfs_super.c19
1 files changed, 6 insertions, 13 deletions
diff --git a/fs/freevxfs/vxfs_super.c b/fs/freevxfs/vxfs_super.c