Lines Matching refs:lyr3h
138 void *lyr3h = NULL; in ipvlan_get_L3_hdr() local
149 lyr3h = arph; in ipvlan_get_L3_hdr()
167 lyr3h = ip4h; in ipvlan_get_L3_hdr()
182 lyr3h = ip6h; in ipvlan_get_L3_hdr()
205 lyr3h = icmph; in ipvlan_get_L3_hdr()
214 return lyr3h; in ipvlan_get_L3_hdr()
354 struct ipvl_addr *ipvlan_addr_lookup(struct ipvl_port *port, void *lyr3h, in ipvlan_addr_lookup() argument
365 ip6h = (struct ipv6hdr *)lyr3h; in ipvlan_addr_lookup()
377 ndmh = (struct nd_msg *)lyr3h; in ipvlan_addr_lookup()
389 ip4h = (struct iphdr *)lyr3h; in ipvlan_addr_lookup()
399 arph = (struct arphdr *)lyr3h; in ipvlan_addr_lookup()
567 void *lyr3h; in ipvlan_xmit_mode_l3() local
571 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l3()
572 if (!lyr3h) in ipvlan_xmit_mode_l3()
576 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l3()
595 void *lyr3h; in ipvlan_xmit_mode_l2() local
600 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l2()
601 if (lyr3h) { in ipvlan_xmit_mode_l2()
602 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l2()
664 void *lyr3h; in ipvlan_external_frame() local
668 lyr3h = ipvlan_get_L3_hdr(port, skb, &addr_type); in ipvlan_external_frame()
669 if (!lyr3h) in ipvlan_external_frame()
672 addr = ipvlan_addr_lookup(port, lyr3h, addr_type, false); in ipvlan_external_frame()
683 void *lyr3h; in ipvlan_handle_mode_l3() local
689 lyr3h = ipvlan_get_L3_hdr(port, skb, &addr_type); in ipvlan_handle_mode_l3()
690 if (!lyr3h) in ipvlan_handle_mode_l3()
693 addr = ipvlan_addr_lookup(port, lyr3h, addr_type, true); in ipvlan_handle_mode_l3()