Home
last modified time | relevance | path

Searched refs:protoff (Results 1 – 25 of 44) sorted by relevance

12

/linux-5.19.10/net/netfilter/
Dnf_conntrack_h323_main.c55 int (*set_h245_addr_hook) (struct sk_buff *skb, unsigned int protoff,
60 int (*set_h225_addr_hook) (struct sk_buff *skb, unsigned int protoff,
68 unsigned int protoff, unsigned char **data,
73 unsigned int protoff, unsigned char **data,
78 unsigned int protoff,
87 unsigned int protoff,
94 unsigned int protoff,
101 unsigned int protoff,
108 unsigned int protoff,
120 static int get_tpkt_data(struct sk_buff *skb, unsigned int protoff, in get_tpkt_data() argument
[all …]
Dnf_nat_sip.c34 static unsigned int mangle_packet(struct sk_buff *skb, unsigned int protoff, in mangle_packet() argument
46 th = (struct tcphdr *)(skb->data + protoff); in mangle_packet()
47 baseoff = protoff + th->doff * 4; in mangle_packet()
51 protoff, matchoff, matchlen, in mangle_packet()
55 baseoff = protoff + sizeof(struct udphdr); in mangle_packet()
59 protoff, matchoff, matchlen, in mangle_packet()
92 static int map_addr(struct sk_buff *skb, unsigned int protoff, in map_addr() argument
123 return mangle_packet(skb, protoff, dataoff, dptr, datalen, in map_addr()
127 static int map_sip_addr(struct sk_buff *skb, unsigned int protoff, in map_sip_addr() argument
141 return map_addr(skb, protoff, dataoff, dptr, datalen, in map_sip_addr()
[all …]
Dnf_nat_helper.c89 unsigned int protoff, in __nf_nat_mangle_tcp_packet() argument
106 tcph = (void *)skb->data + protoff; in __nf_nat_mangle_tcp_packet()
108 oldlen = skb->len - protoff; in __nf_nat_mangle_tcp_packet()
109 mangle_contents(skb, protoff + tcph->doff*4, in __nf_nat_mangle_tcp_packet()
112 datalen = skb->len - protoff; in __nf_nat_mangle_tcp_packet()
139 unsigned int protoff, in nf_nat_mangle_udp_packet() argument
156 udph = (void *)skb->data + protoff; in nf_nat_mangle_udp_packet()
158 oldlen = skb->len - protoff; in nf_nat_mangle_udp_packet()
159 mangle_contents(skb, protoff + sizeof(*udph), in nf_nat_mangle_udp_packet()
163 datalen = skb->len - protoff; in nf_nat_mangle_udp_packet()
Dnf_conntrack_seqadj.c118 unsigned int protoff, in nf_ct_sack_adjust() argument
122 struct tcphdr *tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust()
126 optoff = protoff + sizeof(struct tcphdr); in nf_ct_sack_adjust()
127 optend = protoff + tcph->doff * 4; in nf_ct_sack_adjust()
132 tcph = (void *)skb->data + protoff; in nf_ct_sack_adjust()
166 unsigned int protoff) in nf_ct_seq_adjust() argument
179 if (skb_ensure_writable(skb, protoff + sizeof(*tcph))) in nf_ct_seq_adjust()
182 tcph = (void *)skb->data + protoff; in nf_ct_seq_adjust()
212 res = nf_ct_sack_adjust(skb, protoff, ct, ctinfo); in nf_ct_seq_adjust()
Dnf_conntrack_sip.c846 static int set_expected_rtp_rtcp(struct sk_buff *skb, unsigned int protoff, in set_expected_rtp_rtcp() argument
951 !hooks->sdp_port(skb, protoff, dataoff, dptr, datalen, in set_expected_rtp_rtcp()
973 ret = hooks->sdp_media(skb, protoff, dataoff, dptr, in set_expected_rtp_rtcp()
1026 static int process_sdp(struct sk_buff *skb, unsigned int protoff, in process_sdp() argument
1101 ret = set_expected_rtp_rtcp(skb, protoff, dataoff, in process_sdp()
1113 ret = hooks->sdp_addr(skb, protoff, dataoff, in process_sdp()
1129 ret = hooks->sdp_session(skb, protoff, dataoff, in process_sdp()
1135 static int process_invite_response(struct sk_buff *skb, unsigned int protoff, in process_invite_response() argument
1146 return process_sdp(skb, protoff, dataoff, dptr, datalen, cseq); in process_invite_response()
1152 static int process_update_response(struct sk_buff *skb, unsigned int protoff, in process_update_response() argument
[all …]
Dnf_conntrack_snmp.c29 unsigned int protoff,
34 static int snmp_conntrack_help(struct sk_buff *skb, unsigned int protoff, in snmp_conntrack_help() argument
44 return nf_nat_snmp(skb, protoff, ct, ctinfo); in snmp_conntrack_help()
Dxt_dccp.c36 unsigned int protoff, in dccp_find_option() argument
53 op = skb_header_pointer(skb, protoff + optoff, optlen, dccp_optbuf); in dccp_find_option()
89 match_option(u_int8_t option, const struct sk_buff *skb, unsigned int protoff, in match_option() argument
92 return dccp_find_option(option, skb, protoff, dh, hotdrop); in match_option()
Dnf_conntrack_irc.c35 unsigned int protoff,
107 static int help(struct sk_buff *skb, unsigned int protoff, in help() argument
136 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
141 dataoff = protoff + th->doff*4; in help()
222 ret = nf_nat_irc(skb, ctinfo, protoff, in help()
Dnf_conntrack_pptp.c252 pptp_inbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_inbound_pkt() argument
366 return hook->inbound(skb, ct, ctinfo, protoff, ctlh, pptpReq); in pptp_inbound_pkt()
379 pptp_outbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_outbound_pkt() argument
461 return hook->outbound(skb, ct, ctinfo, protoff, ctlh, pptpReq); in pptp_outbound_pkt()
491 conntrack_pptp_help(struct sk_buff *skb, unsigned int protoff, in conntrack_pptp_help() argument
503 unsigned int tcplen = skb->len - protoff; in conntrack_pptp_help()
521 nexthdr_off = protoff; in conntrack_pptp_help()
570 ret = pptp_outbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, in conntrack_pptp_help()
574 ret = pptp_inbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, in conntrack_pptp_help()
Dnf_conntrack_amanda.c42 unsigned int protoff,
90 unsigned int protoff, in amanda_help() argument
112 dataoff = protoff + sizeof(struct udphdr); in amanda_help()
160 ret = nf_nat_amanda(skb, ctinfo, protoff, in amanda_help()
Dnf_conntrack_sane.c59 unsigned int protoff, in help() argument
83 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
88 dataoff = protoff + th->doff * 4; in help()
Dnf_nat_amanda.c30 unsigned int protoff, in help() argument
67 protoff, matchoff, matchlen, in help()
Dnf_conntrack_proto.c124 unsigned int nf_confirm(struct sk_buff *skb, unsigned int protoff, in nf_confirm() argument
138 protoff, in nf_confirm()
147 if (!nf_ct_seq_adjust(skb, ct, ctinfo, protoff)) { in nf_confirm()
384 int protoff; in ipv6_confirm() local
393 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in ipv6_confirm()
395 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { in ipv6_confirm()
400 return nf_confirm(skb, protoff, ct, ctinfo); in ipv6_confirm()
Dnf_nat_irc.c34 unsigned int protoff, in help() argument
88 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in help()
Dxt_HMARK.c135 int protoff; in hmark_set_tuple_ports() local
137 protoff = proto_ports_offset(t->proto); in hmark_set_tuple_ports()
138 if (protoff < 0) in hmark_set_tuple_ports()
141 nhoff += protoff; in hmark_set_tuple_ports()
Dnf_conntrack_tftp.c41 unsigned int protoff, in tftp_help() argument
52 tfh = skb_header_pointer(skb, protoff + sizeof(struct udphdr), in tftp_help()
Dnf_nat_ftp.c66 unsigned int protoff, in nf_nat_ftp() argument
115 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in nf_nat_ftp()
Dnf_conntrack_ftp.c48 unsigned int protoff,
369 unsigned int protoff, in help() argument
399 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
403 dataoff = protoff + th->doff * 4; in help()
522 protoff, matchoff, matchlen, exp); in help()
/linux-5.19.10/include/linux/netfilter/
Dnf_conntrack_h323.h41 extern int (*set_h245_addr_hook) (struct sk_buff *skb, unsigned int protoff,
46 extern int (*set_h225_addr_hook) (struct sk_buff *skb, unsigned int protoff,
54 unsigned int protoff, unsigned char **data,
59 unsigned int protoff, unsigned char **data,
64 unsigned int protoff, unsigned char **data,
72 unsigned int protoff,
78 unsigned int protoff,
85 unsigned int protoff,
92 unsigned int protoff,
Dnf_conntrack_sip.h43 int (*request)(struct sk_buff *skb, unsigned int protoff,
47 int (*response)(struct sk_buff *skb, unsigned int protoff,
112 unsigned int protoff,
118 unsigned int protoff, s16 off);
121 unsigned int protoff,
130 unsigned int protoff,
140 unsigned int protoff,
149 unsigned int protoff,
157 unsigned int protoff,
/linux-5.19.10/net/ipv4/netfilter/
Dnf_nat_h323.c23 static int set_addr(struct sk_buff *skb, unsigned int protoff, in set_addr() argument
42 protoff, addroff, sizeof(buf), in set_addr()
56 protoff, addroff, sizeof(buf), in set_addr()
71 static int set_h225_addr(struct sk_buff *skb, unsigned int protoff, in set_h225_addr() argument
76 return set_addr(skb, protoff, data, dataoff, taddr->ipAddress.ip, in set_h225_addr()
81 static int set_h245_addr(struct sk_buff *skb, unsigned protoff, in set_h245_addr() argument
86 return set_addr(skb, protoff, data, dataoff, in set_h245_addr()
94 unsigned int protoff, unsigned char **data, in set_sig_addr() argument
120 return set_h225_addr(skb, protoff, data, 0, in set_sig_addr()
132 return set_h225_addr(skb, protoff, data, 0, in set_sig_addr()
[all …]
Dnf_nat_pptp.c123 unsigned int protoff, in pptp_outbound_pkt() argument
189 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in pptp_outbound_pkt()
234 unsigned int protoff, in pptp_inbound_pkt() argument
289 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in pptp_inbound_pkt()
/linux-5.19.10/include/net/netfilter/
Dnf_nat_helper.h13 unsigned int protoff, unsigned int match_offset,
20 unsigned int protoff, in nf_nat_mangle_tcp_packet() argument
26 return __nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, in nf_nat_mangle_tcp_packet()
33 unsigned int protoff, unsigned int match_offset,
/linux-5.19.10/net/netfilter/ipset/
Dip_set_getport.c135 int protoff; in ip_set_get_ip6_port() local
140 protoff = ipv6_skip_exthdr(skb, in ip_set_get_ip6_port()
144 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in ip_set_get_ip6_port()
147 return get_port(skb, nexthdr, protoff, src, port, proto); in ip_set_get_ip6_port()
/linux-5.19.10/net/bridge/netfilter/
Dnf_conntrack_bridge.c373 int protoff; in nf_ct_bridge_confirm() local
381 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_ct_bridge_confirm()
387 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in nf_ct_bridge_confirm()
389 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in nf_ct_bridge_confirm()
396 return nf_confirm(skb, protoff, ct, ctinfo); in nf_ct_bridge_confirm()

12