/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iproute2-3.x/tc/ |
H A D | m_csum.c | 40 parse_csum_args(int *argc_p, char ***argv_p, struct tc_csum *sel) argument 52 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IPV4HDR; 55 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_ICMP; 58 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IGMP; 61 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_TCP; 64 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDP; 67 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDPLITE; 89 struct tc_csum sel; local 96 memset(&sel, 0, sizeof(sel)); 179 struct tc_csum *sel; local [all...] |
H A D | m_nat.c | 44 parse_nat_args(int *argc_p, char ***argv_p,struct tc_nat *sel) argument 54 sel->flags |= TCA_NAT_FLAG_EGRESS; 63 sel->old_addr = addr.data[0]; 64 sel->mask = htonl(~0u << (32 - addr.bitlen)); 71 sel->new_addr = addr.data[0]; 87 struct tc_nat sel; local 94 memset(&sel, 0, sizeof(sel)); 99 if (parse_nat_args(&argc, &argv, &sel)) { 122 sel 170 struct tc_nat *sel; local [all...] |
H A D | m_pedit.c | 62 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 122 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 124 int hwm = sel->nkeys; 134 sel->keys[hwm].val = tkey->val; 135 sel->keys[hwm].mask = tkey->mask; 136 sel->keys[hwm].off = tkey->off; 137 sel->keys[hwm].at = tkey->at; 138 sel->keys[hwm].offmask = tkey->offmask; 139 sel->keys[hwm].shift = tkey->shift; 140 sel 146 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 162 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 205 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 268 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 338 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 415 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon3726 466 } sel; local 554 struct tc_pedit_sel *sel; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
H A D | f_u32.c | 117 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, argument 121 int hwm = sel->nkeys; 126 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { 127 __u32 intersect = mask&sel->keys[i].mask; 129 if ((key^sel->keys[i].val) & intersect) 131 sel->keys[i].val |= key; 132 sel->keys[i].mask |= mask; 141 sel->keys[hwm].val = key; 142 sel 149 pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 157 pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 174 pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 226 parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 258 parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 289 parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 324 parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 359 parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 406 parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 444 parse_ether_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 483 parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 543 parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 587 parse_ether(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 613 parse_udp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 637 parse_icmp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 695 parse_selector(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, struct nlmsghdr *n) argument 743 parse_offset(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 794 parse_hashkey(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 979 struct tc_u32_sel sel; member in struct:__anon3721 981 } sel; local 1083 struct tc_u32_sel sel; member in struct:__anon3722 1177 struct tc_u32_sel *sel = NULL; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iproute2-3.x/tc/ |
H A D | m_csum.c | 40 parse_csum_args(int *argc_p, char ***argv_p, struct tc_csum *sel) argument 52 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IPV4HDR; 55 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_ICMP; 58 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IGMP; 61 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_TCP; 64 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDP; 67 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDPLITE; 89 struct tc_csum sel; local 96 memset(&sel, 0, sizeof(sel)); 179 struct tc_csum *sel; local [all...] |
H A D | m_nat.c | 44 parse_nat_args(int *argc_p, char ***argv_p,struct tc_nat *sel) argument 54 sel->flags |= TCA_NAT_FLAG_EGRESS; 63 sel->old_addr = addr.data[0]; 64 sel->mask = htonl(~0u << (32 - addr.bitlen)); 71 sel->new_addr = addr.data[0]; 87 struct tc_nat sel; local 94 memset(&sel, 0, sizeof(sel)); 99 if (parse_nat_args(&argc, &argv, &sel)) { 122 sel 170 struct tc_nat *sel; local [all...] |
H A D | m_pedit.c | 62 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 122 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 124 int hwm = sel->nkeys; 134 sel->keys[hwm].val = tkey->val; 135 sel->keys[hwm].mask = tkey->mask; 136 sel->keys[hwm].off = tkey->off; 137 sel->keys[hwm].at = tkey->at; 138 sel->keys[hwm].offmask = tkey->offmask; 139 sel->keys[hwm].shift = tkey->shift; 140 sel 146 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 162 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 205 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 268 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 338 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 415 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon4631 466 } sel; local 554 struct tc_pedit_sel *sel; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
H A D | f_u32.c | 117 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, argument 121 int hwm = sel->nkeys; 126 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { 127 __u32 intersect = mask&sel->keys[i].mask; 129 if ((key^sel->keys[i].val) & intersect) 131 sel->keys[i].val |= key; 132 sel->keys[i].mask |= mask; 141 sel->keys[hwm].val = key; 142 sel 149 pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 157 pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 174 pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 226 parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 258 parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 289 parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 324 parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 359 parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 406 parse_ip6_class(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 444 parse_ether_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 483 parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 543 parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 587 parse_ether(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 613 parse_udp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 637 parse_icmp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 695 parse_selector(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, struct nlmsghdr *n) argument 743 parse_offset(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 794 parse_hashkey(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 979 struct tc_u32_sel sel; member in struct:__anon4626 981 } sel; local 1083 struct tc_u32_sel sel; member in struct:__anon4627 1177 struct tc_u32_sel *sel = NULL; local [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iproute2-3.x/tc/ |
H A D | m_csum.c | 40 parse_csum_args(int *argc_p, char ***argv_p, struct tc_csum *sel) argument 52 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IPV4HDR; 55 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_ICMP; 58 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_IGMP; 61 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_TCP; 64 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDP; 67 sel->update_flags |= TCA_CSUM_UPDATE_FLAG_UDPLITE; 89 struct tc_csum sel; local 96 memset(&sel, 0, sizeof(sel)); 179 struct tc_csum *sel; local [all...] |
H A D | m_nat.c | 44 parse_nat_args(int *argc_p, char ***argv_p,struct tc_nat *sel) argument 54 sel->flags |= TCA_NAT_FLAG_EGRESS; 63 sel->old_addr = addr.data[0]; 64 sel->mask = htonl(~0u << (32 - addr.bitlen)); 71 sel->new_addr = addr.data[0]; 87 struct tc_nat sel; local 94 memset(&sel, 0, sizeof(sel)); 99 if (parse_nat_args(&argc, &argv, &sel)) { 122 sel 170 struct tc_nat *sel; local [all...] |
H A D | m_pedit.c | 62 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 122 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 124 int hwm = sel->nkeys; 134 sel->keys[hwm].val = tkey->val; 135 sel->keys[hwm].mask = tkey->mask; 136 sel->keys[hwm].off = tkey->off; 137 sel->keys[hwm].at = tkey->at; 138 sel->keys[hwm].offmask = tkey->offmask; 139 sel->keys[hwm].shift = tkey->shift; 140 sel 146 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 162 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 205 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 268 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 338 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 415 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon38656 466 } sel; local 554 struct tc_pedit_sel *sel; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/iproute2/tc/ |
H A D | m_pedit.c | 57 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 117 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 119 int hwm = sel->nkeys; 129 sel->keys[hwm].val = tkey->val; 130 sel->keys[hwm].mask = tkey->mask; 131 sel->keys[hwm].off = tkey->off; 132 sel->keys[hwm].at = tkey->at; 133 sel->keys[hwm].offmask = tkey->offmask; 134 sel->keys[hwm].shift = tkey->shift; 135 sel 141 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 157 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 200 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 263 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 333 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 410 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon3547 466 } sel; local 552 struct tc_pedit_sel *sel; local [all...] |
H A D | f_u32.c | 112 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 115 int hwm = sel->nkeys; 120 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { 121 __u32 intersect = mask&sel->keys[i].mask; 123 if ((key^sel->keys[i].val) & intersect) 125 sel->keys[i].val |= key; 126 sel->keys[i].mask |= mask; 135 sel->keys[hwm].val = key; 136 sel 143 pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 150 pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 166 pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 218 parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 249 parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 279 parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 313 parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 347 parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 389 parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 477 parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 540 parse_udp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 567 parse_icmp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 629 parse_selector(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, struct nlmsghdr *n) argument 692 parse_offset(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 743 parse_hashkey(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 777 struct tc_u32_sel sel; member in struct:__anon3542 779 } sel; local 881 struct tc_u32_sel sel; member in struct:__anon3543 966 struct tc_u32_sel *sel = NULL; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt/router/iproute2/tc/ |
H A D | m_pedit.c | 57 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 117 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 119 int hwm = sel->nkeys; 129 sel->keys[hwm].val = tkey->val; 130 sel->keys[hwm].mask = tkey->mask; 131 sel->keys[hwm].off = tkey->off; 132 sel->keys[hwm].at = tkey->at; 133 sel->keys[hwm].offmask = tkey->offmask; 134 sel->keys[hwm].shift = tkey->shift; 135 sel 141 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 157 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 200 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 263 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 333 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 410 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon4452 466 } sel; local 552 struct tc_pedit_sel *sel; local [all...] |
H A D | f_u32.c | 112 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 115 int hwm = sel->nkeys; 120 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { 121 __u32 intersect = mask&sel->keys[i].mask; 123 if ((key^sel->keys[i].val) & intersect) 125 sel->keys[i].val |= key; 126 sel->keys[i].mask |= mask; 135 sel->keys[hwm].val = key; 136 sel 143 pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 150 pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 166 pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 218 parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 249 parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 279 parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 313 parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 347 parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 389 parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 477 parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 540 parse_udp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 567 parse_icmp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 629 parse_selector(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, struct nlmsghdr *n) argument 692 parse_offset(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 743 parse_hashkey(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 777 struct tc_u32_sel sel; member in struct:__anon4447 779 } sel; local 881 struct tc_u32_sel sel; member in struct:__anon4448 966 struct tc_u32_sel *sel = NULL; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/iproute2/tc/ |
H A D | m_pedit.c | 57 pedit_parse_nopopt (int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 117 pack_key(struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 119 int hwm = sel->nkeys; 129 sel->keys[hwm].val = tkey->val; 130 sel->keys[hwm].mask = tkey->mask; 131 sel->keys[hwm].off = tkey->off; 132 sel->keys[hwm].at = tkey->at; 133 sel->keys[hwm].offmask = tkey->offmask; 134 sel->keys[hwm].shift = tkey->shift; 135 sel 141 pack_key32(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 157 pack_key16(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 200 pack_key8(__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 263 parse_cmd(int *argc_p, char ***argv_p, __u32 len, int type,__u32 retain,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 333 parse_offset(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 410 parse_munge(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel) argument 464 struct tc_pedit_sel sel; member in struct:__anon38477 466 } sel; local 552 struct tc_pedit_sel *sel; local [all...] |
H A D | f_u32.c | 112 static int pack_key(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 115 int hwm = sel->nkeys; 120 if (sel->keys[i].off == off && sel->keys[i].offmask == offmask) { 121 __u32 intersect = mask&sel->keys[i].mask; 123 if ((key^sel->keys[i].val) & intersect) 125 sel->keys[i].val |= key; 126 sel->keys[i].mask |= mask; 135 sel->keys[hwm].val = key; 136 sel 143 pack_key32(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 150 pack_key16(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 166 pack_key8(struct tc_u32_sel *sel, __u32 key, __u32 mask, int off, int offmask) argument 218 parse_u32(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 249 parse_u16(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 279 parse_u8(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off, int offmask) argument 313 parse_ip_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 347 parse_ip6_addr(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, int off) argument 389 parse_ip(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 477 parse_ip6(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 540 parse_udp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 567 parse_icmp(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 629 parse_selector(int *argc_p, char ***argv_p, struct tc_u32_sel *sel, struct nlmsghdr *n) argument 692 parse_offset(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 743 parse_hashkey(int *argc_p, char ***argv_p, struct tc_u32_sel *sel) argument 777 struct tc_u32_sel sel; member in struct:__anon38472 779 } sel; local 881 struct tc_u32_sel sel; member in struct:__anon38473 966 struct tc_u32_sel *sel = NULL; local [all...] |
H A D | p_ip.c | 27 parse_ip(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument 39 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 45 res = parse_cmd(&argc, &argv, 4, TIPV4,RU32,sel,tkey); 55 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 61 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 67 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 74 res = parse_cmd(&argc, &argv, 1, TU32,RU8,sel,tkey); 81 res = parse_cmd(&argc, &argv, 1, TU32,0x3F,sel,tkey); 88 res = parse_cmd(&argc, &argv, 1, TU32,0x1F,sel,tkey); 94 res = parse_cmd(&argc, &argv, 1, TU32,0x80,sel,tke 142 parse_ip6(int *argc_p, char ***argv_p,struct tc_pedit_sel *sel,struct tc_pedit_key *tkey) argument [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/net/ipv4/ |
H A D | xfrm4_state.c | 24 __xfrm4_init_tempsel(struct xfrm_selector *sel, struct flowi *fl) argument 26 sel->daddr.a4 = fl->fl4_dst; 27 sel->saddr.a4 = fl->fl4_src; 28 sel->dport = xfrm_flowi_dport(fl); 29 sel->dport_mask = htons(0xffff); 30 sel->sport = xfrm_flowi_sport(fl); 31 sel->sport_mask = htons(0xffff); 32 sel->family = AF_INET; 33 sel->prefixlen_d = 32; 34 sel [all...] |
/asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/ipv4/ |
H A D | xfrm4_state.c | 24 __xfrm4_init_tempsel(struct xfrm_selector *sel, struct flowi *fl) argument 26 sel->daddr.a4 = fl->fl4_dst; 27 sel->saddr.a4 = fl->fl4_src; 28 sel->dport = xfrm_flowi_dport(fl); 29 sel->dport_mask = htons(0xffff); 30 sel->sport = xfrm_flowi_sport(fl); 31 sel->sport_mask = htons(0xffff); 32 sel->family = AF_INET; 33 sel->prefixlen_d = 32; 34 sel [all...] |