iproute: ila and fou additions
Subsystems (2)
cover iproute: ila and fou additions
Patch set includes:
- Allow configuring checksum mode for ila LWT (e.g. configure checksum neutral
- Configuration for performing ila translations using netfilter hook
- fou encapsulation for ip6tnl and gre6
- fou listener for IPv6
*** SUBJECT HERE ***
*** BLURB HERE ***
Tom Herbert (5):
ila: Support for checksum neutral translation
ila: Support for configuring ila to use netfilter hook
ip6tnl: Support for fou encapsulation
gre6: Support for fou encapsulation
fou: Allowing configuring IPv6 listener
ip/Makefile | 2 +- ip/ip.c | 3 +- ip/ip_common.h | 1 + ip/ipfou.c | 8 +- ip/ipila.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++++ ip/iproute_lwtunnel.c | 57 ++++++++++- ip/link_gre6.c | 101 ++++++++++++++++++++ ip/link_ip6tnl.c | 92 +++++++++++++++++- 8 files changed, 516 insertions(+), 7 deletions(-) create mode 100644 ip/ipila.c
Signature · 1 line
2.8.0.rc2
PATCH 1/5 ila: Support for checksum neutral translation
Add configuration of ila LWT tunnels for checksum mode including checksum neutral translation.
--- ip/iproute_lwtunnel.c | 57 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 55 insertions(+), 2 deletions(-)
ip/iproute_lwtunnel.c +55 -2
@@ -90,6 +90,32 @@ static void print_encap_ip(FILE *fp, struct rtattr *encap)fprintf (fp,"tos %d " ,rta_getattr_u8 (tb[LWTUNNEL_IP_TOS ])); } +static char *ila_csum_mode2name (__u8 csum_mode) +{ +switch (csum_mode) { +case ILA_CSUM_ADJUST_TRANSPORT : +return "adj-transport" ; +case ILA_CSUM_NEUTRAL_MAP : +return "neutral-map" ; +case ILA_CSUM_NO_ACTION : +return "no-action" ; +default : +return "unknown" ; + } +} + +static __u8 ila_csum_name2mode (char *name) +{ +if (strcmp (name,"adj-transport" ) ==0 ) +return ILA_CSUM_ADJUST_TRANSPORT ; +else if (strcmp (name,"neutral-map" ) ==0 ) +return ILA_CSUM_NEUTRAL_MAP ; +else if (strcmp (name,"no-action" ) ==0 ) +return ILA_CSUM_NO_ACTION ; +else +return -1 ; +} +static void print_encap_ila (FILE *fp,struct rtattr *encap) {struct rtattr *tb[ILA_ATTR_MAX +1 ];
@@ -103,6 +129,10 @@ static void print_encap_ila(FILE *fp, struct rtattr *encap) abuf, sizeof(abuf));fprintf (fp," %s " , abuf); } + +if (tb[ILA_ATTR_CSUM_MODE ]) +fprintf (fp," csum-mode %s " , +ila_csum_mode2name (rta_getattr_u8 (tb[ILA_ATTR_CSUM_MODE ]))); }static void print_encap_ip6 (FILE *fp,struct rtattr *encap)
@@ -246,10 +276,33 @@ static int parse_encap_ila(struct rtattr *rta, size_t len,exit (1 ); } + argc--; argv++; +rta_addattr64 (rta,1024 ,ILA_ATTR_LOCATOR , locator); - *argcp = argc; - *argvp = argv; +while (argc >0 ) { +if (strcmp (*argv,"csum-mode" ) ==0 ) { +__u8 csum_mode; + +NEXT_ARG (); + + csum_mode =ila_csum_name2mode (*argv); +if (csum_mode <0 ) +invarg ("\"csum-mode\" value is invalid\n" , *argv); + +rta_addattr8 (rta,1024 ,ILA_ATTR_CSUM_MODE , csum_mode); + + argc--; argv++; + }else { +break ; + } + } + +/* argv is currently the first unparsed argument, +* but the lwt_parse_encap() caller will move to the next, +* so step back */ + *argcp = argc +1 ; + *argvp = argv -1 ;return 0 ; }
Signature · 1 line
2.8.0.rc2
PATCH 2/5 ila: Support for configuring ila to use netfilter hook
In reply to Tom Herbert--- ip/Makefile | 2 +- ip/ip.c | 3 +- ip/ip_common.h | 1 + ip/ipila.c | 259 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 263 insertions(+), 2 deletions(-) create mode 100644 ip/ipila.c
ip/Makefile +1 -1
@@ -7,7 +7,7 @@ IPOBJ=ip.o ipaddress.o ipaddrlabel.o iproute.o iprule.o ipnetns.o \ iplink_vxlan.o tcp_metrics.o iplink_ipoib.o ipnetconf.o link_ip6tnl.o \ link_iptnl.o link_gre6.o iplink_bond.o iplink_bond_slave.o iplink_hsr.o \ iplink_bridge.o iplink_bridge_slave.o ipfou.o iplink_ipvlan.o \ - iplink_geneve.o iplink_vrf.o iproute_lwtunnel.o ipmacsec.o + iplink_geneve.o iplink_vrf.o iproute_lwtunnel.o ipmacsec.o ipila.o RTMONOBJ=rtmon.o
ip/ip.c +2 -1
@@ -51,7 +51,7 @@ static void usage(void)" ip [ -force ] -batch filename\n" "where OBJECT := { link | address | addrlabel | route | rule | neigh | ntable |\n" " tunnel | tuntap | maddress | mroute | mrule | monitor | xfrm |\n" -" netns | l2tp | fou | macsec | tcp_metrics | token | netconf }\n" +" netns | l2tp | fou | macsec | tcp_metrics | token | netconf | ila }\n" " OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |\n" " -h[uman-readable] | -iec |\n" " -f[amily] { inet | inet6 | ipx | dnet | mpls | bridge | link } |\n"
@@ -84,6 +84,7 @@ static const struct cmd { { "link", do_iplink }, { "l2tp", do_ipl2tp }, { "fou", do_ipfou }, + { "ila", do_ipila }, { "macsec", do_ipmacsec }, { "tunnel", do_iptunnel }, { "tunl", do_iptunnel },
ip/ip_common.h +1 -0
@@ -52,6 +52,7 @@ int do_netns(int argc, char **argv);int do_xfrm (int argc,char **argv);int do_ipl2tp (int argc,char **argv);int do_ipfou (int argc,char **argv); +extern int do_ipila (int argc,char **argv);int do_tcp_metrics (int argc,char **argv);int do_ipnetconf (int argc,char **argv);int do_iptoken (int argc,char **argv);
ip/ipila.c new file +259 -0
259 lines not on this page · raw message
Signature · 1 line
2.8.0.rc2
PATCH 4/5 gre6: Support for fou encapsulation
In reply to Tom Herbert--- ip/link_gre6.c | 101 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 101 insertions(+)
ip/link_gre6.c +101 -0
@@ -38,6 +38,9 @@ static void print_usage(FILE *f)fprintf (f," [ hoplimit TTL ] [ encaplimit ELIM ]\n" );fprintf (f," [ tclass TCLASS ] [ flowlabel FLOWLABEL ]\n" );fprintf (f," [ dscp inherit ] [ dev PHYS_DEV ]\n" ); +fprintf (f," [ noencap ] [ encap { fou | gue | none } ]\n" ); +fprintf (f," [ encap-sport PORT ] [ encap-dport PORT ]\n" ); +fprintf (f," [ [no]encap-csum ] [ [no]encap-csum6 ] [ [no]encap-remcsum ]\n" );fprintf (f,"\n" );fprintf (f,"Where: NAME := STRING\n" );fprintf (f," ADDR := IPV6_ADDRESS\n" );
@@ -80,6 +83,10 @@ static int gre_parse_opt(struct link_util *lu, int argc, char **argv,unsigned int flags =0 ;__u8 hop_limit =DEFAULT_TNL_HOP_LIMIT ;__u8 encap_limit =IPV6_DEFAULT_TNL_ENCAP_LIMIT ; +__u16 encaptype =0 ; +__u16 encapflags =TUNNEL_ENCAP_FLAG_CSUM6 ; +__u16 encapsport =0 ; +__u16 encapdport =0 ;int len;if (!(n->nlmsg_flags &NLM_F_CREATE )) {
@@ -148,6 +155,18 @@ get_failed:if (greinfo[IFLA_GRE_FLAGS ]) flags =rta_getattr_u32 (greinfo[IFLA_GRE_FLAGS ]); + +if (greinfo[IFLA_GRE_ENCAP_TYPE ]) + encaptype =rta_getattr_u16 (greinfo[IFLA_GRE_ENCAP_TYPE ]); + +if (greinfo[IFLA_GRE_ENCAP_FLAGS ]) + encapflags =rta_getattr_u16 (greinfo[IFLA_GRE_ENCAP_FLAGS ]); + +if (greinfo[IFLA_GRE_ENCAP_SPORT ]) + encapsport =rta_getattr_u16 (greinfo[IFLA_GRE_ENCAP_SPORT ]); + +if (greinfo[IFLA_GRE_ENCAP_DPORT ]) + encapdport =rta_getattr_u16 (greinfo[IFLA_GRE_ENCAP_DPORT ]); }while (argc >0 ) {
@@ -279,6 +298,40 @@ get_failed:if (strcmp (*argv,"inherit" ) !=0 )invarg ("not inherit" , *argv); flags |=IP6_TNL_F_RCV_DSCP_COPY ; + }else if (strcmp (*argv,"noencap" ) ==0 ) { + encaptype =TUNNEL_ENCAP_NONE ; + }else if (strcmp (*argv,"encap" ) ==0 ) { +NEXT_ARG (); +if (strcmp (*argv,"fou" ) ==0 ) + encaptype =TUNNEL_ENCAP_FOU ; +else if (strcmp (*argv,"gue" ) ==0 ) + encaptype =TUNNEL_ENCAP_GUE ; +else if (strcmp (*argv,"none" ) ==0 ) + encaptype =TUNNEL_ENCAP_NONE ; +else +invarg ("Invalid encap type." , *argv); + }else if (strcmp (*argv,"encap-sport" ) ==0 ) { +NEXT_ARG (); +if (strcmp (*argv,"auto" ) ==0 ) + encapsport =0 ; +else if (get_u16 (&encapsport, *argv,0 )) +invarg ("Invalid source port." , *argv); + }else if (strcmp (*argv,"encap-dport" ) ==0 ) { +NEXT_ARG (); +if (get_u16 (&encapdport, *argv,0 )) +invarg ("Invalid destination port." , *argv); + }else if (strcmp (*argv,"encap-csum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_CSUM ; + }else if (strcmp (*argv,"noencap-csum" ) ==0 ) { + encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM ; + }else if (strcmp (*argv,"encap-udp6-csum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_CSUM6 ; + }else if (strcmp (*argv,"noencap-udp6-csum" ) ==0 ) { + encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6 ; + }else if (strcmp (*argv,"encap-remcsum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_REMCSUM ; + }else if (strcmp (*argv,"noencap-remcsum" ) ==0 ) { + encapflags &= ~TUNNEL_ENCAP_FLAG_REMCSUM ; }else usage (); argc--; argv++;
@@ -297,6 +350,11 @@ get_failed:addattr_l (n,1024 ,IFLA_GRE_FLOWINFO , &flowinfo,4 );addattr_l (n,1024 ,IFLA_GRE_FLAGS , &flowinfo,4 ); +addattr16 (n,1024 ,IFLA_GRE_ENCAP_TYPE , encaptype); +addattr16 (n,1024 ,IFLA_GRE_ENCAP_FLAGS , encapflags); +addattr16 (n,1024 ,IFLA_GRE_ENCAP_SPORT ,htons (encapsport)); +addattr16 (n,1024 ,IFLA_GRE_ENCAP_DPORT ,htons (encapdport)); +return 0 ; }
@@ -395,6 +453,49 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])fputs ("icsum " , f);if (oflags &GRE_CSUM )fputs ("ocsum " , f); + +if (tb[IFLA_GRE_ENCAP_TYPE ] && + *(__u16 *)RTA_DATA (tb[IFLA_GRE_ENCAP_TYPE ]) !=TUNNEL_ENCAP_NONE ) { +__u16 type =rta_getattr_u16 (tb[IFLA_GRE_ENCAP_TYPE ]); +__u16 flags =rta_getattr_u16 (tb[IFLA_GRE_ENCAP_FLAGS ]); +__u16 sport =rta_getattr_u16 (tb[IFLA_GRE_ENCAP_SPORT ]); +__u16 dport =rta_getattr_u16 (tb[IFLA_GRE_ENCAP_DPORT ]); + +fputs ("encap " , f); +switch (type) { +case TUNNEL_ENCAP_FOU : +fputs ("fou " , f); +break ; +case TUNNEL_ENCAP_GUE : +fputs ("gue " , f); +break ; +default : +fputs ("unknown " , f); +break ; + } + +if (sport ==0 ) +fputs ("encap-sport auto " , f); +else +fprintf (f,"encap-sport %u" ,ntohs (sport)); + +fprintf (f,"encap-dport %u " ,ntohs (dport)); + +if (flags &TUNNEL_ENCAP_FLAG_CSUM ) +fputs ("encap-csum " , f); +else +fputs ("noencap-csum " , f); + +if (flags &TUNNEL_ENCAP_FLAG_CSUM6 ) +fputs ("encap-csum6 " , f); +else +fputs ("noencap-csum6 " , f); + +if (flags &TUNNEL_ENCAP_FLAG_REMCSUM ) +fputs ("encap-remcsum " , f); +else +fputs ("noencap-remcsum " , f); + } } static void gre_print_help(struct link_util *lu, int argc, char **argv,
Signature · 1 line
2.8.0.rc2
PATCH 5/5 fou: Allowing configuring IPv6 listener
In reply to Tom Herbert--- ip/ipfou.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
ip/ipfou.c +6 -2
@@ -25,8 +25,8 @@static void usage (void ) { -fprintf (stderr,"Usage: ip fou add port PORT { ipproto PROTO | gue }\n" ); -fprintf (stderr," ip fou del port PORT\n" ); +fprintf (stderr,"Usage: ip fou add port PORT { ipproto PROTO | gue } [ -6 ]\n" ); +fprintf (stderr," ip fou del port PORT [ -6 ]\n" );fprintf (stderr,"\n" );fprintf (stderr,"Where: PROTO { ipproto-name | 1..255 }\n" );fprintf (stderr," PORT { 1..65535 }\n" );
@@ -50,6 +50,7 @@ static int fou_parse_opt(int argc, char **argv, struct nlmsghdr *n,__u8 ipproto, type;bool gue_set = false;int ipproto_set =0 ; +unsigned short family =AF_INET ;while (argc >0 ) {if (!matches (*argv,"port" )) {
@@ -71,6 +72,8 @@ static int fou_parse_opt(int argc, char **argv, struct nlmsghdr *n, ipproto_set =1 ; }else if (!matches (*argv,"gue" )) { gue_set = true; + }else if (!matches (*argv,"-6" )) { + family =AF_INET6 ; }else {fprintf (stderr,"fou: unknown command \"%s\"?\n" , *argv);usage ();
@@ -98,6 +101,7 @@ static int fou_parse_opt(int argc, char **argv, struct nlmsghdr *n,addattr16 (n,1024 ,FOU_ATTR_PORT , port);addattr8 (n,1024 ,FOU_ATTR_TYPE , type); +addattr16 (n,1024 ,FOU_ATTR_AF , family);if (ipproto_set)addattr8 (n,1024 ,FOU_ATTR_IPPROTO , ipproto);
Signature · 1 line
2.8.0.rc2
PATCH 3/5 ip6tnl: Support for fou encapsulation
In reply to Tom Herbert--- ip/link_ip6tnl.c | 92 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 91 insertions(+), 1 deletion(-)
ip/link_ip6tnl.c +91 -1
@@ -37,6 +37,9 @@ static void print_usage(FILE *f)fprintf (f," [ dev PHYS_DEV ] [ encaplimit ELIM ]\n" );fprintf (f," [ hoplimit HLIM ] [ tclass TCLASS ] [ flowlabel FLOWLABEL ]\n" );fprintf (f," [ dscp inherit ] [ fwmark inherit ]\n" ); +fprintf (f," [ noencap ] [ encap { fou | gue | none } ]\n" ); +fprintf (f," [ encap-sport PORT ] [ encap-dport PORT ]\n" ); +fprintf (f," [ [no]encap-csum ] [ [no]encap-csum6 ] [ [no]encap-remcsum ]\n" );fprintf (f,"\n" );fprintf (f,"Where: NAME := STRING\n" );fprintf (f," ADDR := IPV6_ADDRESS\n" );
@@ -76,6 +79,10 @@ static int ip6tunnel_parse_opt(struct link_util *lu, int argc, char **argv,__u32 flags =0 ;__u32 link =0 ;__u8 proto =0 ; +__u16 encaptype =0 ; +__u16 encapflags =TUNNEL_ENCAP_FLAG_CSUM6 ; +__u16 encapsport =0 ; +__u16 encapdport =0 ;memset (&laddr,0 ,sizeof (laddr));memset (&raddr,0 ,sizeof (raddr));
@@ -142,6 +149,7 @@ get_failed: }while (argc >0 ) { +fprintf (stderr,"Process %s\n" , *argv);if (matches (*argv,"mode" ) ==0 ) {NEXT_ARG (); if (strcmp(*argv, "ipv6/ipv6") == 0 ||
@@ -187,7 +195,7 @@ get_failed:if (get_u8 (&uval, *argv,0 ))invarg ("invalid HLIM" , *argv); hop_limit = uval; - }else if (matches (*argv,"encaplimit" ) ==0 ) { + }else if (strcmp (*argv,"encaplimit" ) ==0 ) {NEXT_ARG ();if (strcmp (*argv,"none" ) ==0 ) { flags |=IP6_TNL_F_IGN_ENCAP_LIMIT ;
@@ -241,6 +249,40 @@ get_failed:if (strcmp (*argv,"inherit" ) !=0 )invarg ("not inherit" , *argv); flags |=IP6_TNL_F_USE_ORIG_FWMARK ; + }else if (strcmp (*argv,"noencap" ) ==0 ) { + encaptype =TUNNEL_ENCAP_NONE ; + }else if (strcmp (*argv,"encap" ) ==0 ) { +NEXT_ARG (); +if (strcmp (*argv,"fou" ) ==0 ) + encaptype =TUNNEL_ENCAP_FOU ; +else if (strcmp (*argv,"gue" ) ==0 ) + encaptype =TUNNEL_ENCAP_GUE ; +else if (strcmp (*argv,"none" ) ==0 ) + encaptype =TUNNEL_ENCAP_NONE ; +else +invarg ("Invalid encap type." , *argv); + }else if (strcmp (*argv,"encap-sport" ) ==0 ) { +NEXT_ARG (); +if (strcmp (*argv,"auto" ) ==0 ) + encapsport =0 ; +else if (get_u16 (&encapsport, *argv,0 )) +invarg ("Invalid source port." , *argv); + }else if (strcmp (*argv,"encap-dport" ) ==0 ) { +NEXT_ARG (); +if (get_u16 (&encapdport, *argv,0 )) +invarg ("Invalid destination port." , *argv); + }else if (strcmp (*argv,"encap-csum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_CSUM ; + }else if (strcmp (*argv,"noencap-csum" ) ==0 ) { + encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM ; + }else if (strcmp (*argv,"encap-udp6-csum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_CSUM6 ; + }else if (strcmp (*argv,"noencap-udp6-csum" ) ==0 ) { + encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6 ; + }else if (strcmp (*argv,"encap-remcsum" ) ==0 ) { + encapflags |=TUNNEL_ENCAP_FLAG_REMCSUM ; + }else if (strcmp (*argv,"noencap-remcsum" ) ==0 ) { + encapflags |= ~TUNNEL_ENCAP_FLAG_REMCSUM ; }else usage (); argc--, argv++;
@@ -255,6 +297,11 @@ get_failed:addattr32 (n,1024 ,IFLA_IPTUN_FLAGS , flags);addattr32 (n,1024 ,IFLA_IPTUN_LINK , link); +addattr16 (n,1024 ,IFLA_IPTUN_ENCAP_TYPE , encaptype); +addattr16 (n,1024 ,IFLA_IPTUN_ENCAP_FLAGS , encapflags); +addattr16 (n,1024 ,IFLA_IPTUN_ENCAP_SPORT ,htons (encapsport)); +addattr16 (n,1024 ,IFLA_IPTUN_ENCAP_DPORT ,htons (encapdport)); +return 0 ; }
@@ -339,6 +386,49 @@ static void ip6tunnel_print_opt(struct link_util *lu, FILE *f, struct rtattr *tbif (flags &IP6_TNL_F_USE_ORIG_FWMARK )fprintf (f,"fwmark inherit " ); + +if (tb[IFLA_IPTUN_ENCAP_TYPE ] && + *(__u16 *)RTA_DATA (tb[IFLA_IPTUN_ENCAP_TYPE ]) !=TUNNEL_ENCAP_NONE ) { +__u16 type =rta_getattr_u16 (tb[IFLA_IPTUN_ENCAP_TYPE ]); +__u16 flags =rta_getattr_u16 (tb[IFLA_IPTUN_ENCAP_FLAGS ]); +__u16 sport =rta_getattr_u16 (tb[IFLA_IPTUN_ENCAP_SPORT ]); +__u16 dport =rta_getattr_u16 (tb[IFLA_IPTUN_ENCAP_DPORT ]); + +fputs ("encap " , f); +switch (type) { +case TUNNEL_ENCAP_FOU : +fputs ("fou " , f); +break ; +case TUNNEL_ENCAP_GUE : +fputs ("gue " , f); +break ; +default : +fputs ("unknown " , f); +break ; + } + +if (sport ==0 ) +fputs ("encap-sport auto " , f); +else +fprintf (f,"encap-sport %u" ,ntohs (sport)); + +fprintf (f,"encap-dport %u " ,ntohs (dport)); + +if (flags &TUNNEL_ENCAP_FLAG_CSUM ) +fputs ("encap-csum " , f); +else +fputs ("noencap-csum " , f); + +if (flags &TUNNEL_ENCAP_FLAG_CSUM6 ) +fputs ("encap-csum6 " , f); +else +fputs ("noencap-csum6 " , f); + +if (flags &TUNNEL_ENCAP_FLAG_REMCSUM ) +fputs ("encap-remcsum " , f); +else +fputs ("noencap-remcsum " , f); + } } static void ip6tunnel_print_help(struct link_util *lu, int argc, char **argv,
Signature · 1 line
2.8.0.rc2
Quoted 19 lines · On Thu, 14 Jul 2016 12:22:11 -0700 Tom Herbert <[email protected]> wrote:
Patch set includes:
- Allow configuring checksum mode for ila LWT (e.g. configure checksum neutral
- Configuration for performing ila translations using netfilter hook
- fou encapsulation for ip6tnl and gre6
- fou listener for IPv6*** SUBJECT HERE ***
*** BLURB HERE ***
Tom Herbert (5):
ila: Support for checksum neutral translation
ila: Support for configuring ila to use netfilter hook
ip6tnl: Support for fou encapsulation
gre6: Support for fou encapsulation
fou: Allowing configuring IPv6 listener
Quoted 11 lines
ip/Makefile | 2 +- ip/ip.c | 3 +- ip/ip_common.h | 1 + ip/ipfou.c | 8 +- ip/ipila.c | 259 ++++++++++++++++++++++++++++++++++++++++++++++++++ ip/iproute_lwtunnel.c | 57 ++++++++++- ip/link_gre6.c | 101 ++++++++++++++++++++ ip/link_ip6tnl.c | 92 +++++++++++++++++- 8 files changed, 516 insertions(+), 7 deletions(-) create mode 100644 ip/ipila.c
I am okay with the content of these patches, but they have have lots of style issues.
1. Bad indentation in several spots
2. Lines are too long
3. Use rta_getattr_u64, look for places that access RTA_DATA() directly
5. Run checkpatch