Home
last modified time | relevance | path

Searched refs:iptuninfo (Results 1 – 2 of 2) sorted by relevance

/external/iproute2/ip/
Dlink_iptnl.c89 struct rtattr *iptuninfo[IFLA_IPTUN_MAX + 1]; in iptunnel_parse_opt() local
133 parse_rtattr_nested(iptuninfo, IFLA_IPTUN_MAX, in iptunnel_parse_opt()
136 if (iptuninfo[IFLA_IPTUN_LOCAL]) in iptunnel_parse_opt()
137 laddr = rta_getattr_u32(iptuninfo[IFLA_IPTUN_LOCAL]); in iptunnel_parse_opt()
139 if (iptuninfo[IFLA_IPTUN_REMOTE]) in iptunnel_parse_opt()
140 raddr = rta_getattr_u32(iptuninfo[IFLA_IPTUN_REMOTE]); in iptunnel_parse_opt()
142 if (iptuninfo[IFLA_IPTUN_TTL]) in iptunnel_parse_opt()
143 ttl = rta_getattr_u8(iptuninfo[IFLA_IPTUN_TTL]); in iptunnel_parse_opt()
145 if (iptuninfo[IFLA_IPTUN_TOS]) in iptunnel_parse_opt()
146 tos = rta_getattr_u8(iptuninfo[IFLA_IPTUN_TOS]); in iptunnel_parse_opt()
[all …]
Dlink_ip6tnl.c88 struct rtattr *iptuninfo[IFLA_IPTUN_MAX + 1]; in ip6tunnel_parse_opt() local
128 parse_rtattr_nested(iptuninfo, IFLA_IPTUN_MAX, in ip6tunnel_parse_opt()
131 if (iptuninfo[IFLA_IPTUN_LOCAL]) in ip6tunnel_parse_opt()
132 memcpy(&laddr, RTA_DATA(iptuninfo[IFLA_IPTUN_LOCAL]), in ip6tunnel_parse_opt()
135 if (iptuninfo[IFLA_IPTUN_REMOTE]) in ip6tunnel_parse_opt()
136 memcpy(&raddr, RTA_DATA(iptuninfo[IFLA_IPTUN_REMOTE]), in ip6tunnel_parse_opt()
139 if (iptuninfo[IFLA_IPTUN_TTL]) in ip6tunnel_parse_opt()
140 hop_limit = rta_getattr_u8(iptuninfo[IFLA_IPTUN_TTL]); in ip6tunnel_parse_opt()
142 if (iptuninfo[IFLA_IPTUN_ENCAP_LIMIT]) in ip6tunnel_parse_opt()
143 encap_limit = rta_getattr_u8(iptuninfo[IFLA_IPTUN_ENCAP_LIMIT]); in ip6tunnel_parse_opt()
[all …]