/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/ |
H A D | ecm_tracker.c | 77 typedef bool (*ecm_tracker_ip_header_helper_method_t)(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 83 static bool ecm_tracker_ip_header_helper_tcp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 84 static bool ecm_tracker_ip_header_helper_udp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 85 static bool ecm_tracker_ip_header_helper_icmp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 86 static bool ecm_tracker_ip_header_helper_unknown(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 87 static bool ecm_tracker_ip_header_helper_gre(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 89 static bool ecm_tracker_ip_header_helper_ipv6_generic(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 90 static bool ecm_tracker_ip_header_helper_ipv6_fragment(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 91 static bool ecm_tracker_ip_header_helper_ah(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr); 92 static bool ecm_tracker_ip_header_helper_ipv6_icmp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struc 408 ecm_tracker_ip_check_header_and_read(struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb) argument 624 ecm_tracker_ip_header_helper_ipv6_generic(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 670 ecm_tracker_ip_header_helper_ipv6_fragment(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 713 ecm_tracker_ip_header_helper_ah(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 773 ecm_tracker_ip_header_helper_ipv6_icmp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 799 ecm_tracker_ip_header_helper_tcp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 846 ecm_tracker_ip_header_helper_gre(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 909 ecm_tracker_ip_header_helper_udp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 936 ecm_tracker_ip_header_helper_unknown(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument 954 ecm_tracker_ip_header_helper_icmp(struct ecm_tracker_ip_protocols *etip, struct ecm_tracker_ip_protocol_header *etiph, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, uint8_t protocol, ecm_tracker_ip_protocol_type_t ecm_ip_protocol, uint32_t offset, uint32_t remain, int16_t *next_hdr) argument [all...] |
H A D | ecm_tracker_udp.h | 24 typedef bool (*ecm_tracker_udp_datagram_add_method_t)(struct ecm_tracker_udp_instance *uti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header, struct udphdr *udp_header, struct sk_buff *skb); 39 struct udphdr *ecm_tracker_udp_check_header_and_read(struct sk_buff *skb, struct ecm_tracker_ip_header *ip_hdr, struct udphdr *port_buffer);
|
H A D | ecm_classifier_default.h | 31 typedef void (*ecm_classifier_default_process_callback_t)(struct ecm_classifier_default_instance *dci, ecm_tracker_sender_type_t sender, struct iphdr *ip_hdr, int ip_hdr_len, int ip_total_len, struct sk_buff *skb);
|
H A D | ecm_tracker_tcp.h | 29 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_tcp_header, struct tcphdr *tcp_hdr, struct sk_buff *skb); 49 struct tcphdr *ecm_tracker_tcp_check_header_and_read(struct sk_buff *skb, struct ecm_tracker_ip_header *ip_hdr, struct tcphdr *port_buffer);
|
H A D | ecm_tracker_udp.c | 148 struct udphdr *ecm_tracker_udp_check_header_and_read(struct sk_buff *skb, struct ecm_tracker_ip_header *ip_hdr, struct udphdr *port_buffer) argument 155 header = &ip_hdr->headers[ECM_TRACKER_IP_PROTOCOL_TYPE_UDP]; 553 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header, 560 utii, skb, sender, ip_hdr->ip_header_length, ip_hdr->total_length, 581 if (ip_hdr->total_length < (ecm_udp_header->offset + ecm_udp_header->size)) { 655 struct ecm_tracker_ip_header ip_hdr; local 665 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 666 DEBUG_WARN("%p: no ip_hdr for %p\n", utii, skb); 673 udp_header = ecm_tracker_udp_check_header_and_read(skb, &ip_hdr, 552 ecm_tracker_udp_datagram_add(struct ecm_tracker_udp_internal_instance *utii, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header, struct udphdr *udp_header, struct sk_buff *skb) argument 687 ecm_tracker_udp_datagram_add_checked_callback(struct ecm_tracker_udp_instance *uti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_udp_header, struct udphdr *udp_header, struct sk_buff *skb) argument 796 ecm_tracker_udp_state_update_callback(struct ecm_tracker_instance *ti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb) argument [all...] |
H A D | ecm_tracker.h | 177 typedef void (*ecm_tracker_state_update_method_t)(struct ecm_tracker_instance *ti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb); 217 bool ecm_tracker_ip_check_header_and_read(struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb);
|
H A D | ecm_classifier_dscp.c | 195 struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, 324 flow_dscp = ip_hdr->ds >> XT_DSCP_SHIFT; /* NOTE: XT_DSCP_SHIFT is okay for V4 and V6 */ 359 return_dscp = ip_hdr->ds >> XT_DSCP_SHIFT; /* NOTE: XT_DSCP_SHIFT is okay for V4 and V6 */ 194 ecm_classifier_dscp_process(struct ecm_classifier_instance *aci, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, struct ecm_classifier_process_response *process_response) argument
|
H A D | ecm_classifier.h | 131 typedef void (*ecm_classifier_process_callback_t)(struct ecm_classifier_instance *ci, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, struct ecm_classifier_process_response *process_response);
|
H A D | ecm_tracker_tcp.c | 272 struct tcphdr *ecm_tracker_tcp_check_header_and_read(struct sk_buff *skb, struct ecm_tracker_ip_header *ip_hdr, struct tcphdr *port_buffer) argument 283 header = &ip_hdr->headers[ECM_TRACKER_IP_PROTOCOL_TYPE_TCP]; 305 if (unlikely(ip_hdr->total_length < (header->offset + header->size))) { 306 DEBUG_WARN("TCP packet %p too short (ip_total_len = %u, size needed=%u)\n", skb, ip_hdr->total_length, header->offset + header->size); 887 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_tcp_header, 915 DEBUG_ASSERT((ecm_tcp_header->offset + ecm_tcp_header->size) <= ip_hdr->total_length, "%p: invalid hdrs\n", ttii); 1171 struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_tcp_header, 1245 if (!_ecm_tracker_tcp_stream_segment_add(ttii, data, ip_hdr, ecm_tcp_header, tcp_hdr, skbc, skbc_cb)) { 1296 struct ecm_tracker_ip_header ip_hdr; local 1327 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, sk 885 _ecm_tracker_tcp_stream_segment_add(struct ecm_tracker_tcp_internal_instance *ttii, struct ecm_tracker_tcp_host_data *data, struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_tcp_header, struct tcphdr *tcp_hdr, struct sk_buff *skb, struct ecm_tracker_tcp_skb_cb_format *skb_cb) argument 1170 ecm_tracker_tcp_segment_add_callback(struct ecm_tracker_tcp_instance *tti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct ecm_tracker_ip_protocol_header *ecm_tcp_header, struct tcphdr *tcp_hdr, struct sk_buff *skb) argument 1677 ecm_tracker_tcp_state_update_callback(struct ecm_tracker_instance *ti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb) argument [all...] |
H A D | ecm_classifier_default.c | 211 struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, 260 ti->state_update(ti, sender, ip_hdr, skb); 210 ecm_classifier_default_process(struct ecm_classifier_instance *aci, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, struct ecm_classifier_process_response *process_response) argument
|
H A D | ecm_classifier_hyfi.c | 213 struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, 212 ecm_classifier_hyfi_process(struct ecm_classifier_instance *aci, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, struct ecm_classifier_process_response *process_response) argument
|
H A D | ecm_classifier_pcc.c | 623 struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, 622 ecm_classifier_pcc_process(struct ecm_classifier_instance *aci, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb, struct ecm_classifier_process_response *process_response) argument
|
H A D | ecm_tracker_datagram.c | 613 static void ecm_tracker_datagram_state_update_callback(struct ecm_tracker_instance *ti, ecm_tracker_sender_type_t sender, struct ecm_tracker_ip_header *ip_hdr, struct sk_buff *skb) argument
|
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/frontends/nss/ |
H A D | ecm_nss_non_ported_ipv6.h | 22 struct ecm_tracker_ip_header *ip_hdr,
|
H A D | ecm_nss_non_ported_ipv4.h | 22 struct ecm_tracker_ip_header *ip_hdr,
|
H A D | ecm_nss_ipv6.c | 812 struct ecm_tracker_ip_header ip_hdr; local 825 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 830 if (ip_hdr.fragmented) { 841 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.src.u3.in6, ip_hdr.src_addr); 842 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.dst.u3.in6, ip_hdr.dest_addr); 843 orig_tuple.dst.protonum = ip_hdr.protocol; 844 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.src.u3.in6, ip_hdr.dest_addr); 845 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.dst.u3.in6, ip_hdr.src_addr); 883 orig_tuple.dst.protonum = ip_hdr.protocol; 901 &ip_hdr, [all...] |
H A D | ecm_nss_ipv4.c | 849 struct ecm_tracker_ip_header ip_hdr; local 868 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 873 if (ip_hdr.fragmented) { 884 ECM_IP_ADDR_TO_NIN4_ADDR(orig_tuple.src.u3.ip, ip_hdr.src_addr); 885 ECM_IP_ADDR_TO_NIN4_ADDR(orig_tuple.dst.u3.ip, ip_hdr.dest_addr); 886 orig_tuple.dst.protonum = ip_hdr.protocol; 926 orig_tuple.dst.protonum = ip_hdr.protocol; 943 &ip_hdr, 1246 &ip_hdr, 1257 &ip_hdr, [all...] |
H A D | ecm_front_end_ipv6.c | 6877 struct ecm_tracker_ip_header *ip_hdr, 7213 aci->process(aci, sender, ip_hdr, skb, &aci_pr); 7360 struct ecm_tracker_ip_header ip_hdr; 7373 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 7378 if (ip_hdr.fragmented) { 7389 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.src.u3.in6, ip_hdr.src_addr); 7390 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.dst.u3.in6, ip_hdr.dest_addr); 7391 orig_tuple.dst.protonum = ip_hdr.protocol; 7392 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.src.u3.in6, ip_hdr.dest_addr); 7393 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.dst.u3.in6, ip_hdr [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/frontends/sfe/ |
H A D | ecm_sfe_non_ported_ipv6.h | 22 struct ecm_tracker_ip_header *ip_hdr,
|
H A D | ecm_sfe_non_ported_ipv4.h | 22 struct ecm_tracker_ip_header *ip_hdr,
|
H A D | ecm_sfe_ipv6.c | 794 struct ecm_tracker_ip_header ip_hdr; local 807 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 812 if (ip_hdr.fragmented) { 823 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.src.u3.in6, ip_hdr.src_addr); 824 ECM_IP_ADDR_TO_NIN6_ADDR(orig_tuple.dst.u3.in6, ip_hdr.dest_addr); 825 orig_tuple.dst.protonum = ip_hdr.protocol; 826 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.src.u3.in6, ip_hdr.dest_addr); 827 ECM_IP_ADDR_TO_NIN6_ADDR(reply_tuple.dst.u3.in6, ip_hdr.src_addr); 865 orig_tuple.dst.protonum = ip_hdr.protocol; 883 &ip_hdr, [all...] |
H A D | ecm_sfe_ipv4.c | 829 struct ecm_tracker_ip_header ip_hdr; local 848 if (!ecm_tracker_ip_check_header_and_read(&ip_hdr, skb)) { 853 if (ip_hdr.fragmented) { 864 ECM_IP_ADDR_TO_NIN4_ADDR(orig_tuple.src.u3.ip, ip_hdr.src_addr); 865 ECM_IP_ADDR_TO_NIN4_ADDR(orig_tuple.dst.u3.ip, ip_hdr.dest_addr); 866 orig_tuple.dst.protonum = ip_hdr.protocol; 906 orig_tuple.dst.protonum = ip_hdr.protocol; 923 &ip_hdr, 1226 &ip_hdr, 1237 &ip_hdr, [all...] |
/netgear-R7800-V1.0.2.28/package/qca-mcs/src/ |
H A D | mc_netfilter.c | 68 const struct iphdr *iph = ip_hdr(skb);
|
H A D | mc_forward.c | 264 ip = ip_hdr(skb);
|
H A D | mc_snooping.c | 84 iph = ip_hdr(skb); 1093 iph = ip_hdr(skb); 1829 struct iphdr *iph = ip_hdr(skb); 2002 iph = ip_hdr(skb); 2018 iph = ip_hdr(skb);
|