Lines Matching refs:greinfo

81 	struct rtattr *greinfo[IFLA_GRE_MAX + 1];  in gre_parse_opt()  local
125 parse_rtattr_nested(greinfo, IFLA_GRE_MAX, in gre_parse_opt()
128 if (greinfo[IFLA_GRE_IKEY]) in gre_parse_opt()
129 ikey = rta_getattr_u32(greinfo[IFLA_GRE_IKEY]); in gre_parse_opt()
131 if (greinfo[IFLA_GRE_OKEY]) in gre_parse_opt()
132 okey = rta_getattr_u32(greinfo[IFLA_GRE_OKEY]); in gre_parse_opt()
134 if (greinfo[IFLA_GRE_IFLAGS]) in gre_parse_opt()
135 iflags = rta_getattr_u16(greinfo[IFLA_GRE_IFLAGS]); in gre_parse_opt()
137 if (greinfo[IFLA_GRE_OFLAGS]) in gre_parse_opt()
138 oflags = rta_getattr_u16(greinfo[IFLA_GRE_OFLAGS]); in gre_parse_opt()
140 if (greinfo[IFLA_GRE_LOCAL]) in gre_parse_opt()
141 saddr = rta_getattr_u32(greinfo[IFLA_GRE_LOCAL]); in gre_parse_opt()
143 if (greinfo[IFLA_GRE_REMOTE]) in gre_parse_opt()
144 daddr = rta_getattr_u32(greinfo[IFLA_GRE_REMOTE]); in gre_parse_opt()
146 if (greinfo[IFLA_GRE_PMTUDISC]) in gre_parse_opt()
148 greinfo[IFLA_GRE_PMTUDISC]); in gre_parse_opt()
150 if (greinfo[IFLA_GRE_TTL]) in gre_parse_opt()
151 ttl = rta_getattr_u8(greinfo[IFLA_GRE_TTL]); in gre_parse_opt()
153 if (greinfo[IFLA_GRE_TOS]) in gre_parse_opt()
154 tos = rta_getattr_u8(greinfo[IFLA_GRE_TOS]); in gre_parse_opt()
156 if (greinfo[IFLA_GRE_LINK]) in gre_parse_opt()
157 link = rta_getattr_u8(greinfo[IFLA_GRE_LINK]); in gre_parse_opt()
159 if (greinfo[IFLA_GRE_ENCAP_TYPE]) in gre_parse_opt()
160 encaptype = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_TYPE]); in gre_parse_opt()
161 if (greinfo[IFLA_GRE_ENCAP_FLAGS]) in gre_parse_opt()
162 encapflags = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_FLAGS]); in gre_parse_opt()
163 if (greinfo[IFLA_GRE_ENCAP_SPORT]) in gre_parse_opt()
164 encapsport = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_SPORT]); in gre_parse_opt()
165 if (greinfo[IFLA_GRE_ENCAP_DPORT]) in gre_parse_opt()
166 encapdport = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_DPORT]); in gre_parse_opt()
168 if (greinfo[IFLA_GRE_COLLECT_METADATA]) in gre_parse_opt()
171 if (greinfo[IFLA_GRE_IGNORE_DF]) in gre_parse_opt()
173 !!rta_getattr_u8(greinfo[IFLA_GRE_IGNORE_DF]); in gre_parse_opt()
175 if (greinfo[IFLA_GRE_FWMARK]) in gre_parse_opt()
176 fwmark = rta_getattr_u32(greinfo[IFLA_GRE_FWMARK]); in gre_parse_opt()
178 if (greinfo[IFLA_GRE_ERSPAN_INDEX]) in gre_parse_opt()
179 erspan_idx = rta_getattr_u32(greinfo[IFLA_GRE_ERSPAN_INDEX]); in gre_parse_opt()