Searched refs:sa (Results 1 - 18 of 18) sorted by relevance

/tldk/examples/l4fwd/
H A Dfwdtbl.h36 const struct sockaddr *sa, union fwd_key *key)
44 sin4 = (const struct sockaddr_in *)sa;
49 sin6 = (const struct sockaddr_in6 *)sa;
58 fwd_tbl_add(struct netfe_lcore *fe, uint16_t family, const struct sockaddr *sa, argument
65 h = fwd_tbl_key_prep(fe, family, sa, &key);
71 fwd_tbl_lkp(struct netfe_lcore *fe, uint16_t family, const struct sockaddr *sa) argument
78 h = fwd_tbl_key_prep(fe, family, sa, &key);
35 fwd_tbl_key_prep(const struct netfe_lcore *fe, uint16_t family, const struct sockaddr *sa, union fwd_key *key) argument
H A Dudp.h193 const struct sockaddr *sa)
202 fed = fwd_tbl_lkp(fe, fes->family, sa);
220 rc = fwd_tbl_add(fe, fes->family, sa, fed);
226 fed->fwdprm.remote_addr = *(const struct sockaddr_storage *)sa;
192 find_fwd_dst_udp(uint32_t lcore, struct netfe_stream *fes, const struct sockaddr *sa) argument
/tldk/app/nginx/src/core/
H A Dngx_inet.h112 size_t ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text,
116 ngx_int_t ngx_cidr_match(struct sockaddr *sa, ngx_array_t *cidrs);
125 in_port_t ngx_inet_get_port(struct sockaddr *sa);
126 void ngx_inet_set_port(struct sockaddr *sa, in_port_t port);
H A Dngx_inet.c181 ngx_sock_ntop(struct sockaddr *sa, socklen_t socklen, u_char *text, size_t len, argument
194 switch (sa->sa_family) {
198 sin = (struct sockaddr_in *) sa;
215 sin6 = (struct sockaddr_in6 *) sa;
236 saun = (struct sockaddr_un *) sa;
469 ngx_cidr_match(struct sockaddr *sa, ngx_array_t *cidrs) argument
489 family = sa->sa_family;
492 inaddr = ((struct sockaddr_in *) sa)->sin_addr.s_addr;
497 inaddr6 = &((struct sockaddr_in6 *) sa)->sin6_addr;
1439 ngx_inet_get_port(struct sockaddr *sa) argument
1467 ngx_inet_set_port(struct sockaddr *sa, in_port_t port) argument
[all...]
H A Dngx_connection.c25 struct sockaddr *sa; local
35 sa = ngx_palloc(cf->pool, socklen);
36 if (sa == NULL) {
40 ngx_memcpy(sa, sockaddr, socklen);
42 ls->sockaddr = sa;
45 len = ngx_sock_ntop(sa, socklen, text, NGX_SOCKADDR_STRLEN, 1);
1282 ngx_sockaddr_t sa; local
1322 if (getsockname(c->fd, &sa.sockaddr, &len) == -1) {
1332 ngx_memcpy(c->local_sockaddr, &sa, len);
/tldk/lib/libtle_l4p/
H A Dmisc.h26 xmm_cmp(const rte_xmm_t *da, const rte_xmm_t *sa) argument
30 ret = (sa->u64[0] ^ da->u64[0]) |
31 (sa->u64[1] ^ da->u64[1]);
37 ymm_cmp(const _ymm_t *da, const _ymm_t *sa) argument
41 ret = (sa->u64[0] ^ da->u64[0]) |
42 (sa->u64[1] ^ da->u64[1]) |
43 (sa->u64[2] ^ da->u64[2]) |
44 (sa->u64[3] ^ da->u64[3]);
50 ymm_mask_cmp(const _ymm_t *da, const _ymm_t *sa, const _ymm_t *sm) argument
54 ret = ((da->u64[0] & sm->u64[0]) ^ sa
[all...]
/tldk/app/nginx/src/stream/
H A Dngx_stream_handler.c28 struct sockaddr *sa; local
60 sa = c->local_sockaddr;
62 switch (sa->sa_family) {
66 sin6 = (struct sockaddr_in6 *) sa;
84 sin = (struct sockaddr_in *) sa;
H A Dngx_stream_realip_module.c324 struct sockaddr *sa; local
329 sa = ctx ? ctx->sockaddr : s->connection->sockaddr;
341 port = ngx_inet_get_port(sa);
H A Dngx_stream.c386 struct sockaddr *sa; local
390 sa = &listen->sockaddr.sockaddr;
391 p = ngx_inet_get_port(sa);
398 && sa->sa_family == port[i].family)
414 port->family = sa->sa_family;
/tldk/app/nginx/src/mail/
H A Dngx_mail.c230 struct sockaddr *sa; local
234 sa = &listen->sockaddr.sockaddr;
235 p = ngx_inet_get_port(sa);
239 if (p == port[i].port && sa->sa_family == port[i].family) {
255 port->family = sa->sa_family;
H A Dngx_mail_handler.c30 struct sockaddr *sa; local
63 sa = c->local_sockaddr;
65 switch (sa->sa_family) {
69 sin6 = (struct sockaddr_in6 *) sa;
87 sin = (struct sockaddr_in *) sa;
/tldk/app/nginx/src/os/unix/
H A Dngx_process.c287 struct sigaction sa; local
290 ngx_memzero(&sa, sizeof(struct sigaction));
291 sa.sa_handler = sig->handler;
292 sigemptyset(&sa.sa_mask);
293 if (sigaction(sig->signo, &sa, NULL) == -1) {
/tldk/app/nginx/src/event/
H A Dngx_event_accept.c31 ngx_sockaddr_t sa; local
65 s = accept4(lc->fd, &sa.sockaddr, &socklen, SOCK_NONBLOCK);
67 s = accept(lc->fd, &sa.sockaddr, &socklen);
70 s = accept(lc->fd, &sa.sockaddr, &socklen);
173 ngx_memcpy(c->sockaddr, &sa, socklen);
330 ngx_sockaddr_t sa; local
377 msg.msg_name = &sa;
H A Dngx_event.c630 struct sigaction sa; local
633 ngx_memzero(&sa, sizeof(struct sigaction));
634 sa.sa_handler = ngx_timer_signal_handler;
635 sigemptyset(&sa.sa_mask);
637 if (sigaction(SIGALRM, &sa, NULL) == -1) {
/tldk/app/nginx/src/tldk/
H A Dtldk_sock.c365 struct tle_tcp_stream_addr sa; local
415 if (tle_tcp_stream_get_addr(s, &sa) == 0) {
417 if (sa.remote.ss_family == AF_INET)
419 else if (sa.remote.ss_family == AF_INET6)
425 memcpy(addr, &sa.remote, slen);
/tldk/app/nginx/src/http/modules/
H A Dngx_http_realip_module.c546 struct sockaddr *sa; local
551 sa = ctx ? ctx->sockaddr : r->connection->sockaddr;
563 port = ngx_inet_get_port(sa);
/tldk/app/nginx/src/http/
H A Dngx_http.c1149 struct sockaddr *sa; local
1163 sa = &lsopt->sockaddr.sockaddr;
1164 p = ngx_inet_get_port(sa);
1169 if (p != port[i].port || sa->sa_family != port[i].family) {
1185 port->family = sa->sa_family;
H A Dngx_http_core_module.c4106 struct sockaddr *sa; local
4108 sa = &lsopt.sockaddr.sockaddr;
4110 if (sa->sa_family == AF_INET6) {

Completed in 20 milliseconds