Lines Matching refs:greinfo

91 	struct rtattr *greinfo[IFLA_GRE_MAX + 1];  in gre_parse_opt()  local
133 parse_rtattr_nested(greinfo, IFLA_GRE_MAX, in gre_parse_opt()
136 if (greinfo[IFLA_GRE_IKEY]) in gre_parse_opt()
137 ikey = rta_getattr_u32(greinfo[IFLA_GRE_IKEY]); in gre_parse_opt()
139 if (greinfo[IFLA_GRE_OKEY]) in gre_parse_opt()
140 okey = rta_getattr_u32(greinfo[IFLA_GRE_OKEY]); in gre_parse_opt()
142 if (greinfo[IFLA_GRE_IFLAGS]) in gre_parse_opt()
143 iflags = rta_getattr_u16(greinfo[IFLA_GRE_IFLAGS]); in gre_parse_opt()
145 if (greinfo[IFLA_GRE_OFLAGS]) in gre_parse_opt()
146 oflags = rta_getattr_u16(greinfo[IFLA_GRE_OFLAGS]); in gre_parse_opt()
148 if (greinfo[IFLA_GRE_LOCAL]) in gre_parse_opt()
149 memcpy(&laddr, RTA_DATA(greinfo[IFLA_GRE_LOCAL]), sizeof(laddr)); in gre_parse_opt()
151 if (greinfo[IFLA_GRE_REMOTE]) in gre_parse_opt()
152 memcpy(&raddr, RTA_DATA(greinfo[IFLA_GRE_REMOTE]), sizeof(raddr)); in gre_parse_opt()
154 if (greinfo[IFLA_GRE_TTL]) in gre_parse_opt()
155 hop_limit = rta_getattr_u8(greinfo[IFLA_GRE_TTL]); in gre_parse_opt()
157 if (greinfo[IFLA_GRE_LINK]) in gre_parse_opt()
158 link = rta_getattr_u32(greinfo[IFLA_GRE_LINK]); in gre_parse_opt()
160 if (greinfo[IFLA_GRE_ENCAP_LIMIT]) in gre_parse_opt()
161 encap_limit = rta_getattr_u8(greinfo[IFLA_GRE_ENCAP_LIMIT]); in gre_parse_opt()
163 if (greinfo[IFLA_GRE_FLOWINFO]) in gre_parse_opt()
164 flowinfo = rta_getattr_u32(greinfo[IFLA_GRE_FLOWINFO]); in gre_parse_opt()
166 if (greinfo[IFLA_GRE_FLAGS]) in gre_parse_opt()
167 flags = rta_getattr_u32(greinfo[IFLA_GRE_FLAGS]); in gre_parse_opt()
169 if (greinfo[IFLA_GRE_ENCAP_TYPE]) in gre_parse_opt()
170 encaptype = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_TYPE]); in gre_parse_opt()
172 if (greinfo[IFLA_GRE_ENCAP_FLAGS]) in gre_parse_opt()
173 encapflags = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_FLAGS]); in gre_parse_opt()
175 if (greinfo[IFLA_GRE_ENCAP_SPORT]) in gre_parse_opt()
176 encapsport = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_SPORT]); in gre_parse_opt()
178 if (greinfo[IFLA_GRE_ENCAP_DPORT]) in gre_parse_opt()
179 encapdport = rta_getattr_u16(greinfo[IFLA_GRE_ENCAP_DPORT]); in gre_parse_opt()
181 if (greinfo[IFLA_GRE_FWMARK]) in gre_parse_opt()
182 fwmark = rta_getattr_u32(greinfo[IFLA_GRE_FWMARK]); in gre_parse_opt()