Searched refs:encapflags (Results 1 – 4 of 4) sorted by relevance
/external/iproute2/ip/ |
D | link_gre.c | 94 __u16 encapflags = 0; in gre_parse_opt() local 162 encapflags = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_FLAGS]); in gre_parse_opt() 312 encapflags |= TUNNEL_ENCAP_FLAG_CSUM; in gre_parse_opt() 314 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM; in gre_parse_opt() 316 encapflags |= TUNNEL_ENCAP_FLAG_CSUM6; in gre_parse_opt() 318 encapflags |= ~TUNNEL_ENCAP_FLAG_CSUM6; in gre_parse_opt() 320 encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM; in gre_parse_opt() 322 encapflags |= ~TUNNEL_ENCAP_FLAG_REMCSUM; in gre_parse_opt() 380 addattr16(n, 1024, IFLA_GRE_ENCAP_FLAGS, encapflags); in gre_parse_opt()
|
D | link_iptnl.c | 104 __u16 encapflags = 0; in iptunnel_parse_opt() local 164 encapflags = rta_getattr_u16(iptuninfo[IFLA_IPTUN_ENCAP_FLAGS]); in iptunnel_parse_opt() 294 encapflags |= TUNNEL_ENCAP_FLAG_CSUM; in iptunnel_parse_opt() 296 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM; in iptunnel_parse_opt() 298 encapflags |= TUNNEL_ENCAP_FLAG_CSUM6; in iptunnel_parse_opt() 300 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6; in iptunnel_parse_opt() 302 encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM; in iptunnel_parse_opt() 304 encapflags &= ~TUNNEL_ENCAP_FLAG_REMCSUM; in iptunnel_parse_opt() 359 addattr16(n, 1024, IFLA_IPTUN_ENCAP_FLAGS, encapflags); in iptunnel_parse_opt()
|
D | link_ip6tnl.c | 99 __u16 encapflags = TUNNEL_ENCAP_FLAG_CSUM6; in ip6tunnel_parse_opt() local 291 encapflags |= TUNNEL_ENCAP_FLAG_CSUM; in ip6tunnel_parse_opt() 293 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM; in ip6tunnel_parse_opt() 295 encapflags |= TUNNEL_ENCAP_FLAG_CSUM6; in ip6tunnel_parse_opt() 297 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6; in ip6tunnel_parse_opt() 299 encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM; in ip6tunnel_parse_opt() 301 encapflags |= ~TUNNEL_ENCAP_FLAG_REMCSUM; in ip6tunnel_parse_opt() 324 addattr16(n, 1024, IFLA_IPTUN_ENCAP_FLAGS, encapflags); in ip6tunnel_parse_opt()
|
D | link_gre6.c | 104 __u16 encapflags = TUNNEL_ENCAP_FLAG_CSUM6; in gre_parse_opt() local 173 encapflags = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_FLAGS]); in gre_parse_opt() 339 encapflags |= TUNNEL_ENCAP_FLAG_CSUM; in gre_parse_opt() 341 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM; in gre_parse_opt() 343 encapflags |= TUNNEL_ENCAP_FLAG_CSUM6; in gre_parse_opt() 345 encapflags &= ~TUNNEL_ENCAP_FLAG_CSUM6; in gre_parse_opt() 347 encapflags |= TUNNEL_ENCAP_FLAG_REMCSUM; in gre_parse_opt() 349 encapflags &= ~TUNNEL_ENCAP_FLAG_REMCSUM; in gre_parse_opt() 392 addattr16(n, 1024, IFLA_GRE_ENCAP_FLAGS, encapflags); in gre_parse_opt()
|