/netgear-R7800-V1.0.2.28/package/qca-ssdk/src/app/nathelper/linux/ |
H A D | napt_helper.c | 104 uint16_t l3num = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; 105 uint8_t protonum = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum; 138 org_tuple = &(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); 139 rep_tuple = &(ct->tuplehash[IP_CT_DIR_REPLY].tuple); 144 org_tuple = &(ct->tuplehash[IP_CT_DIR_REPLY].tuple); 145 rep_tuple = &(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); 235 rep_tuple = &(ct->tuplehash[IP_CT_DIR_REPLY].tuple); 237 rep_tuple = &(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); 261 uint16_t l3num = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.l3num; 262 uint8_t protonum = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/ |
H A D | ecm_classifier_nl.c | 152 * helper for sending basic genl commands requiring only a tuple attribute 159 struct ecm_cl_nl_genl_attr_tuple *tuple) 165 skb = genlmsg_new(sizeof(*tuple) + ecm_cl_nl_genl_family.hdrsize, 184 ret = nla_put(skb, ECM_CL_NL_GENL_ATTR_TUPLE, sizeof(*tuple), tuple); 186 DEBUG_WARN("failed to put tuple into genl msg: %d\n", ret); 212 static int ecm_cl_nl_genl_attr_tuple_encode(struct ecm_cl_nl_genl_attr_tuple *tuple, argument 220 memset(tuple, 0, sizeof(*tuple)); 221 tuple 158 ecm_classifier_nl_send_genl_msg(enum ECM_CL_NL_GENL_CMD cmd, struct ecm_cl_nl_genl_attr_tuple *tuple) argument 245 ecm_cl_nl_genl_attr_tuple_decode(struct ecm_cl_nl_genl_attr_tuple *tuple, int *proto, ip_addr_t src_ip, int *src_port, ip_addr_t dst_ip, int *dst_port) argument 284 struct ecm_cl_nl_genl_attr_tuple tuple; local 353 struct ecm_cl_nl_genl_attr_tuple tuple; local 384 struct ecm_cl_nl_genl_attr_tuple *tuple; local 895 struct nf_conntrack_tuple tuple = {}; local [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/netlink/ |
H A D | nss_nlipv4.c | 232 * verify and override 5-tuple entries 236 struct nss_ipv4_5tuple *tuple = &msg->tuple; local 242 if (!tuple->protocol || !tuple->flow_ip || !tuple->return_ip) { 243 nss_nl_info("Empty protocol or flow_ip or return_ip for 5-tuple\n"); 248 switch (tuple->protocol) { 259 if (ident_check && (!tuple->flow_ident || !tuple [all...] |
/netgear-R7800-V1.0.2.28/package/simulated-driver/src/ |
H A D | sfe_drv.c | 442 sic.protocol = msg->msg.rule_create.tuple.protocol; 443 sic.src_ip.ip = msg->msg.rule_create.tuple.flow_ip; 444 sic.dest_ip.ip = msg->msg.rule_create.tuple.return_ip; 457 sic.src_port = msg->msg.rule_create.tuple.flow_ident; 458 sic.dest_port = msg->msg.rule_create.tuple.return_ident; 475 sic.src_port = msg->msg.rule_create.tuple.flow_ident; 476 sic.dest_port = msg->msg.rule_create.tuple.return_ident; 580 sid.protocol = msg->msg.rule_destroy.tuple.protocol; 581 sid.src_ip.ip = msg->msg.rule_destroy.tuple.flow_ip; 582 sid.dest_ip.ip = msg->msg.rule_destroy.tuple [all...] |
H A D | sfe_drv.h | 118 * Common 5 tuple structure 130 * Common 5 tuple structure 231 struct sfe_ipv4_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:sfe_ipv4_rule_create_msg 249 struct sfe_ipv4_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:sfe_ipv4_rule_destroy_msg 323 struct sfe_ipv6_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:sfe_ipv6_rule_create_msg 342 struct sfe_ipv6_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:sfe_ipv6_rule_destroy_msg [all...] |
/netgear-R7800-V1.0.2.28/package/shortcut-fe/src/ |
H A D | sfe_cm.c | 398 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 399 reply_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; 724 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 811 struct nf_conntrack_tuple tuple; local 816 * Create a tuple so as to be able to look up a connection 818 memset(&tuple, 0, sizeof(tuple)); 819 tuple.src.u.all = (__be16)sis->src_port; 820 tuple.dst.dir = IP_CT_DIR_ORIGINAL; 821 tuple [all...] |
/netgear-R7800-V1.0.2.28/package/dumpevents/files/ |
H A D | codec.lua | 177 -- decode a 5-tuple from the csv, where the first character of the 178 -- 5-tuple starts at pos 179 -- returns: a 2-tuple of (5-tuple-string, end_of_tuple_pos) 203 -- format: "4,time,5-tuple,class,classifier" 220 -- 5-tuple 221 event['5-tuple'], e = tuple_decode_from_csv(event_csv,pos) 233 -- format: "5,time,5-tuple,data" 250 -- 5-tuple 251 event['5-tuple'], [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-clients/src/capwapmgr/ |
H A D | nss_capwapmgr.c | 595 nirdm->tuple.protocol = (uint8_t)unid->protocol; 596 nirdm->tuple.flow_ip = unid->src_ip; 597 nirdm->tuple.flow_ident = (uint32_t)unid->src_port; 598 nirdm->tuple.return_ip = unid->dest_ip; 599 nirdm->tuple.return_ident = (uint32_t)unid->dest_port; 664 nirdm->tuple.protocol = (uint8_t)unid->protocol; 665 nirdm->tuple.flow_ident = (uint32_t)unid->src_port; 666 nirdm->tuple.flow_ip[0] = unid->src_ip[0]; 667 nirdm->tuple.flow_ip[1] = unid->src_ip[1]; 668 nirdm->tuple [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/frontends/nss/ |
H A D | ecm_nss_multicast_ipv4.c | 189 DEBUG_TRACE("%p: flow_ip: %pI4h:%d\n", nmci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 190 DEBUG_TRACE("%p: return_ip: %pI4h:%d\n", nmci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 191 DEBUG_TRACE("%p: protocol: %d\n", nmci, nircm->tuple.protocol); 249 DEBUG_TRACE("%p: flow_ip: %pI4h:%d\n", nmci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 250 DEBUG_TRACE("%p: return_ip: %pI4h:%d\n", nmci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 251 DEBUG_TRACE("%p: protocol: %d\n", nmci, nircm->tuple [all...] |
H A D | ecm_nss_non_ported_ipv4.c | 234 DEBUG_TRACE("%p: flow_ip: %pI4h:%d\n", nnpci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 235 DEBUG_TRACE("%p: return_ip: %pI4h:%d\n", nnpci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 236 DEBUG_TRACE("%p: protocol: %d\n", nnpci, nircm->tuple.protocol); 872 nircm->tuple.protocol = (int32_t)protocol; 878 ECM_IP_ADDR_TO_HIN4_ADDR(nircm->tuple.flow_ip, addr); 887 ECM_IP_ADDR_TO_HIN4_ADDR(nircm->tuple.return_ip, addr); 907 nircm->tuple.flow_ident = ecm_db_connection_from_port_get(feci->ci); 908 nircm->tuple [all...] |
H A D | ecm_nss_multicast_ipv6.c | 194 //DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nmci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 195 //DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nmci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 196 DEBUG_TRACE("%p: protocol: %d\n", nmci, nircm->tuple.protocol); 251 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 252 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 259 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nmci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 260 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nmci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 261 DEBUG_TRACE("%p: protocol: %d\n", nmci, nircm->tuple.protocol); 719 create->tuple.protocol = IPPROTO_UDP; 725 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(create->tuple [all...] |
H A D | ecm_nss_ported_ipv6.c | 172 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 173 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 185 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", npci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 186 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", npci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 187 DEBUG_TRACE("%p: protocol: %d\n", npci, nircm->tuple.protocol); 822 nircm->tuple.protocol = (int32_t)protocol; 828 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.flow_ip, src_ip); 834 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.return_ip, dest_ip); 839 nircm->tuple.flow_ident = ecm_db_connection_from_port_get(feci->ci); 840 nircm->tuple [all...] |
H A D | ecm_nss_non_ported_ipv6.c | 152 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 153 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 165 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nnpci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 166 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nnpci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 167 DEBUG_TRACE("%p: protocol: %d\n", nnpci, nircm->tuple.protocol); 809 nircm->tuple.protocol = (int32_t)protocol; 815 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.flow_ip, src_ip); 821 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.return_ip, dest_ip); 826 nircm->tuple.flow_ident = ecm_db_connection_from_port_get(feci->ci); 827 nircm->tuple [all...] |
H A D | ecm_front_end_ipv6.c | 1284 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 1285 ECM_NSS_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 1297 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", fecti, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 1298 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", fecti, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 1299 DEBUG_TRACE("%p: protocol: %d\n", fecti, nircm->tuple.protocol); 1916 nircm->tuple.protocol = (int32_t)IPPROTO_TCP; 1922 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.flow_ip, src_ip); 1928 ECM_IP_ADDR_TO_NSS_IPV6_ADDR(nircm->tuple.return_ip, dest_ip); 1933 nircm->tuple.flow_ident = ecm_db_connection_from_port_get(feci->ci); 1934 nircm->tuple [all...] |
H A D | ecm_nss_ported_ipv4.c | 179 DEBUG_TRACE("%p: flow_ip: %pI4h:%d\n", npci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 180 DEBUG_TRACE("%p: return_ip: %pI4h:%d\n", npci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 181 DEBUG_TRACE("%p: protocol: %d\n", npci, nircm->tuple.protocol); 817 nircm->tuple.protocol = (int32_t)protocol; 823 ECM_IP_ADDR_TO_HIN4_ADDR(nircm->tuple.flow_ip, addr); 832 ECM_IP_ADDR_TO_HIN4_ADDR(nircm->tuple.return_ip, addr); 852 nircm->tuple.flow_ident = ecm_db_connection_from_port_get(feci->ci); 853 nircm->tuple [all...] |
H A D | ecm_nss_ipv4.c | 909 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 910 reply_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; 1555 struct nf_conntrack_tuple tuple; local 1791 * Create a tuple so as to be able to look up a conntrack connection 1793 memset(&tuple, 0, sizeof(tuple)); 1794 tuple.src.u3.ip = htonl(sync->flow_ip); 1795 tuple.src.u.all = (__be16)htons(sync->flow_ident); 1796 tuple.src.l3num = AF_INET; 1798 tuple [all...] |
/netgear-R7800-V1.0.2.28/package/qca-nss-ecm/src/frontends/sfe/ |
H A D | ecm_sfe_non_ported_ipv4.c | 234 DEBUG_TRACE("%p: flow_ip: %pI4n:%d\n", nnpci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 235 DEBUG_TRACE("%p: return_ip: %pI4n:%d\n", nnpci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 236 DEBUG_TRACE("%p: protocol: %d\n", nnpci, nircm->tuple.protocol); 879 nircm->tuple.protocol = (int32_t)protocol; 885 ECM_IP_ADDR_TO_NIN4_ADDR(nircm->tuple.flow_ip, addr); 894 ECM_IP_ADDR_TO_NIN4_ADDR(nircm->tuple.return_ip, addr); 914 nircm->tuple.flow_ident = htons(ecm_db_connection_from_port_get(feci->ci)); 915 nircm->tuple [all...] |
H A D | ecm_sfe_ported_ipv6.c | 172 ECM_SFE_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 173 ECM_SFE_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 185 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", npci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 186 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", npci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 187 DEBUG_TRACE("%p: protocol: %d\n", npci, nircm->tuple.protocol); 817 nircm->tuple.protocol = (int32_t)protocol; 823 ECM_IP_ADDR_TO_SFE_IPV6_ADDR(nircm->tuple.flow_ip, src_ip); 829 ECM_IP_ADDR_TO_SFE_IPV6_ADDR(nircm->tuple.return_ip, dest_ip); 834 nircm->tuple.flow_ident = htons(ecm_db_connection_from_port_get(feci->ci)); 835 nircm->tuple [all...] |
H A D | ecm_sfe_non_ported_ipv6.c | 152 ECM_SFE_IPV6_ADDR_TO_IP_ADDR(flow_ip, nircm->tuple.flow_ip); 153 ECM_SFE_IPV6_ADDR_TO_IP_ADDR(return_ip, nircm->tuple.return_ip); 165 DEBUG_TRACE("%p: flow_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nnpci, ECM_IP_ADDR_TO_OCTAL(flow_ip), nircm->tuple.flow_ident); 166 DEBUG_TRACE("%p: return_ip: " ECM_IP_ADDR_OCTAL_FMT ":%d\n", nnpci, ECM_IP_ADDR_TO_OCTAL(return_ip), nircm->tuple.return_ident); 167 DEBUG_TRACE("%p: protocol: %d\n", nnpci, nircm->tuple.protocol); 816 nircm->tuple.protocol = (int32_t)protocol; 822 ECM_IP_ADDR_TO_SFE_IPV6_ADDR(nircm->tuple.flow_ip, src_ip); 828 ECM_IP_ADDR_TO_SFE_IPV6_ADDR(nircm->tuple.return_ip, dest_ip); 833 nircm->tuple.flow_ident = htons(ecm_db_connection_from_port_get(feci->ci)); 834 nircm->tuple [all...] |
H A D | ecm_sfe_ipv6.c | 848 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 849 reply_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; 1269 struct nf_conntrack_tuple tuple; local 1486 * Create a tuple so as to be able to look up a conntrack connection 1488 memset(&tuple, 0, sizeof(tuple)); 1489 ECM_IP_ADDR_TO_NIN6_ADDR(tuple.src.u3.in6, flow_ip); 1490 tuple.src.u.all = sync->flow_ident; 1491 tuple.src.l3num = AF_INET6; 1493 ECM_IP_ADDR_TO_NIN6_ADDR(tuple [all...] |
H A D | ecm_sfe_ported_ipv4.c | 179 DEBUG_TRACE("%p: flow_ip: %pI4n:%d\n", npci, &nircm->tuple.flow_ip, nircm->tuple.flow_ident); 180 DEBUG_TRACE("%p: return_ip: %pI4n:%d\n", npci, &nircm->tuple.return_ip, nircm->tuple.return_ident); 181 DEBUG_TRACE("%p: protocol: %d\n", npci, nircm->tuple.protocol); 812 nircm->tuple.protocol = (int32_t)protocol; 818 ECM_IP_ADDR_TO_NIN4_ADDR(nircm->tuple.flow_ip, addr); 827 ECM_IP_ADDR_TO_NIN4_ADDR(nircm->tuple.return_ip, addr); 847 nircm->tuple.flow_ident = htons(ecm_db_connection_from_port_get(feci->ci)); 848 nircm->tuple [all...] |
H A D | ecm_sfe_ipv4.c | 889 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 890 reply_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; 1541 struct nf_conntrack_tuple tuple; local 1771 * Create a tuple so as to be able to look up a conntrack connection 1773 memset(&tuple, 0, sizeof(tuple)); 1774 tuple.src.u3.ip = sync->flow_ip; 1775 tuple.src.u.all = sync->flow_ident; 1776 tuple.src.l3num = AF_INET; 1778 tuple [all...] |
/netgear-R7800-V1.0.2.28/package/fast-classifier/src/ |
H A D | fast-classifier.c | 473 /* reverse the tuple and try again */ 478 DEBUG_TRACE("conn not found, reversing tuple. new key: %u\n", 605 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 606 reply_tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; 957 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 988 orig_tuple = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple; 1110 struct nf_conntrack_tuple tuple; local 1115 * Create a tuple so as to be able to look up a connection 1117 memset(&tuple, 0, sizeof(tuple)); [all...] |
/netgear-R7800-V1.0.2.28/package/flowmark/ |
H A D | Makefile | 35 Flowmark receives a 5-tuple and a flow ID and marks the appropriate conntrack entry with the flow ID.
|
/netgear-R7800-V1.0.2.28/package/qca-nss-drv/src/exports/ |
H A D | nss_ipv6.h | 164 * Common 5 tuple structure 277 struct nss_ipv6_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:nss_ipv6_rule_create_msg 312 struct nss_ipv6_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:nss_ipv6_mc_rule_create_msg 333 struct nss_ipv6_5tuple tuple; /**< Holds values of the 5 tuple */ member in struct:nss_ipv6_rule_destroy_msg
|