/net/ipv6/netfilter/ |
D | nft_chain_route_ipv6.c | 39 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in nf_route_table_hook() 40 memcpy(&daddr, &ipv6_hdr(skb)->daddr, sizeof(daddr)); in nf_route_table_hook() 42 hop_limit = ipv6_hdr(skb)->hop_limit; in nf_route_table_hook() 45 flowlabel = *((u32 *)ipv6_hdr(skb)); in nf_route_table_hook() 49 (memcmp(&ipv6_hdr(skb)->saddr, &saddr, sizeof(saddr)) || in nf_route_table_hook() 50 memcmp(&ipv6_hdr(skb)->daddr, &daddr, sizeof(daddr)) || in nf_route_table_hook() 52 ipv6_hdr(skb)->hop_limit != hop_limit || in nf_route_table_hook() 53 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) { in nf_route_table_hook()
|
D | ip6table_mangle.c | 55 memcpy(&saddr, &ipv6_hdr(skb)->saddr, sizeof(saddr)); in ip6t_mangle_out() 56 memcpy(&daddr, &ipv6_hdr(skb)->daddr, sizeof(daddr)); in ip6t_mangle_out() 58 hop_limit = ipv6_hdr(skb)->hop_limit; in ip6t_mangle_out() 61 flowlabel = *((u_int32_t *)ipv6_hdr(skb)); in ip6t_mangle_out() 66 (!ipv6_addr_equal(&ipv6_hdr(skb)->saddr, &saddr) || in ip6t_mangle_out() 67 !ipv6_addr_equal(&ipv6_hdr(skb)->daddr, &daddr) || in ip6t_mangle_out() 69 ipv6_hdr(skb)->hop_limit != hop_limit || in ip6t_mangle_out() 70 flowlabel != *((u_int32_t *)ipv6_hdr(skb)))) { in ip6t_mangle_out()
|
D | nf_reject_ipv6.c | 22 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6_tcphdr_get() 71 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_reject_ip6hdr_put() 77 ip6h = ipv6_hdr(nskb); in nf_reject_ip6hdr_put() 124 tcph->check = csum_ipv6_magic(&ipv6_hdr(nskb)->saddr, in nf_reject_ip6_tcphdr_put() 125 &ipv6_hdr(nskb)->daddr, in nf_reject_ip6_tcphdr_put() 138 const struct ipv6hdr *oip6h = ipv6_hdr(oldskb); in nf_send_reset6() 218 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in reject6_csum_ok()
|
D | nf_conntrack_reasm.c | 194 payload_len = ntohs(ipv6_hdr(skb)->payload_len); in nf_ct_frag6_queue() 198 ((u8 *)(fhdr + 1) - (u8 *)(ipv6_hdr(skb) + 1))); in nf_ct_frag6_queue() 205 ecn = ip6_frag_ecn(ipv6_hdr(skb)); in nf_ct_frag6_queue() 366 ipv6_hdr(skb)->payload_len = htons(payload_len); in nf_ct_frag6_reasm() 367 ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn); in nf_ct_frag6_reasm() 404 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in find_prev_fhdr() 461 if (ipv6_hdr(skb)->payload_len == 0) { in nf_ct_frag6_gather() 473 hdr = ipv6_hdr(skb); in nf_ct_frag6_gather()
|
D | ip6t_eui64.c | 37 if (ipv6_hdr(skb)->version == 0x6) { in eui64_mt6() 44 if (!memcmp(ipv6_hdr(skb)->saddr.s6_addr + 8, eui64, in eui64_mt6()
|
/net/bridge/ |
D | br_netfilter_ipv6.c | 52 unsigned char *raw = (u8 *)(ipv6_hdr(skb) + 1); in br_nf_check_hbh_len() 80 ipv6_hdr(skb)->payload_len) in br_nf_check_hbh_len() 116 hdr = ipv6_hdr(skb); in br_validate_ipv6() 134 hdr = ipv6_hdr(skb); in br_validate_ipv6() 155 return memcmp(&nf_bridge->ipv6_daddr, &ipv6_hdr(skb)->daddr, in br_nf_ipv6_daddr_was_changed() 156 sizeof(ipv6_hdr(skb)->daddr)) != 0; in br_nf_ipv6_daddr_was_changed() 235 nf_bridge->ipv6_daddr = ipv6_hdr(skb)->daddr; in br_nf_pre_routing_ipv6()
|
/net/ipv6/ |
D | mip6.c | 133 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_destopt_input() 159 iph = ipv6_hdr(skb); in mip6_destopt_output() 233 if (!mip6_report_rl_allow(stamp, &ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 234 hao ? &hao->addr : &ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 239 memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in mip6_destopt_reject() 242 memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in mip6_destopt_reject() 267 (struct ipv6_opt_hdr *)(ipv6_hdr(skb) + 1); in mip6_destopt_offset() 273 *nexthdr = &ipv6_hdr(skb)->nexthdr; in mip6_destopt_offset() 353 const struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_rthdr_input() 376 iph = ipv6_hdr(skb); in mip6_rthdr_output() [all …]
|
D | mcast_snoop.c | 35 ip6h = ipv6_hdr(skb); in ipv6_mc_check_ip6hdr() 54 ip6h = ipv6_hdr(skb); in ipv6_mc_check_exthdrs() 89 if (!(ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)) in ipv6_mc_check_mld_query() 110 !ipv6_addr_is_ll_all_nodes(&ipv6_hdr(skb)->daddr)) in ipv6_mc_check_mld_query() 148 transport_len = ntohs(ipv6_hdr(skb)->payload_len); in __ipv6_mc_check_mld()
|
D | esp6_offload.c | 33 static __u16 esp6_nexthdr_esp_offset(struct ipv6hdr *ipv6_hdr, int nhlen) in esp6_nexthdr_esp_offset() argument 38 if (likely(ipv6_hdr->nexthdr == NEXTHDR_ESP)) in esp6_nexthdr_esp_offset() 42 exthdr = (void *)ipv6_hdr + off; in esp6_nexthdr_esp_offset() 79 (xfrm_address_t *)&ipv6_hdr(skb)->daddr, in esp6_gro_receive() 96 nhoff = esp6_nexthdr_esp_offset(ipv6_hdr(skb), offset); in esp6_gro_receive() 122 struct ipv6hdr *iph = ipv6_hdr(skb); in esp6_gso_encap() 286 ipv6_hdr(skb)->payload_len = htons(len); in esp6_xmit()
|
D | tcp_ipv6.c | 106 return secure_tcpv6_seq(ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_seq() 107 ipv6_hdr(skb)->saddr.s6_addr32, in tcp_v6_init_seq() 114 return secure_tcpv6_ts_off(net, ipv6_hdr(skb)->daddr.s6_addr32, in tcp_v6_init_ts_off() 115 ipv6_hdr(skb)->saddr.s6_addr32); in tcp_v6_init_ts_off() 377 if (ipv6_hdr(skb)->hop_limit < inet6_sk(sk)->min_hopcount) { in tcp_v6_err() 483 fl6->flowlabel = ip6_flowlabel(ipv6_hdr(ireq->pktopts)); in tcp_v6_send_synack() 637 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_md5_hash_skb() 678 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in tcp_v6_inbound_md5_hash() 724 ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; in tcp_v6_init_req() 725 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in tcp_v6_init_req() [all …]
|
D | ndisc.c | 434 hdr = ipv6_hdr(skb); in ip6_nd_hdr() 703 if (skb && ipv6_chk_addr_and_flags(dev_net(dev), &ipv6_hdr(skb)->saddr, in ndisc_solicit() 706 saddr = &ipv6_hdr(skb)->saddr; in ndisc_solicit() 750 const struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_ns() 751 const struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_ns() 934 struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_na() 935 const struct in6_addr *daddr = &ipv6_hdr(skb)->daddr; in ndisc_recv_na() 1051 const struct in6_addr *saddr = &ipv6_hdr(skb)->saddr; in ndisc_recv_rs() 1133 if (nla_put_in6_addr(skb, NDUSEROPT_SRCADDR, &ipv6_hdr(ra)->saddr)) in ndisc_ra_useropt() 1168 if (!(ipv6_addr_type(&ipv6_hdr(skb)->saddr) & IPV6_ADDR_LINKLOCAL)) { in ndisc_router_discovery() [all …]
|
D | exthdrs.c | 90 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr)) in ip6_tlvopt_unknown() 188 struct ipv6hdr *ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 225 ipv6h = ipv6_hdr(skb); in ipv6_dest_hao() 319 update_csum_diff16(skb, (__be32 *)(&ipv6_hdr(skb)->daddr), in seg6_update_csum() 413 ipv6_hdr(skb)->daddr = *addr; in ipv6_srh_rcv() 425 if (ipv6_hdr(skb)->hop_limit <= 1) { in ipv6_srh_rcv() 433 ipv6_hdr(skb)->hop_limit--; in ipv6_srh_rcv() 476 if (ipv6_addr_is_multicast(&ipv6_hdr(skb)->daddr) || in ipv6_rthdr_rcv() 577 (xfrm_address_t *)&ipv6_hdr(skb)->saddr, in ipv6_rthdr_rcv() 604 *addr = ipv6_hdr(skb)->daddr; in ipv6_rthdr_rcv() [all …]
|
D | netfilter.c | 23 const struct ipv6hdr *iph = ipv6_hdr(skb); in ip6_route_me_harder() 92 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_saveroute() 106 const struct ipv6hdr *iph = ipv6_hdr(skb); in nf_ip6_reroute() 140 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum() 174 const struct ipv6hdr *ip6h = ipv6_hdr(skb); in nf_ip6_checksum_partial()
|
D | syncookies.c | 116 const struct ipv6hdr *iph = ipv6_hdr(skb); in cookie_v6_init_sequence() 155 mss = __cookie_v6_check(ipv6_hdr(skb), th, cookie); in cookie_v6_check() 169 ipv6_hdr(skb)->daddr.s6_addr32, in cookie_v6_check() 170 ipv6_hdr(skb)->saddr.s6_addr32); in cookie_v6_check() 192 ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; in cookie_v6_check() 193 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in cookie_v6_check()
|
D | seg6_iptunnel.c | 110 inner_hdr = ipv6_hdr(skb); in seg6_do_srh_encap() 115 hdr = ipv6_hdr(skb); in seg6_do_srh_encap() 170 oldhdr = ipv6_hdr(skb); in seg6_do_srh_inline() 180 hdr = ipv6_hdr(skb); in seg6_do_srh_inline() 264 ipv6_hdr(skb)->payload_len = htons(skb->len - sizeof(struct ipv6hdr)); in seg6_do_srh() 297 &ipv6_hdr(skb)->saddr); in seg6_input() 329 struct ipv6hdr *hdr = ipv6_hdr(skb); in seg6_output()
|
D | ip6_input.c | 64 ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]); in ip6_rcv_finish() 116 hdr = ipv6_hdr(skb); in ipv6_rcv() 202 hdr = ipv6_hdr(skb); in ipv6_rcv() 283 hdr = ipv6_hdr(skb); in ip6_input_finish() 352 hdr = ipv6_hdr(skb); in ip6_mc_input()
|
D | xfrm6_mode_transport.c | 29 iph = ipv6_hdr(skb); in xfrm6_transport_output() 39 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_transport_output() 60 ipv6_hdr(skb)->payload_len = htons(skb->len + ihl - in xfrm6_transport_input()
|
D | xfrm6_mode_beet.c | 24 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_beet_make_header() 61 top_iph = ipv6_hdr(skb); in xfrm6_beet_output() 96 ip6h = ipv6_hdr(skb); in xfrm6_beet_input()
|
D | reassembly.c | 126 end = offset + (ntohs(ipv6_hdr(skb)->payload_len) - in ip6_frag_queue() 127 ((u8 *)(fhdr + 1) - (u8 *)(ipv6_hdr(skb) + 1))); in ip6_frag_queue() 137 ecn = ip6_frag_ecn(ipv6_hdr(skb)); in ip6_frag_queue() 294 ipv6_hdr(skb)->payload_len = htons(payload_len); in ip6_frag_reasm() 295 ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn); in ip6_frag_reasm() 330 const struct ipv6hdr *hdr = ipv6_hdr(skb); in ipv6_frag_rcv() 347 hdr = ipv6_hdr(skb); in ipv6_frag_rcv()
|
D | datagram.c | 350 iph = ipv6_hdr(skb); in ipv6_local_error() 388 iph = ipv6_hdr(skb); in ipv6_local_rxpmtu() 398 mtu_info->ip6m_addr.sin6_addr = ipv6_hdr(skb)->daddr; in ipv6_local_rxpmtu() 505 sin->sin6_addr = ipv6_hdr(skb)->saddr; in ipv6_recv_error() 594 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in ip6_datagram_recv_common_ctl() 616 int hlim = ipv6_hdr(skb)->hop_limit; in ip6_datagram_recv_specific_ctl() 621 int tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in ip6_datagram_recv_specific_ctl() 649 u8 nexthdr = ipv6_hdr(skb)->nexthdr; in ip6_datagram_recv_specific_ctl() 687 src_info.ipi6_addr = ipv6_hdr(skb)->daddr; in ip6_datagram_recv_specific_ctl() 691 int hlim = ipv6_hdr(skb)->hop_limit; in ip6_datagram_recv_specific_ctl() [all …]
|
D | xfrm6_mode_ro.c | 47 iph = ipv6_hdr(skb); in xfrm6_ro_output() 56 memmove(ipv6_hdr(skb), iph, hdr_len); in xfrm6_ro_output()
|
D | icmp.c | 147 int ptr = (u8 *)(ipv6_hdr(skb) + 1) - skb->data; in is_ineligible() 149 __u8 nexthdr = ipv6_hdr(skb)->nexthdr; in is_ineligible() 317 struct ipv6hdr *iph = ipv6_hdr(skb); in mip6_addr_swap() 429 struct ipv6hdr *hdr = ipv6_hdr(skb); in icmp6_send() 638 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, 0); in ip6_err_gen_icmpv6_unreach() 690 saddr = &ipv6_hdr(skb)->daddr; in icmpv6_echo_reply() 702 fl6.daddr = ipv6_hdr(skb)->saddr; in icmpv6_echo_reply() 737 ipc6.tclass = ipv6_get_dsfield(ipv6_hdr(skb)); in icmpv6_echo_reply() 839 saddr = &ipv6_hdr(skb)->saddr; in icmpv6_rcv() 840 daddr = &ipv6_hdr(skb)->daddr; in icmpv6_rcv()
|
D | tcpv6_offload.c | 34 const struct ipv6hdr *iph = ipv6_hdr(skb); in tcp6_gro_complete() 56 const struct ipv6hdr *ipv6h = ipv6_hdr(skb); in tcp6_gso_segment()
|
/net/netfilter/ |
D | xt_DSCP.c | 52 u_int8_t dscp = ipv6_get_dsfield(ipv6_hdr(skb)) >> XT_DSCP_SHIFT; in dscp_tg6() 58 ipv6_change_dsfield(ipv6_hdr(skb), in dscp_tg6() 100 struct ipv6hdr *iph = ipv6_hdr(skb); in tos_tg6() 109 iph = ipv6_hdr(skb); in tos_tg6()
|
/net/dccp/ |
D | ipv6.c | 64 return secure_dccpv6_sequence_number(ipv6_hdr(skb)->daddr.s6_addr32, in dccp_v6_init_sequence() 65 ipv6_hdr(skb)->saddr.s6_addr32, in dccp_v6_init_sequence() 270 rxip6h = ipv6_hdr(rxskb); in dccp_v6_ctl_send_reset() 351 ireq->ir_v6_rmt_addr = ipv6_hdr(skb)->saddr; in dccp_v6_conn_request() 352 ireq->ir_v6_loc_addr = ipv6_hdr(skb)->daddr; in dccp_v6_conn_request() 506 newnp->mcast_hops = ipv6_hdr(skb)->hop_limit; in dccp_v6_request_recv_sock() 660 np->mcast_hops = ipv6_hdr(opt_skb)->hop_limit; in dccp_v6_do_rcv() 662 np->rcv_flowinfo = ip6_flowinfo(ipv6_hdr(opt_skb)); in dccp_v6_do_rcv() 664 np->flow_label = ip6_flowlabel(ipv6_hdr(opt_skb)); in dccp_v6_do_rcv() 695 if (dccp_v6_csum_finish(skb, &ipv6_hdr(skb)->saddr, in dccp_v6_rcv() [all …]
|