Searched refs:addr (Results 1 - 25 of 82) sorted by relevance

1234

/tldk/app/nginx/src/os/unix/
H A Dngx_shmem.c17 shm->addr = (u_char *) mmap(NULL, shm->size,
21 if (shm->addr == MAP_FAILED) {
34 if (munmap((void *) shm->addr, shm->size) == -1) {
36 "munmap(%p, %uz) failed", shm->addr, shm->size);
55 shm->addr = (u_char *) mmap(NULL, shm->size, PROT_READ|PROT_WRITE,
58 if (shm->addr == MAP_FAILED) {
68 return (shm->addr == MAP_FAILED) ? NGX_ERROR : NGX_OK;
75 if (munmap((void *) shm->addr, shm->size) == -1) {
77 "munmap(%p, %uz) failed", shm->addr, shm->size);
102 shm->addr
[all...]
H A Dngx_shmem.h17 u_char *addr; member in struct:__anon390
/tldk/app/nginx/src/os/win32/
H A Dngx_shmem.c82 shm->addr = MapViewOfFileEx(shm->handle, FILE_MAP_WRITE, 0, 0, 0, base);
84 if (shm->addr != NULL) {
103 shm->addr = MapViewOfFile(shm->handle, FILE_MAP_WRITE, 0, 0, 0);
105 if (shm->addr != NULL) {
124 ngx_shm_remap(ngx_shm_t *shm, u_char *addr) argument
126 if (UnmapViewOfFile(shm->addr) == 0) {
129 shm->addr, &shm->name);
133 shm->addr = MapViewOfFileEx(shm->handle, FILE_MAP_WRITE, 0, 0, 0, addr);
135 if (shm->addr !
[all...]
H A Dngx_shmem.h17 u_char *addr; member in struct:__anon398
27 ngx_int_t ngx_shm_remap(ngx_shm_t *shm, u_char *addr);
/tldk/examples/l4fwd/
H A Dparse.h41 const void *addr; local
45 addr = &i4->sin_addr;
48 addr = &i6->sin6_addr;
53 return inet_ntop(sp->ss_family, addr, buf, len);
H A Dfwdtbl.h21 struct in_addr addr; member in struct:fwd4_key
26 struct in6_addr addr; member in struct:fwd6_key
46 key->k4.addr = sin4->sin_addr;
51 key->k6.addr = sin6->sin6_addr;
/tldk/test/gtest/
H A Dtest_tle_tcp_stream.cpp135 struct tle_tcp_stream_addr addr; local
137 ret = tle_tcp_stream_get_addr(nullptr, &addr);
149 struct tle_tcp_stream_addr addr; local
151 memset(&addr, 0, sizeof(addr));
152 ret = tle_tcp_stream_get_addr(stream, &addr);
155 ret = memcmp(&addr, &stream_prm.addr, sizeof(tle_tcp_stream_addr));
161 struct tle_tcp_stream_addr addr; local
163 memset(&addr,
[all...]
/tldk/app/nginx/src/mail/
H A Dngx_mail.c19 ngx_mail_conf_addr_t *addr);
22 ngx_mail_conf_addr_t *addr);
232 ngx_mail_conf_addr_t *addr; local
267 addr = ngx_array_push(&port->addrs);
268 if (addr == NULL) {
272 addr->opt = *listen;
285 ngx_mail_conf_addr_t *addr; local
294 addr = port[p].addrs.elts;
302 if (addr[last - 1].opt.wildcard) {
303 addr[las
382 ngx_mail_add_addrs(ngx_conf_t *cf, ngx_mail_port_t *mport, ngx_mail_conf_addr_t *addr) argument
431 ngx_mail_add_addrs6(ngx_conf_t *cf, ngx_mail_port_t *mport, ngx_mail_conf_addr_t *addr) argument
[all...]
/tldk/app/nginx/src/http/
H A Dngx_http.c28 ngx_http_core_srv_conf_t *cscf, ngx_http_conf_addr_t *addr);
53 ngx_http_core_main_conf_t *cmcf, ngx_http_conf_addr_t *addr);
61 ngx_http_conf_addr_t *addr);
63 ngx_http_conf_addr_t *addr);
66 ngx_http_conf_addr_t *addr);
1198 ngx_http_conf_addr_t *addr; local
1211 addr = port->addrs.elts;
1216 &addr[i].opt.sockaddr.sockaddr,
1217 addr[i].opt.socklen, 0)
1225 if (ngx_http_add_server(cf, cscf, &addr[
1293 ngx_http_conf_addr_t *addr; local
1341 ngx_http_add_server(ngx_conf_t *cf, ngx_http_core_srv_conf_t *cscf, ngx_http_conf_addr_t *addr) argument
1383 ngx_http_conf_addr_t *addr; local
1425 ngx_http_server_names(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, ngx_http_conf_addr_t *addr) argument
1632 ngx_http_conf_addr_t *addr; local
1704 ngx_http_add_listening(ngx_conf_t *cf, ngx_http_conf_addr_t *addr) argument
1783 ngx_http_add_addrs(ngx_conf_t *cf, ngx_http_port_t *hport, ngx_http_conf_addr_t *addr) argument
1848 ngx_http_add_addrs6(ngx_conf_t *cf, ngx_http_port_t *hport, ngx_http_conf_addr_t *addr) argument
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream.c23 ngx_stream_conf_addr_t *addr);
26 ngx_stream_port_t *stport, ngx_stream_conf_addr_t *addr);
388 ngx_stream_conf_addr_t *addr; local
427 addr = ngx_array_push(&port->addrs);
428 if (addr == NULL) {
432 addr->opt = *listen;
445 ngx_stream_conf_addr_t *addr; local
454 addr = port[p].addrs.elts;
462 if (addr[last - 1].opt.wildcard) {
463 addr[las
553 ngx_stream_add_addrs(ngx_conf_t *cf, ngx_stream_port_t *stport, ngx_stream_conf_addr_t *addr) argument
603 ngx_stream_add_addrs6(ngx_conf_t *cf, ngx_stream_port_t *stport, ngx_stream_conf_addr_t *addr) argument
[all...]
H A Dngx_stream_access_module.c15 in_addr_t addr; member in struct:__anon416
22 struct in6_addr addr; member in struct:__anon417
50 ngx_stream_access_srv_conf_t *ascf, in_addr_t addr);
125 in_addr_t addr; local
147 addr = p[12] << 24;
148 addr += p[13] << 16;
149 addr += p[14] << 8;
150 addr += p[15];
151 return ngx_stream_access_inet(s, ascf, htonl(addr));
180 ngx_stream_access_srv_conf_t *ascf, in_addr_t addr)
179 ngx_stream_access_inet(ngx_stream_session_t *s, ngx_stream_access_srv_conf_t *ascf, in_addr_t addr) argument
[all...]
H A Dngx_stream_realip_module.c27 ngx_addr_t *addr);
99 ngx_addr_t addr; local
119 if (ngx_parse_addr(c->pool, &addr, c->proxy_protocol_addr.data,
126 ngx_inet_set_port(addr.sockaddr, c->proxy_protocol_port);
128 return ngx_stream_realip_set_addr(s, &addr);
133 ngx_stream_realip_set_addr(ngx_stream_session_t *s, ngx_addr_t *addr) argument
148 len = ngx_sock_ntop(addr->sockaddr, addr->socklen, text,
167 c->sockaddr = addr->sockaddr;
168 c->socklen = addr
[all...]
H A Dngx_stream_geo_module.c78 ngx_stream_geo_ctx_t *ctx, ngx_addr_t *addr);
171 ngx_addr_t addr; local
179 if (ngx_stream_geo_addr(s, ctx, &addr) != NGX_OK) {
185 switch (addr.sockaddr->sa_family) {
189 inaddr6 = &((struct sockaddr_in6 *) addr.sockaddr)->sin6_addr;
210 sin = (struct sockaddr_in *) addr.sockaddr;
237 ngx_addr_t addr; local
248 if (ngx_stream_geo_addr(s, ctx, &addr) == NGX_OK) {
250 switch (addr.sockaddr->sa_family) {
254 inaddr6 = &((struct sockaddr_in6 *) addr
305 ngx_stream_geo_addr(ngx_stream_session_t *s, ngx_stream_geo_ctx_t *ctx, ngx_addr_t *addr) argument
[all...]
/tldk/app/nginx/src/http/modules/
H A Dngx_http_access_module.c15 in_addr_t addr; member in struct:__anon93
22 struct in6_addr addr; member in struct:__anon94
50 ngx_http_access_loc_conf_t *alcf, in_addr_t addr);
129 in_addr_t addr; local
151 addr = p[12] << 24;
152 addr += p[13] << 16;
153 addr += p[14] << 8;
154 addr += p[15];
155 return ngx_http_access_inet(r, alcf, htonl(addr));
184 in_addr_t addr)
183 ngx_http_access_inet(ngx_http_request_t *r, ngx_http_access_loc_conf_t *alcf, in_addr_t addr) argument
[all...]
H A Dngx_http_geoip_module.c42 u_long addr);
55 geoipv6_t addr);
242 ngx_addr_t addr; local
246 addr.sockaddr = r->connection->sockaddr;
247 addr.socklen = r->connection->socklen;
248 /* addr.name = r->connection->addr_text; */
253 (void) ngx_http_get_forwarded_addr(r, &addr, xfwd, NULL,
259 if (addr.sockaddr->sa_family == AF_INET6) {
264 inaddr6 = &((struct sockaddr_in6 *) addr.sockaddr)->sin6_addr;
280 if (addr
294 ngx_addr_t addr; local
[all...]
H A Dngx_http_realip_module.c38 ngx_addr_t *addr);
136 ngx_addr_t addr; local
232 addr.sockaddr = c->sockaddr;
233 addr.socklen = c->socklen;
234 /* addr.name = c->addr_text; */
236 if (ngx_http_get_forwarded_addr(r, &addr, xfwd, value, rlcf->from,
241 ngx_inet_set_port(addr.sockaddr, c->proxy_protocol_port);
244 return ngx_http_realip_set_addr(r, &addr);
252 ngx_http_realip_set_addr(ngx_http_request_t *r, ngx_addr_t *addr) argument
270 len = ngx_sock_ntop(addr
[all...]
/tldk/app/nginx/src/core/
H A Dngx_inet.h47 in_addr_t addr; member in struct:__anon30
55 struct in6_addr addr; member in struct:__anon31
109 ngx_int_t ngx_inet6_addr(u_char *p, size_t len, u_char *addr);
114 size_t ngx_inet_ntop(int family, void *addr, u_char *text, size_t len);
117 ngx_int_t ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text,
119 ngx_int_t ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr,
H A Dngx_inet.c21 in_addr_t addr; local
24 addr = 0;
42 addr = (addr << 8) + octet;
52 addr = (addr << 8) + octet;
53 return htonl(addr);
63 ngx_inet6_addr(u_char *p, size_t len, u_char *addr) argument
92 *addr++ = (u_char) (word >> 8);
93 *addr
260 ngx_inet_ntop(int family, void *addr, u_char *text, size_t len) argument
371 u_char *addr, *mask, *last; local
556 ngx_parse_addr(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len) argument
616 ngx_parse_addr_port(ngx_pool_t *pool, ngx_addr_t *addr, u_char *text, size_t len) argument
[all...]
H A Dngx_proxy_protocol.c16 u_char ch, *p, *addr, *port; local
43 addr = p;
65 len = p - addr - 1;
72 ngx_memcpy(c->proxy_protocol_addr.data, addr, len);
H A Dngx_shmtx.h40 ngx_int_t ngx_shmtx_create(ngx_shmtx_t *mtx, ngx_shmtx_sh_t *addr,
/tldk/app/nginx/src/tldk/
H A Dbe.h34 int be_lpm4_dst_lookup(void *data, const struct in_addr *addr,
36 int be_lpm6_dst_lookup(void *data, const struct in6_addr *addr,
/tldk/lib/libtle_l4p/
H A Dctx.c317 find_ipv4_dev(struct tle_ctx *ctx, const struct in_addr *addr) argument
322 if (ctx->dev[i].prm.local_addr4.s_addr == addr->s_addr &&
331 find_ipv6_dev(struct tle_ctx *ctx, const struct in6_addr *addr) argument
336 if (memcmp(&ctx->dev[i].prm.local_addr6, addr,
337 sizeof(*addr)) == 0 &&
347 const struct sockaddr *addr)
355 if (addr->sa_family == AF_INET) {
356 lin4 = (const struct sockaddr_in *)addr;
359 } else if (addr->sa_family == AF_INET6) {
360 lin6 = (const struct sockaddr_in6 *)addr;
346 stream_fill_dev(struct tle_ctx *ctx, struct tle_stream *s, const struct sockaddr *addr) argument
466 fill_ipv4_am(const struct sockaddr_in *in, uint32_t *addr, uint32_t *mask) argument
473 fill_ipv6_am(const struct sockaddr_in6 *in, rte_xmm_t *addr, rte_xmm_t *mask) argument
[all...]
H A Dtle_tcp.h50 struct tle_tcp_stream_addr addr; member in struct:tle_tcp_stream_param
120 struct tle_tcp_stream_addr *addr);
146 * @param addr
152 int tle_tcp_stream_connect(struct tle_stream *s, const struct sockaddr *addr);
/tldk/examples/l4fwd/test/
H A Dconfig.sh83 LINUX_MAC=$(ssh ${REMOTE_HOST} ip addr show dev ${IFACE})
397 ssh ${REMOTE_HOST} ip addr flush dev ${IFACE}
398 ssh ${REMOTE_HOST} ip addr add ${LINUX_IPV4}/${MASK_IPV4} \
403 ip addr add ${LINUX_IPV4}/${MASK_IPV4} dev ${IFACE}
412 if_verbose use_ssh ip addr show dev ${IFACE}
436 ssh ${REMOTE_HOST} ip addr flush dev ${IFACE}
437 ssh ${REMOTE_HOST} ip -6 addr add ${LINUX_IPV6}/${MASK_IPV6} \
445 ip addr flush dev ${IFACE}
446 ip -6 addr add ${LINUX_IPV6}/${MASK_IPV6} dev ${IFACE}
457 if_verbose use_ssh ip addr sho
[all...]
/tldk/app/nginx/conf/
H A Dnginx-tldk.conf69 dest dev 0 addr 192.168.1.0 masklen 24 mac 3C:FD:FE:9F:D1:E1;
82 dest dev 0 addr 192.168.1.0 masklen 24 mac 3C:FD:FE:9F:D1:E1;

Completed in 18 milliseconds

1234