diff options
author | Alexandru Copot <alex.mihai.c@gmail.com> | 2013-09-07 12:35:14 +0300 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2013-09-07 09:33:51 -0700 |
commit | 7ba19d412a0e8dc762a86f7ccbbdf4e39133cc71 (patch) | |
tree | 6a84f7bf248b4ce7849aef7ca3a2a0af87a311f4 /lib/netdev-linux.c | |
parent | fe7fe47b84fce27a05a6c97bf2c33aeb885442ee (diff) |
netdev: update IFF_LOOPBACK flag for linux and bsd devices
Signed-off-by: Alexandru Copot <alex.mihai.c@gmail.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
Diffstat (limited to 'lib/netdev-linux.c')
-rw-r--r-- | lib/netdev-linux.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c index 26fb32d8..2752623d 100644 --- a/lib/netdev-linux.c +++ b/lib/netdev-linux.c @@ -2510,6 +2510,9 @@ nd_to_iff_flags(enum netdev_flags nd) if (nd & NETDEV_PROMISC) { iff |= IFF_PROMISC; } + if (nd & NETDEV_LOOPBACK) { + iff |= IFF_LOOPBACK; + } return iff; } @@ -2523,6 +2526,9 @@ iff_to_nd_flags(int iff) if (iff & IFF_PROMISC) { nd |= NETDEV_PROMISC; } + if (iff & IFF_LOOPBACK) { + nd |= NETDEV_LOOPBACK; + } return nd; } |