Lines Matching defs:ip
204 char *ip;
211 ip = (char *)vlan + VLAN_HLEN;
217 ip = (char *)eth + ETH_HLEN;
220 return ip;
234 struct iphdr *ip;
286 ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, attr.route_dev, e,
289 /* add ip header */
290 ip->tos = tun_key->tos;
291 ip->version = 0x4;
292 ip->ihl = 0x5;
293 ip->ttl = attr.ttl;
294 ip->daddr = attr.fl.fl4.daddr;
295 ip->saddr = attr.fl.fl4.saddr;
298 err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr),
299 &ip->protocol, e);
350 struct iphdr *ip;
391 ip = (struct iphdr *)gen_eth_tnl_hdr(encap_header, attr.route_dev, e,
394 /* add ip header */
395 ip->tos = tun_key->tos;
396 ip->version = 0x4;
397 ip->ihl = 0x5;
398 ip->ttl = attr.ttl;
399 ip->daddr = attr.fl.fl4.daddr;
400 ip->saddr = attr.fl.fl4.saddr;
403 err = mlx5e_gen_ip_tunnel_header((char *)ip + sizeof(struct iphdr),
404 &ip->protocol, e);
560 /* add ip header */
664 /* add ip header */