Signed-off-by: Alexandru Copot <[email protected]>
---
lib/netdev-bsd.c | 6 ++++++
lib/netdev-linux.c | 6 ++++++
2 files changed, 12 insertions(+)
diff --git a/lib/netdev-bsd.c b/lib/netdev-bsd.c
index fdea10b..3eb29ea 100644
--- a/lib/netdev-bsd.c
+++ b/lib/netdev-bsd.c
@@ -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;
}
diff --git a/lib/netdev-linux.c b/lib/netdev-linux.c
index 26fb32d..2752623 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;
}
--
1.8.4
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev