Home
last modified time | relevance | path

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

12

/net/netfilter/
Dnf_conntrack_h323_main.c53 int (*set_h245_addr_hook) (struct sk_buff *skb, unsigned int protoff,
58 int (*set_h225_addr_hook) (struct sk_buff *skb, unsigned int protoff,
66 unsigned int protoff, unsigned char **data,
71 unsigned int protoff, unsigned char **data,
76 unsigned int protoff,
85 unsigned int protoff,
92 unsigned int protoff,
99 unsigned int protoff,
106 unsigned int protoff,
118 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_pptp.c51 unsigned int protoff, struct PptpControlHeader *ctlh,
58 unsigned int protoff, struct PptpControlHeader *ctlh,
274 pptp_inbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_inbound_pkt() argument
389 protoff, ctlh, pptpReq); in pptp_inbound_pkt()
402 pptp_outbound_pkt(struct sk_buff *skb, unsigned int protoff, in pptp_outbound_pkt() argument
485 protoff, ctlh, pptpReq); in pptp_outbound_pkt()
515 conntrack_pptp_help(struct sk_buff *skb, unsigned int protoff, in conntrack_pptp_help() argument
527 unsigned int tcplen = skb->len - protoff; in conntrack_pptp_help()
545 nexthdr_off = protoff; in conntrack_pptp_help()
592 ret = pptp_outbound_pkt(skb, protoff, ctlh, pptpReq, reqlen, ct, in conntrack_pptp_help()
[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()
Dnf_conntrack_irc.c35 unsigned int protoff,
106 static int help(struct sk_buff *skb, unsigned int protoff, in help() argument
134 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
139 dataoff = protoff + th->doff*4; in help()
235 ret = nf_nat_irc(skb, ctinfo, protoff, in 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_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.c63 unsigned int protoff, in help() argument
85 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
90 dataoff = protoff + th->doff * 4; 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()
371 int protoff; in ipv6_confirm() local
377 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in ipv6_confirm()
379 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { in ipv6_confirm()
384 return nf_confirm(skb, protoff, ct, ctinfo); in ipv6_confirm()
Dnf_nat_amanda.c30 unsigned int protoff, in help() argument
67 protoff, matchoff, matchlen, 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_nat_irc.c34 unsigned int protoff, in help() argument
88 if (!nf_nat_mangle_tcp_packet(skb, ct, ctinfo, protoff, matchoff, in help()
Dnf_conntrack_ftp.c53 unsigned int protoff,
374 unsigned int protoff, in help() argument
401 th = skb_header_pointer(skb, protoff, sizeof(_tcph), &_tcph); in help()
405 dataoff = protoff + th->doff * 4; in help()
525 protoff, matchoff, matchlen, exp); in help()
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_core.c348 int protoff = -1; in ipv6_get_l4proto() local
358 protoff = ipv6_skip_exthdr(skb, extoff, &nexthdr, &frag_off); in ipv6_get_l4proto()
363 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) { in ipv6_get_l4proto()
369 return protoff; in ipv6_get_l4proto()
395 int protoff; in nf_ct_get_tuplepr() local
397 protoff = get_l4proto(skb, nhoff, l3num, &protonum); in nf_ct_get_tuplepr()
398 if (protoff <= 0) in nf_ct_get_tuplepr()
401 return nf_ct_get_tuple(skb, nhoff, protoff, l3num, protonum, net, tuple); in nf_ct_get_tuplepr()
1943 int protoff; in nf_confirm_cthelper() local
1958 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_confirm_cthelper()
[all …]
Dxt_tcpudp.c34 unsigned int protoff, in tcp_find_option() argument
50 op = skb_header_pointer(skb, protoff + sizeof(struct tcphdr), in tcp_find_option()
Dnf_conntrack_netbios_ns.c39 static int netbios_ns_help(struct sk_buff *skb, unsigned int protoff, in netbios_ns_help() argument
/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()
/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()
/net/bridge/netfilter/
Dnf_conntrack_bridge.c372 int protoff; in nf_ct_bridge_confirm() local
380 protoff = skb_network_offset(skb) + ip_hdrlen(skb); in nf_ct_bridge_confirm()
386 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in nf_ct_bridge_confirm()
388 if (protoff < 0 || (frag_off & htons(~0x7)) != 0) in nf_ct_bridge_confirm()
395 return nf_confirm(skb, protoff, ct, ctinfo); in nf_ct_bridge_confirm()

12