ip: add AMT support
Subsystems (2)
PATCH v3 1/1 ip: add AMT support
Add basic support for Automatic Multicast Tunneling (AMT) network devices.
Signed-off-by Taehee Yoo <[email protected]>
---
v1 -> v2:
- Remove unnecessary check
- Use strcmp() instead of matches().
v2 -> v3:
- Remove unnecessary check
ip/Makefile | 3 +- ip/ip.c | 4 +- ip/iplink.c | 2 +- ip/iplink_amt.c | 200 ++++++++++++++++++++++++++++++++++++++++++ man/man8/ip-link.8.in | 46 ++++++++++ 5 files changed, 251 insertions(+), 4 deletions(-) create mode 100644 ip/iplink_amt.c
ip/Makefile +2 -1
@@ -11,7 +11,8 @@ IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \ iplink_bridge.o iplink_bridge_slave.o ipfou.o iplink_ipvlan.o \ iplink_geneve.o iplink_vrf.o iproute_lwtunnel.o ipmacsec.o ipila.o \ ipvrf.o iplink_xstats.o ipseg6.o iplink_netdevsim.o iplink_rmnet.o \ - ipnexthop.o ipmptcp.o iplink_bareudp.o iplink_wwan.o ipioam6.o + ipnexthop.o ipmptcp.o iplink_bareudp.o iplink_wwan.o ipioam6.o \ + iplink_amt.o RTMONOBJ=rtmon.o
ip/ip.c +2 -2
@@ -64,8 +64,8 @@ static void usage(void)fprintf (stderr,"Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }\n" " ip [ -force ] -batch filename\n" -"where OBJECT := { address | addrlabel | fou | help | ila | ioam | l2tp | link |\n" -" macsec | maddress | monitor | mptcp | mroute | mrule |\n" +"where OBJECT := { address | addrlabel | amt | fou | help | ila | ioam | l2tp |\n" +" link | macsec | maddress | monitor | mptcp | mroute | mrule |\n" " neighbor | neighbour | netconf | netns | nexthop | ntable |\n" " ntbl | route | rule | sr | tap | tcpmetrics |\n" " token | tunnel | tuntap | vrf | xfrm }\n"
ip/iplink.c +1 -1
@@ -50,7 +50,7 @@ void iplink_types_usage(void) {/* Remember to add new entry here if new type is added. */ fprintf (stderr, -"TYPE := { bareudp | bond | bond_slave | bridge | bridge_slave |\n" +"TYPE := { amt | bareudp | bond | bond_slave | bridge | bridge_slave |\n" " dummy | erspan | geneve | gre | gretap | ifb |\n" " ip6erspan | ip6gre | ip6gretap | ip6tnl |\n" " ipip | ipoib | ipvlan | ipvtap |\n"
ip/iplink_amt.c new file +200 -0
200 lines not on this page · raw message
man/man8/ip-link.8.in +46 -0
64 lines not on this page · raw message
Signature · 1 line
2.17.1
David Ahern
AppliedQuoted 10 lines · Taehee Yoo
Add basic support for Automatic Multicast Tunneling (AMT) network devices.
Signed-off-by Taehee Yoo <[email protected]>---
v1 -> v2:
- Remove unnecessary check
- Usestrcmp()instead ofmatches().
v2 -> v3:
- Remove unnecessary check
Quoted 8 lines
ip/Makefile | 3 +- ip/ip.c | 4 +- ip/iplink.c | 2 +- ip/iplink_amt.c | 200 ++++++++++++++++++++++++++++++++++++++++++ man/man8/ip-link.8.in | 46 ++++++++++ 5 files changed, 251 insertions(+), 4 deletions(-) create mode 100644 ip/iplink_amt.c
applied to iproute2-next.