|
|
4aca6e |
From 61a81751cb25ce21c1daca887b8f0fb5d5a412ab Mon Sep 17 00:00:00 2001
|
|
|
4aca6e |
From: Phil Sutter <psutter@redhat.com>
|
|
|
4aca6e |
Date: Tue, 28 Feb 2017 12:22:06 +0100
|
|
|
4aca6e |
Subject: [PATCH] iplink: bridge_slave: add support for IFLA_BRPORT_PROXYARP
|
|
|
4aca6e |
|
|
|
4aca6e |
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1374360
|
|
|
4aca6e |
Upstream Status: iproute2.git commit f6e615dec9ee9
|
|
|
4aca6e |
Conflicts: Context changes due to previously backported mcast_router and
|
|
|
4aca6e |
mcast_fast_leave attributes.
|
|
|
4aca6e |
|
|
|
4aca6e |
commit f6e615dec9ee9b688308e85a03a51125a9c9fdb9
|
|
|
4aca6e |
Author: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
|
|
|
4aca6e |
Date: Tue Feb 16 16:08:52 2016 +0100
|
|
|
4aca6e |
|
|
|
4aca6e |
iplink: bridge_slave: add support for IFLA_BRPORT_PROXYARP
|
|
|
4aca6e |
|
|
|
4aca6e |
Add support to be able to view and change IFLA_BRPORT_PROXYARP port
|
|
|
4aca6e |
attribute.
|
|
|
4aca6e |
|
|
|
4aca6e |
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
|
|
|
4aca6e |
---
|
|
|
4aca6e |
ip/iplink_bridge_slave.c | 9 +++++++++
|
|
|
4aca6e |
1 file changed, 9 insertions(+)
|
|
|
4aca6e |
|
|
|
4aca6e |
diff --git a/ip/iplink_bridge_slave.c b/ip/iplink_bridge_slave.c
|
|
|
4aca6e |
index 66c3a00..5a84948 100644
|
|
|
4aca6e |
--- a/ip/iplink_bridge_slave.c
|
|
|
4aca6e |
+++ b/ip/iplink_bridge_slave.c
|
|
|
4aca6e |
@@ -29,6 +29,7 @@ static void print_explain(FILE *f)
|
|
|
4aca6e |
" [ root_block {on | off} ]\n"
|
|
|
4aca6e |
" [ learning {on | off} ]\n"
|
|
|
4aca6e |
" [ flood {on | off} ]\n"
|
|
|
4aca6e |
+ " [ proxy_arp {on | off} ]\n"
|
|
|
4aca6e |
" [ mcast_router MULTICAST_ROUTER ]\n"
|
|
|
4aca6e |
" [ mcast_fast_leave {on | off} ]\n"
|
|
|
4aca6e |
);
|
|
|
4aca6e |
@@ -101,6 +102,10 @@ static void bridge_slave_print_opt(struct link_util *lu, FILE *f,
|
|
|
4aca6e |
print_onoff(f, "flood",
|
|
|
4aca6e |
rta_getattr_u8(tb[IFLA_BRPORT_UNICAST_FLOOD]));
|
|
|
4aca6e |
|
|
|
4aca6e |
+ if (tb[IFLA_BRPORT_PROXYARP])
|
|
|
4aca6e |
+ print_onoff(f, "proxy_arp",
|
|
|
4aca6e |
+ rta_getattr_u8(tb[IFLA_BRPORT_PROXYARP]));
|
|
|
4aca6e |
+
|
|
|
4aca6e |
if (tb[IFLA_BRPORT_MULTICAST_ROUTER])
|
|
|
4aca6e |
fprintf(f, "mcast_router %u ",
|
|
|
4aca6e |
rta_getattr_u8(tb[IFLA_BRPORT_MULTICAST_ROUTER]));
|
|
|
4aca6e |
@@ -172,6 +177,10 @@ static int bridge_slave_parse_opt(struct link_util *lu, int argc, char **argv,
|
|
|
4aca6e |
NEXT_ARG();
|
|
|
4aca6e |
bridge_slave_parse_on_off("flood", *argv, n,
|
|
|
4aca6e |
IFLA_BRPORT_UNICAST_FLOOD);
|
|
|
4aca6e |
+ } else if (matches(*argv, "proxy_arp") == 0) {
|
|
|
4aca6e |
+ NEXT_ARG();
|
|
|
4aca6e |
+ bridge_slave_parse_on_off("proxy_arp", *argv, n,
|
|
|
4aca6e |
+ IFLA_BRPORT_PROXYARP);
|
|
|
4aca6e |
} else if (matches(*argv, "mcast_router") == 0) {
|
|
|
4aca6e |
__u8 mcast_router;
|
|
|
4aca6e |
|
|
|
4aca6e |
--
|
|
|
4aca6e |
1.8.3.1
|
|
|
4aca6e |
|