2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

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>
This commit is contained in:
Alexandru Copot
2013-09-07 12:35:14 +03:00
committed by Ben Pfaff
parent fe7fe47b84
commit 7ba19d412a
3 changed files with 13 additions and 0 deletions

View File

@@ -1428,6 +1428,9 @@ nd_to_iff_flags(enum netdev_flags nd)
iff |= IFF_PPROMISC;
#endif
}
if (nd & NETDEV_LOOPBACK) {
iff |= IFF_LOOPBACK;
}
return iff;
}
@@ -1441,6 +1444,9 @@ iff_to_nd_flags(int iff)
if (iff & IFF_PROMISC) {
nd |= NETDEV_PROMISC;
}
if (iff & IFF_LOOPBACK) {
nd |= NETDEV_LOOPBACK;
}
return nd;
}