/linux-6.1.9/net/netfilter/ |
D | utils.c | 11 unsigned int dataoff, u8 protocol) in nf_ip_checksum() argument 23 skb->len - dataoff, protocol, in nf_ip_checksum() 34 skb->len - dataoff, in nf_ip_checksum() 44 unsigned int dataoff, unsigned int len, in nf_ip_checksum_partial() argument 52 if (len == skb->len - dataoff) in nf_ip_checksum_partial() 53 return nf_ip_checksum(skb, hook, dataoff, protocol); in nf_ip_checksum_partial() 57 skb->len - dataoff, 0); in nf_ip_checksum_partial() 59 return __skb_checksum_complete_head(skb, dataoff + len); in nf_ip_checksum_partial() 65 unsigned int dataoff, u8 protocol) in nf_ip6_checksum() argument 75 skb->len - dataoff, protocol, in nf_ip6_checksum() [all …]
|
D | nf_conntrack_sip.c | 368 unsigned int dataoff, unsigned int datalen, in ct_sip_get_header() argument 376 for (dptr += dataoff; dptr < limit; dptr++) { in ct_sip_get_header() 436 unsigned int dataoff, unsigned int datalen, in ct_sip_next_header() argument 444 dptr += dataoff; in ct_sip_next_header() 466 unsigned int dataoff, unsigned int datalen, in ct_sip_walk_headers() argument 474 ret = ct_sip_next_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers() 480 dataoff = *matchoff; in ct_sip_walk_headers() 486 ret = ct_sip_get_header(ct, dptr, dataoff, datalen, in ct_sip_walk_headers() 492 dataoff = *matchoff; in ct_sip_walk_headers() 506 unsigned int *dataoff, unsigned int datalen, in ct_sip_parse_header_uri() argument [all …]
|
D | nf_nat_sip.c | 35 unsigned int dataoff, in mangle_packet() argument 48 matchoff += dataoff - baseoff; in mangle_packet() 56 matchoff += dataoff - baseoff; in mangle_packet() 65 *dptr = skb->data + dataoff; in mangle_packet() 93 unsigned int dataoff, in map_addr() argument 123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr() 128 unsigned int dataoff, in map_sip_addr() argument 141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr() 146 unsigned int dataoff, in nf_nat_sip() argument 164 !map_addr(skb, protoff, dataoff, dptr, datalen, in nf_nat_sip() [all …]
|
D | nf_conntrack_h323_main.c | 66 unsigned char **data, int *datalen, int *dataoff) in get_tpkt_data() argument 113 *dataoff = 0; in get_tpkt_data() 127 tpktoff = *dataoff + *datalen; in get_tpkt_data() 159 *dataoff = tpktoff + 4; in get_tpkt_data() 208 unsigned char **data, int dataoff, in expect_rtp_rtcp() argument 256 ret = nathook->nat_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in expect_rtp_rtcp() 283 unsigned char **data, int dataoff, in expect_t120() argument 317 dataoff, taddr, port, exp); in expect_t120() 335 unsigned char **data, int dataoff, in process_h245_channel() argument 342 ret = expect_rtp_rtcp(skb, ct, ctinfo, protoff, data, dataoff, in process_h245_channel() [all …]
|
D | nf_conntrack_proto_udp.c | 45 unsigned int dataoff, in udp_error() argument 48 unsigned int udplen = skb->len - dataoff; in udp_error() 53 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udp_error() 75 nf_checksum(skb, state->hook, dataoff, IPPROTO_UDP, state->pf)) { in udp_error() 86 unsigned int dataoff, in nf_conntrack_udp_packet() argument 92 if (udp_error(skb, dataoff, state)) in nf_conntrack_udp_packet() 139 unsigned int dataoff, in udplite_error() argument 142 unsigned int udplen = skb->len - dataoff; in udplite_error() 148 hdr = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in udplite_error() 171 nf_checksum_partial(skb, state->hook, dataoff, cscov, IPPROTO_UDP, in udplite_error() [all …]
|
D | nf_conntrack_proto_icmpv6.c | 32 unsigned int dataoff, in icmpv6_pkt_to_tuple() argument 39 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmpv6_pkt_to_tuple() 134 unsigned int dataoff, in nf_conntrack_icmpv6_redirect() argument 146 rd_msg = skb_header_pointer(skb, dataoff, sizeof(*rd_msg), &tmp.rd_msg); in nf_conntrack_icmpv6_redirect() 160 dataoff += sizeof(*rd_msg); in nf_conntrack_icmpv6_redirect() 163 nd_opt = skb_header_pointer(skb, dataoff, sizeof(*nd_opt), &tmp.nd_opt); in nf_conntrack_icmpv6_redirect() 177 dataoff += 8; in nf_conntrack_icmpv6_redirect() 178 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv6_redirect() 184 unsigned int dataoff, in nf_conntrack_icmpv6_error() argument 192 icmp6h = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv6_error() [all …]
|
D | nf_conntrack_sane.c | 63 unsigned int dataoff, datalen; in help() local 88 dataoff = protoff + th->doff * 4; in help() 89 if (dataoff >= skb->len) in help() 92 datalen = skb->len - dataoff; in help() 99 req = skb_header_pointer(skb, dataoff, datalen, &buf.req); in help() 130 reply = skb_header_pointer(skb, dataoff, datalen, &buf.repl); in help()
|
D | nf_conntrack_proto_sctp.c | 145 #define for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) \ argument 146 for ((offset) = (dataoff) + sizeof(struct sctphdr), (count) = 0; \ 154 unsigned int dataoff, in do_basic_checks() argument 163 for_each_sctp_chunk (skb, sch, _sch, offset, dataoff, count) { in do_basic_checks() 262 const struct sctphdr *sh, unsigned int dataoff) in sctp_new() argument 271 for_each_sctp_chunk(skb, sch, _sch, offset, dataoff, count) { in sctp_new() 317 unsigned int dataoff, in sctp_error() argument 323 if (skb->len < dataoff + sizeof(struct sctphdr)) { in sctp_error() 330 if (skb_ensure_writable(skb, dataoff + sizeof(*sh))) { in sctp_error() 334 sh = (const struct sctphdr *)(skb->data + dataoff); in sctp_error() [all …]
|
D | nf_conntrack_proto_icmp.c | 27 bool icmp_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in icmp_pkt_to_tuple() argument 33 hp = skb_header_pointer(skb, dataoff, sizeof(_hdr), &_hdr); in icmp_pkt_to_tuple() 107 unsigned int dataoff, in nf_conntrack_inet_error() argument 124 if (!nf_ct_get_tuplepr(skb, dataoff, in nf_conntrack_inet_error() 205 struct sk_buff *skb, unsigned int dataoff, in nf_conntrack_icmpv4_error() argument 213 icmph = skb_header_pointer(skb, dataoff, sizeof(_ih), &_ih); in nf_conntrack_icmpv4_error() 222 nf_ip_checksum(skb, state->hook, dataoff, IPPROTO_ICMP)) { in nf_conntrack_icmpv4_error() 245 dataoff += sizeof(*icmph); in nf_conntrack_icmpv4_error() 246 return nf_conntrack_inet_error(tmpl, skb, dataoff, state, in nf_conntrack_icmpv4_error()
|
D | nf_conntrack_proto_tcp.c | 315 unsigned int dataoff, in segment_seq_plus_len() argument 320 return (seq + len - dataoff - tcph->doff*4 in segment_seq_plus_len() 334 unsigned int dataoff, in tcp_options() argument 345 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_options() 391 static void tcp_sack(const struct sk_buff *skb, unsigned int dataoff, in tcp_sack() argument 402 ptr = skb_header_pointer(skb, dataoff + sizeof(struct tcphdr), in tcp_sack() 458 unsigned int dataoff, in tcp_init_sender() argument 469 tcp_options(skb, dataoff, tcph, sender); in tcp_init_sender() 510 unsigned int dataoff, const struct tcphdr *tcph, in tcp_in_window() argument 528 end = segment_seq_plus_len(seq, skb->len, dataoff, tcph); in tcp_in_window() [all …]
|
D | nf_conntrack_amanda.c | 96 unsigned int dataoff, start, stop, off, i; in amanda_help() local 112 dataoff = protoff + sizeof(struct udphdr); in amanda_help() 113 if (dataoff >= skb->len) { in amanda_help() 118 start = skb_find_text(skb, dataoff, skb->len, in amanda_help() 122 start += dataoff + search[SEARCH_CONNECT].len; in amanda_help() 161 off - dataoff, len, exp); in amanda_help()
|
D | nf_conntrack_core.c | 259 unsigned int dataoff, in nf_ct_get_tuple_ports() argument 267 inet_hdr = skb_header_pointer(skb, dataoff, sizeof(_inet_hdr), &_inet_hdr); in nf_ct_get_tuple_ports() 279 unsigned int dataoff, in nf_ct_get_tuple() argument 326 return icmpv6_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple() 329 return icmp_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple() 332 return gre_pkt_to_tuple(skb, dataoff, net, tuple); in nf_ct_get_tuple() 346 return nf_ct_get_tuple_ports(skb, dataoff, tuple); in nf_ct_get_tuple() 357 int dataoff = -1; in ipv4_get_l4proto() local 371 dataoff = nhoff + (iph->ihl << 2); in ipv4_get_l4proto() 375 if (dataoff > skb->len) { in ipv4_get_l4proto() [all …]
|
D | nf_conntrack_irc.c | 110 unsigned int dataoff; in help() local 141 dataoff = protoff + th->doff*4; in help() 142 if (dataoff >= skb->len) in help() 145 datalen = skb->len - dataoff; in help() 150 ib_ptr = skb_header_pointer(skb, dataoff, datalen, in help()
|
D | nf_conntrack_proto_gre.c | 151 bool gre_pkt_to_tuple(const struct sk_buff *skb, unsigned int dataoff, in gre_pkt_to_tuple() argument 161 grehdr = skb_header_pointer(skb, dataoff, sizeof(_grehdr), &_grehdr); in gre_pkt_to_tuple() 170 pgrehdr = skb_header_pointer(skb, dataoff, 8, &_pgrehdr); in gre_pkt_to_tuple() 204 unsigned int dataoff, in nf_conntrack_gre_packet() argument
|
D | nf_nat_helper.c | 26 unsigned int dataoff, in mangle_contents() argument 35 data = skb_network_header(skb) + dataoff; in mangle_contents() 40 skb_tail_pointer(skb) - (skb_network_header(skb) + dataoff + in mangle_contents()
|
D | nf_conntrack_ftp.c | 374 unsigned int dataoff, datalen; in help() local 404 dataoff = protoff + th->doff * 4; in help() 406 if (dataoff >= skb->len) { in help() 407 pr_debug("ftp: dataoff(%u) >= skblen(%u)\n", dataoff, in help() 411 datalen = skb->len - dataoff; in help() 415 fb_ptr = skb->data + dataoff; in help()
|
D | nf_conntrack_proto_dccp.c | 432 struct sk_buff *skb, unsigned int dataoff, in dccp_error() argument 435 unsigned int dccp_len = skb->len - dataoff; in dccp_error() 456 nf_checksum_partial(skb, state->hook, dataoff, cscov, in dccp_error() 473 unsigned int dataoff, in nf_conntrack_dccp_packet() argument 483 dh = skb_header_pointer(skb, dataoff, sizeof(_dh), &_dh); in nf_conntrack_dccp_packet() 487 if (dccp_error(dh, skb, dataoff, state)) in nf_conntrack_dccp_packet()
|
/linux-6.1.9/include/linux/netfilter/ |
D | nf_conntrack_sip.h | 44 unsigned int dataoff, 48 unsigned int dataoff, 113 unsigned int dataoff, 122 unsigned int dataoff, 131 unsigned int dataoff, 141 unsigned int dataoff, 150 unsigned int dataoff, 158 unsigned int dataoff, 174 unsigned int dataoff, unsigned int datalen, 178 unsigned int *dataoff, unsigned int datalen, [all …]
|
D | nf_conntrack_h323.h | 44 unsigned char **data, int dataoff, 48 unsigned char **data, int dataoff, 65 unsigned char **data, int dataoff, 74 unsigned char **data, int dataoff, 81 unsigned char **data, int dataoff, 88 unsigned char **data, int dataoff,
|
/linux-6.1.9/include/net/netfilter/ |
D | nf_conntrack_l4proto.h | 65 unsigned int dataoff, 70 unsigned int dataoff, 80 unsigned int dataoff, 87 unsigned int dataoff, 92 unsigned int dataoff, 107 unsigned int dataoff, 112 unsigned int dataoff, 117 unsigned int dataoff, 122 unsigned int dataoff, 127 unsigned int dataoff, [all …]
|
D | nf_reject.h | 8 static inline bool nf_reject_verify_csum(struct sk_buff *skb, int dataoff, in nf_reject_verify_csum() argument 20 udp_hdr = skb_header_pointer(skb, dataoff, in nf_reject_verify_csum()
|
/linux-6.1.9/net/netfilter/ipvs/ |
D | ip_vs_pe_sip.c | 30 static int get_callid(const char *dptr, unsigned int dataoff, in get_callid() argument 36 int ret = ct_sip_get_header(NULL, dptr, dataoff, datalen, in get_callid() 43 dataoff += *matchoff; in get_callid() 70 unsigned int dataoff, datalen, matchoff, matchlen; in ip_vs_sip_fill_param() local 82 dataoff = iph.len + sizeof(struct udphdr); in ip_vs_sip_fill_param() 84 if (dataoff >= skb->len) in ip_vs_sip_fill_param() 89 dptr = skb->data + dataoff; in ip_vs_sip_fill_param() 90 datalen = skb->len - dataoff; in ip_vs_sip_fill_param()
|
/linux-6.1.9/net/ipv4/netfilter/ |
D | nf_nat_h323.c | 24 unsigned char **data, int dataoff, in set_addr() argument 38 addroff += dataoff; in set_addr() 53 *data = skb->data + ip_hdrlen(skb) + th->doff * 4 + dataoff; in set_addr() 72 unsigned char **data, int dataoff, in set_h225_addr() argument 76 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr() 82 unsigned char **data, int dataoff, in set_h245_addr() argument 86 return set_addr(skb, protoff, data, dataoff, in set_h245_addr() 176 unsigned int protoff, unsigned char **data, int dataoff, in nat_rtp_rtcp() argument 251 if (set_h245_addr(skb, protoff, data, dataoff, taddr, in nat_rtp_rtcp() 282 unsigned int protoff, unsigned char **data, int dataoff, in nat_t120() argument [all …]
|
D | nf_reject_ipv4.c | 83 int dataoff; in nf_reject_skb_v4_unreach() local 103 dataoff = ip_hdrlen(oldskb); in nf_reject_skb_v4_unreach() 107 nf_reject_verify_csum(oldskb, dataoff, proto) && in nf_reject_skb_v4_unreach() 316 int dataoff = ip_hdrlen(skb_in); in nf_send_unreach() local 327 !nf_reject_verify_csum(skb_in, dataoff, proto)) { in nf_send_unreach() 332 if (nf_ip_checksum(skb_in, hook, dataoff, proto) == 0) in nf_send_unreach()
|
/linux-6.1.9/include/linux/ |
D | netfilter_ipv4.h | 25 unsigned int dataoff, u_int8_t protocol); 30 unsigned int dataoff, u_int8_t protocol) in nf_ip_checksum() argument
|