Searched refs:mask (Results 1 - 25 of 30) sorted by relevance

12

/tldk/lib/libtle_l4p/
H A Dtcp_txq.h26 uint32_t cnt, head, mask, sz, tail; local
31 mask = _rte_ring_get_mask(r);
32 head = r->cons.head & mask;
33 tail = r->prod.tail & mask;
44 uint32_t cnt, head, mask, sz, tail; local
49 mask = _rte_ring_get_mask(r);
50 head = r->prod.tail & mask;
51 tail = r->cons.tail & mask;
H A Dctx.c466 fill_ipv4_am(const struct sockaddr_in *in, uint32_t *addr, uint32_t *mask) argument
469 *mask = (*addr == INADDR_ANY) ? INADDR_ANY : INADDR_NONE;
473 fill_ipv6_am(const struct sockaddr_in6 *in, rte_xmm_t *addr, rte_xmm_t *mask) argument
483 memcpy(mask, pm, sizeof(*mask));
493 /* setup ports and port mask fields (except dst port). */
502 &s->ipv4.addr.dst, &s->ipv4.mask.dst);
504 &s->ipv4.addr.src, &s->ipv4.mask.src);
507 &s->ipv6.addr.dst, &s->ipv6.mask.dst);
509 &s->ipv6.addr.src, &s->ipv6.mask
[all...]
H A Dstream.h43 union ipv4_addrs mask; member in struct:tle_stream::__anon1::__anon2
47 union ipv6_addrs mask; member in struct:tle_stream::__anon1::__anon3
H A Dtcp_rxtx.c45 (pi->addr4.raw & s->s.ipv4.mask.raw) !=
50 &s->s.ipv6.mask.raw) != 0;
868 cs->s.ipv4.mask.src = INADDR_NONE;
869 cs->s.ipv4.mask.dst = INADDR_NONE;
872 rte_memcpy(&cs->s.ipv6.mask.src, &tle_ipv6_none,
873 sizeof(cs->s.ipv6.mask.src));
874 rte_memcpy(&cs->s.ipv6.mask.dst, &tle_ipv6_none,
875 sizeof(cs->s.ipv6.mask.dst));
2040 s->s.ipv4.mask.src = INADDR_NONE;
2041 s->s.ipv4.mask
[all...]
/tldk/app/nginx/src/core/
H A Dngx_radix_tree.h41 uint32_t key, uint32_t mask, uintptr_t value);
43 uint32_t key, uint32_t mask);
48 u_char *key, u_char *mask, uintptr_t value);
50 u_char *key, u_char *mask);
H A Dngx_radix_tree.c18 uint32_t key, mask, inc; local
81 mask = 0;
87 mask >>= 1;
88 mask |= 0x80000000;
91 if (ngx_radix32tree_insert(tree, key, mask, NGX_RADIX_NO_VALUE)
109 ngx_radix32tree_insert(ngx_radix_tree_t *tree, uint32_t key, uint32_t mask, argument
120 while (bit & mask) {
145 while (bit & mask) {
174 ngx_radix32tree_delete(ngx_radix_tree_t *tree, uint32_t key, uint32_t mask) argument
182 while (node && (bit & mask)) {
269 ngx_radix128tree_insert(ngx_radix_tree_t *tree, u_char *key, u_char *mask, uintptr_t value) argument
352 ngx_radix128tree_delete(ngx_radix_tree_t *tree, u_char *key, u_char *mask) argument
[all...]
H A Dngx_inet.h48 in_addr_t mask; member in struct:__anon30
56 struct in6_addr mask; member in struct:__anon31
H A Dngx_inet.c371 u_char *addr, *mask, *last; local
382 mask = ngx_strlchr(addr, last, '/');
383 len = (mask ? mask : last) - addr;
390 if (mask == NULL) {
391 cidr->u.in.mask = 0xffffffff;
399 if (mask == NULL) {
400 ngx_memset(cidr->u.in6.mask.s6_addr, 0xff, 16);
409 mask++;
411 shift = ngx_atoi(mask, las
[all...]
H A Dnginx.c1068 "using last mask for remaining worker processes");
1316 ngx_cpuset_t *mask; local
1322 mask = ngx_palloc(cf->pool, (cf->args->nelts - 1) * sizeof(ngx_cpuset_t));
1323 if (mask == NULL) {
1328 ccf->cpu_affinity = mask;
1343 CPU_ZERO(&mask[0]);
1345 CPU_SET(i, &mask[0]);
1364 CPU_ZERO(&mask[n - 1]);
1383 CPU_SET(i - 1, &mask[n - 1]);
1410 ngx_cpuset_t *mask; local
[all...]
H A Dngx_slab.c184 uintptr_t p, n, m, mask, *bitmap; local
295 mask = ((uintptr_t) 1 << (ngx_pagesize >> shift)) - 1;
296 mask <<= NGX_SLAB_MAP_SHIFT;
299 m & mask;
308 if ((page->slab & NGX_SLAB_MAP_MASK) == mask) {
H A Dngx_conf_file.h167 ngx_uint_t mask; member in struct:__anon11
/tldk/app/nginx/src/http/modules/
H A Dngx_http_access_module.c14 in_addr_t mask; member in struct:__anon93
23 struct in6_addr mask; member in struct:__anon94
194 addr, rule[i].mask, rule[i].addr);
196 if ((addr & rule[i].mask) == rule[i].addr) {
226 ml = ngx_inet6_ntop(rule6[i].mask.s6_addr, mt, NGX_INET6_ADDRSTRLEN);
235 if ((p[n] & rule6[i].mask.s6_addr[n]) != rule6[i].addr.s6_addr[n]) {
361 rule->mask = cidr.u.in.mask;
382 rule6->mask = cidr.u.in6.mask;
[all...]
H A Dngx_http_browser_module.c549 ngx_http_modern_browser_mask_t *mask; local
575 mask = ngx_http_modern_browser_masks;
577 for (n = 0; mask[n].browser[0] != '\0'; n++) {
578 if (ngx_strcasecmp(mask[n].browser, value[1].data) == 0) {
H A Dngx_http_geo_module.c1056 cidr.u.in.mask = 0;
1093 cidr.u.in.mask = ntohl(cidr.u.in.mask);
1103 cidr.u.in6.mask.s6_addr);
1109 cidr.u.in.mask);
1143 cidr->u.in6.mask.s6_addr,
1166 cidr->u.in6.mask.s6_addr);
1174 cidr->u.in6.mask.s6_addr,
1182 cidr->u.in.mask, (uintptr_t) val);
1202 cidr->u.in.addr, cidr->u.in.mask);
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_access_module.c14 in_addr_t mask; member in struct:__anon416
23 struct in6_addr mask; member in struct:__anon417
190 addr, rule[i].mask, rule[i].addr);
192 if ((addr & rule[i].mask) == rule[i].addr) {
222 ml = ngx_inet6_ntop(rule6[i].mask.s6_addr, mt, NGX_INET6_ADDRSTRLEN);
231 if ((p[n] & rule6[i].mask.s6_addr[n]) != rule6[i].addr.s6_addr[n]) {
351 rule->mask = cidr.u.in.mask;
372 rule6->mask = cidr.u.in6.mask;
[all...]
H A Dngx_stream_geo_module.c1006 cidr.u.in.mask = 0;
1043 cidr.u.in.mask = ntohl(cidr.u.in.mask);
1053 cidr.u.in6.mask.s6_addr);
1059 cidr.u.in.mask);
1093 cidr->u.in6.mask.s6_addr,
1116 cidr->u.in6.mask.s6_addr);
1124 cidr->u.in6.mask.s6_addr,
1132 cidr->u.in.mask, (uintptr_t) val);
1152 cidr->u.in.addr, cidr->u.in.mask);
[all...]
/tldk/lib/libtle_misc/
H A Dtle_dpdk_wrapper.h86 return r->mask;
156 return r->prod.mask;
169 uint32_t mask, cons_head; local
173 mask = _rte_ring_get_mask(r);
/tldk/app/nginx/src/http/v2/
H A Dngx_http_v2_module.c467 ngx_uint_t mask; local
469 mask = *np - 1;
471 if (*np == 0 || (*np & mask)) {
475 *np = mask;
/tldk/examples/l4fwd/
H A Dpkt.c23 uint32_t mask; member in struct:ptype2cb
54 const uint16_t mask = rte_cpu_to_be_16(~IPV4_HDR_DF_FLAG); local
56 return ((mask & iph->fragment_offset) != 0);
954 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV4_EXT_PTYPE |
960 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV6_PTYPE |
966 .mask = 0,
974 .mask = 0,
982 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV4_EXT_PTYPE |
988 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV6_PTYPE |
994 .mask
[all...]
H A Dport.h130 reta_conf[idx].mask |= (1ULL << shift);
/tldk/app/nginx/src/tldk/
H A Dmodule.c184 uint32_t i, j, port_id, mask; local
205 mask = 1 << queue_id;
207 if (pcf->queue_map & mask)
211 pcf->queue_map |= mask;
H A Dbe.c72 uint32_t mask; member in struct:ptype2cb
655 const uint16_t mask = rte_cpu_to_be_16(~IPV4_HDR_DF_FLAG); local
657 return ((mask & iph->fragment_offset) != 0);
1002 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV4_EXT_PTYPE |
1008 .mask = ETHER_PTYPE | IPV4_PTYPE | IPV6_PTYPE |
1014 .mask = 0,
1026 if ((smask & ptype2cb[i].mask) == ptype2cb[i].mask) {
/tldk/test/gtest/
H A Dtest_common.cpp82 const uint16_t mask = rte_cpu_to_be_16(~IPV4_HDR_DF_FLAG); local
84 return ((mask & iph->fragment_offset) != 0);
/tldk/app/nginx/src/event/
H A Dngx_event_accept.c800 & cidr[i].u.in6.mask.s6_addr[n])
816 if ((sin->sin_addr.s_addr & cidr[i].u.in.mask)
/tldk/app/nginx/src/http/
H A Dngx_http_upstream.h397 ngx_uint_t mask; member in struct:__anon329

Completed in 27 milliseconds

12