Searched refs:ip6hdr (Results 1 – 5 of 5) sorted by relevance
55 struct ipv6hdr ip6hdr; in bpf_lwt_encap_gre6() member62 hdr.ip6hdr.version = 6; in bpf_lwt_encap_gre6()63 hdr.ip6hdr.payload_len = bpf_htons(skb->len + sizeof(struct grehdr)); in bpf_lwt_encap_gre6()64 hdr.ip6hdr.nexthdr = 47; /* IPPROTO_GRE */ in bpf_lwt_encap_gre6()65 hdr.ip6hdr.hop_limit = 0x40; in bpf_lwt_encap_gre6()67 hdr.ip6hdr.saddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()68 hdr.ip6hdr.saddr.s6_addr[1] = 1; in bpf_lwt_encap_gre6()69 hdr.ip6hdr.saddr.s6_addr[15] = 1; in bpf_lwt_encap_gre6()71 hdr.ip6hdr.daddr.s6_addr[0] = 0xfb; in bpf_lwt_encap_gre6()72 hdr.ip6hdr.daddr.s6_addr[1] = 0x10; in bpf_lwt_encap_gre6()[all …]
157 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_fragment() local167 ip6hdr->ip6_plen = htons(frag_len); in send_fragment()207 struct ip6_hdr *ip6hdr = (struct ip6_hdr *)ip_frame; in send_udp_frags() local222 memset(ip6hdr, 0, sizeof(*ip6hdr)); in send_udp_frags()223 ip6hdr->ip6_flow = htonl(6<<28); /* Version. */ in send_udp_frags()224 ip6hdr->ip6_nxt = IPPROTO_FRAGMENT; in send_udp_frags()225 ip6hdr->ip6_hops = 255; in send_udp_frags()226 ip6hdr->ip6_src = addr6; in send_udp_frags()227 ip6hdr->ip6_dst = addr6; in send_udp_frags()308 ip6hdr->ip6_plen = htons(frag_len); in send_udp_frags()
1287 struct ipv6hdr *ip6hdr; in alb_determine_nd() local1290 if (!pskb_network_may_pull(skb, sizeof(*ip6hdr))) in alb_determine_nd()1293 ip6hdr = ipv6_hdr(skb); in alb_determine_nd()1294 if (ip6hdr->nexthdr != IPPROTO_ICMPV6) in alb_determine_nd()1297 if (!pskb_network_may_pull(skb, sizeof(*ip6hdr) + sizeof(*hdr))) in alb_determine_nd()1453 const struct ipv6hdr *ip6hdr; in bond_xmit_alb_slave_get() local1481 ip6hdr = ipv6_hdr(skb); in bond_xmit_alb_slave_get()1482 if (ipv6_addr_any(&ip6hdr->saddr)) { in bond_xmit_alb_slave_get()1487 hash_start = (char *)&ip6hdr->daddr; in bond_xmit_alb_slave_get()1488 hash_size = sizeof(ip6hdr->daddr); in bond_xmit_alb_slave_get()
1027 struct ipv6hdr *ip6hdr; in batadv_mcast_forw_mode_check_ipv6() local1030 if (!pskb_may_pull(skb, sizeof(struct ethhdr) + sizeof(*ip6hdr))) in batadv_mcast_forw_mode_check_ipv6()1036 ip6hdr = ipv6_hdr(skb); in batadv_mcast_forw_mode_check_ipv6()1038 if (IPV6_ADDR_MC_SCOPE(&ip6hdr->daddr) < IPV6_ADDR_SCOPE_LINKLOCAL) in batadv_mcast_forw_mode_check_ipv6()1044 if (ipv6_addr_is_ll_all_nodes(&ip6hdr->daddr)) in batadv_mcast_forw_mode_check_ipv6()1046 else if (IPV6_ADDR_MC_SCOPE(&ip6hdr->daddr) > IPV6_ADDR_SCOPE_LINKLOCAL) in batadv_mcast_forw_mode_check_ipv6()
236 rmnet_map_ipv6_ul_csum_header(void *ip6hdr, in rmnet_map_ipv6_ul_csum_header() argument