Lines Matching refs:iptuninfo

89 	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()
148 if (iptuninfo[IFLA_IPTUN_PMTUDISC]) in iptunnel_parse_opt()
150 rta_getattr_u8(iptuninfo[IFLA_IPTUN_PMTUDISC]); in iptunnel_parse_opt()
152 if (iptuninfo[IFLA_IPTUN_FLAGS]) in iptunnel_parse_opt()
153 iflags = rta_getattr_u16(iptuninfo[IFLA_IPTUN_FLAGS]); in iptunnel_parse_opt()
155 if (iptuninfo[IFLA_IPTUN_LINK]) in iptunnel_parse_opt()
156 link = rta_getattr_u32(iptuninfo[IFLA_IPTUN_LINK]); in iptunnel_parse_opt()
158 if (iptuninfo[IFLA_IPTUN_PROTO]) in iptunnel_parse_opt()
159 proto = rta_getattr_u8(iptuninfo[IFLA_IPTUN_PROTO]); in iptunnel_parse_opt()
161 if (iptuninfo[IFLA_IPTUN_ENCAP_TYPE]) in iptunnel_parse_opt()
162 encaptype = rta_getattr_u16(iptuninfo[IFLA_IPTUN_ENCAP_TYPE]); in iptunnel_parse_opt()
163 if (iptuninfo[IFLA_IPTUN_ENCAP_FLAGS]) in iptunnel_parse_opt()
164 encapflags = rta_getattr_u16(iptuninfo[IFLA_IPTUN_ENCAP_FLAGS]); in iptunnel_parse_opt()
165 if (iptuninfo[IFLA_IPTUN_ENCAP_SPORT]) in iptunnel_parse_opt()
166 encapsport = rta_getattr_u16(iptuninfo[IFLA_IPTUN_ENCAP_SPORT]); in iptunnel_parse_opt()
167 if (iptuninfo[IFLA_IPTUN_ENCAP_DPORT]) in iptunnel_parse_opt()
168 encapdport = rta_getattr_u16(iptuninfo[IFLA_IPTUN_ENCAP_DPORT]); in iptunnel_parse_opt()
169 if (iptuninfo[IFLA_IPTUN_6RD_PREFIX]) in iptunnel_parse_opt()
171 RTA_DATA(iptuninfo[IFLA_IPTUN_6RD_PREFIX]), in iptunnel_parse_opt()
174 if (iptuninfo[IFLA_IPTUN_6RD_PREFIXLEN]) in iptunnel_parse_opt()
176 rta_getattr_u16(iptuninfo[IFLA_IPTUN_6RD_PREFIXLEN]); in iptunnel_parse_opt()
178 if (iptuninfo[IFLA_IPTUN_6RD_RELAY_PREFIX]) in iptunnel_parse_opt()
180 rta_getattr_u32(iptuninfo[IFLA_IPTUN_6RD_RELAY_PREFIX]); in iptunnel_parse_opt()
182 if (iptuninfo[IFLA_IPTUN_6RD_RELAY_PREFIXLEN]) in iptunnel_parse_opt()
184 rta_getattr_u16(iptuninfo[IFLA_IPTUN_6RD_RELAY_PREFIXLEN]); in iptunnel_parse_opt()
185 if (iptuninfo[IFLA_IPTUN_COLLECT_METADATA]) in iptunnel_parse_opt()
188 if (iptuninfo[IFLA_IPTUN_FWMARK]) in iptunnel_parse_opt()
189 fwmark = rta_getattr_u32(iptuninfo[IFLA_IPTUN_FWMARK]); in iptunnel_parse_opt()