Skip to contentSkip to conversation

ip: add AMT support

PATCH Applied Taehee Yoo 2 participants 2 messages Oct 30, 2021 – Nov 4, 2021

Subsystems (2)
lore
Share & tools
lore

Taehee Yoo

author
#0 lore raw

PATCH v3 1/1 ip: add AMT support

Add basic support for Automatic Multicast Tunneling (AMT) network devices.

---
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
index bcc5f816..2a7a51c3 100644
@@ -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
index b07a5c7d..c784f819 100644
@@ -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
index 4e74512e..a3ea775d 100644
@@ -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
Applied
#1 lore raw
Quoted 10 lines · Taehee Yoo

Add basic support for Automatic Multicast Tunneling (AMT) network devices.

---
v1 -> v2:
- Remove unnecessary check
- Use strcmp() instead of matches().
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.