Searched refs:s6_addr (Results 1 - 25 of 104) sorted by relevance

12345

/freebsd-head/contrib/ntp/lib/isc/win32/include/isc/
H A Dipv6.h65 *((u_long *)((a)->s6_addr) ) == 0 && \
66 *((u_long *)((a)->s6_addr) + 1) == 0 && \
67 *((u_long *)((a)->s6_addr) + 2) == 0 && \
68 *((u_long *)((a)->s6_addr) + 3) == 0 \
77 *((u_long *)((a)->s6_addr) ) == 0 && \
78 *((u_long *)((a)->s6_addr) + 1) == 0 && \
79 *((u_long *)((a)->s6_addr) + 2) == 0 && \
80 *((u_long *)((a)->s6_addr) + 3) == htonl(1) \
88 *((u_long *)((a)->s6_addr) ) == 0 && \
89 *((u_long *)((a)->s6_addr)
[all...]
/freebsd-head/contrib/ntp/lib/isc/unix/include/isc/
H A Dnet.h103 #ifdef s6_addr
108 * If 's6_addr' is defined then assume that there is a union and three
118 #ifdef s6_addr
129 (memcmp((x)->s6_addr, in6addr_any.s6_addr, 10) == 0 && \
130 (x)->s6_addr[10] == 0xff && (x)->s6_addr[11] == 0xff)
136 (memcmp((x)->s6_addr, in6addr_any.s6_addr, 12) == 0 && \
137 ((x)->s6_addr[1
[all...]
/freebsd-head/contrib/ntp/lib/isc/include/isc/
H A Dipv6.h70 #define s6_addr _S6_un._S6_u8 macro
144 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
146 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
/freebsd-head/contrib/ntp/sntp/libevent/
H A Dipv6-internal.h54 ev_uint8_t s6_addr[16]; member in struct:in6_addr
H A Devutil.c623 (unsigned char*)sin6->sin6_addr.s6_addr;
998 sin6.sin6_addr.s6_addr[15] = 1;
1860 (((ev_uint16_t)addr->s6_addr[2*i])<<8) + addr->s6_addr[2*i+1];
1868 addr->s6_addr[12], addr->s6_addr[13],
1869 addr->s6_addr[14], addr->s6_addr[15]);
1872 addr->s6_addr[12], addr->s6_addr[1
[all...]
/freebsd-head/contrib/libevent/
H A Dipv6-internal.h54 ev_uint8_t s6_addr[16]; member in struct:in6_addr
/freebsd-head/sys/netinet6/
H A Din6_ifattach.c98 #define EUI64_TO_IFID(in6) do {(in6)->s6_addr[8] ^= EUI64_UBIT; } while (0)
99 #define EUI64_GROUP(in6) ((in6)->s6_addr[8] & EUI64_GBIT)
101 #define EUI64_LOCAL(in6) ((in6)->s6_addr[8] & EUI64_UBIT)
143 bcopy(digest, &in6->s6_addr[8], 8);
146 in6->s6_addr[8] &= ~EUI64_GBIT; /* g bit to "individual" */
147 in6->s6_addr[8] |= EUI64_UBIT; /* u bit to "local" */
299 bcopy(addr, &in6->s6_addr[8], 8);
301 in6->s6_addr[8] = addr[0];
302 in6->s6_addr[9] = addr[1];
303 in6->s6_addr[1
[all...]
H A Din6.h105 #define s6_addr __u6_addr.__u6_addr8 macro
228 (bcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
232 (memcmp(&(a)->s6_addr[0], &(b)->s6_addr[0], sizeof(struct in6_addr)) == 0)
297 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0x80))
299 (((a)->s6_addr[0] == 0xfe) && (((a)->s6_addr[1] & 0xc0) == 0xc0))
304 #define IN6_IS_ADDR_MULTICAST(a) ((a)->s6_addr[
[all...]
H A Din6_jail.c79 if (ia6a->s6_addr[i] > ia6b->s6_addr[i])
81 else if (ia6a->s6_addr[i] < ia6b->s6_addr[i])
/freebsd-head/contrib/ntp/include/
H A Dntp_net.h55 #define NSRCADR6(psau) (SOCK_ADDR6(psau).s6_addr)
64 #define SET_ADDR6N(psau, s6_addr) \
65 (SOCK_ADDR6(psau) = (s6_addr))
131 memset((psau)->sa6.sin6_addr.s6_addr, (v), \
132 sizeof((psau)->sa6.sin6_addr.s6_addr))
157 memcmp((pin6A)->s6_addr, (pin6B)->s6_addr, \
158 sizeof(pin6A)->s6_addr)
/freebsd-head/tools/tools/netmap/
H A Dpkt_hash.c214 saddr = ipv6h->ip6_src.s6_addr[0] |
215 (ipv6h->ip6_src.s6_addr[1] << 8) |
216 (ipv6h->ip6_src.s6_addr[2] << 16) |
217 (ipv6h->ip6_src.s6_addr[3] << 24);
218 daddr = ipv6h->ip6_dst.s6_addr[0] |
219 (ipv6h->ip6_dst.s6_addr[1] << 8) |
220 (ipv6h->ip6_dst.s6_addr[2] << 16) |
221 (ipv6h->ip6_dst.s6_addr[3] << 24);
/freebsd-head/contrib/ntp/lib/isc/unix/
H A Dinterfaceiter.c112 memcpy(&zone16, &sa6->sin6_addr.s6_addr[2],
119 dst->type.in6.s6_addr[2] = 0;
120 dst->type.in6.s6_addr[3] = 0;
236 addr6.s6_addr[i] = byte;
248 addr6.s6_addr[i] = 0xff;
251 addr6.s6_addr[i] = (0xff << (8 - prefix)) & 0xff;
/freebsd-head/sys/ofed/include/rdma/
H A Dib_addr.h214 memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16);
321 memcpy(mac, &addr->s6_addr[8], 3);
322 memcpy(mac + 3, &addr->s6_addr[13], 3);
330 if (addr->s6_addr[0] == 0xff)
344 mac[i] = addr->s6_addr[i + 10];
/freebsd-head/contrib/libpcap/testprogs/
H A Dfindalldevstest.c266 ((struct sockaddr_in6 *)(a->addr))->sin6_addr.s6_addr,
271 ((struct sockaddr_in6 *)(a->netmask))->sin6_addr.s6_addr,
276 ((struct sockaddr_in6 *)(a->broadaddr))->sin6_addr.s6_addr,
281 ((struct sockaddr_in6 *)(a->dstaddr))->sin6_addr.s6_addr,
/freebsd-head/contrib/pf/ftp-proxy/
H A Dfilter.c97 &satosin6(nat)->sin6_addr.s6_addr, 16);
130 &satosin6(rdr)->sin6_addr.s6_addr, 16);
272 &satosin6(src)->sin6_addr.s6_addr, 16);
275 &satosin6(dst)->sin6_addr.s6_addr, 16);
377 memcpy(&pnl.saddr.v6, &client->sin6_addr.s6_addr, sizeof pnl.saddr.v6);
378 memcpy(&pnl.daddr.v6, &proxy->sin6_addr.s6_addr, sizeof pnl.daddr.v6);
388 memcpy(&server->sin6_addr.s6_addr, &pnl.rdaddr.v6,
/freebsd-head/contrib/pf/tftp-proxy/
H A Dfilter.c101 &satosin6(nat)->sin6_addr.s6_addr, 16);
134 &satosin6(rdr)->sin6_addr.s6_addr, 16);
281 &satosin6(src)->sin6_addr.s6_addr, 16);
284 &satosin6(dst)->sin6_addr.s6_addr, 16);
388 memcpy(&pnl.saddr.v6, &client->sin6_addr.s6_addr, sizeof pnl.saddr.v6);
389 memcpy(&pnl.daddr.v6, &proxy->sin6_addr.s6_addr, sizeof pnl.daddr.v6);
399 memcpy(&server->sin6_addr.s6_addr, &pnl.rdaddr.v6,
/freebsd-head/contrib/tcp_wrappers/
H A Dhosts_access.c466 if ((*(u_int32_t *)&net.sin6_addr.s6_addr[12] = dot_quad_addr(net_tok)) == INADDR_NONE
469 return ((*(u_int32_t *)&addr.sin6_addr.s6_addr[12] & mask) == *(u_int32_t *)&net.sin6_addr.s6_addr[12]);
493 if ((*(u_int32_t *)&addr.sin6_addr.s6_addr[i] & mask) != (*(u_int32_t *)&net.sin6_addr.s6_addr[i] & mask))
497 if (*(u_int32_t *)&addr.sin6_addr.s6_addr[i] != *(u_int32_t *)&net.sin6_addr.s6_addr[i])
/freebsd-head/crypto/heimdal/lib/roken/
H A Dinet_ntop.c84 const u_char *ptr = addr->s6_addr;
/freebsd-head/contrib/ldns/compat/
H A Dfake-rfc2553.h74 uint8_t s6_addr[16]; member in struct:in6_addr
/freebsd-head/contrib/unbound/compat/
H A Dfake-rfc2553.h69 uint8_t s6_addr[16]; member in struct:in6_addr
/freebsd-head/crypto/openssh/openbsd-compat/
H A Dfake-rfc2553.h68 u_int8_t s6_addr[16]; member in struct:in6_addr
/freebsd-head/sys/compat/linuxkpi/common/include/net/
H A Dipv6.h63 memcpy(&buf[10], &addr->s6_addr[6], 10);
/freebsd-head/sys/dev/cxgbe/
H A Dt4_clip.c77 c.ip_hi = *(uint64_t *)&lip->s6_addr[0];
78 c.ip_lo = *(uint64_t *)&lip->s6_addr[8];
95 c.ip_hi = *(uint64_t *)&lip->s6_addr[0];
96 c.ip_lo = *(uint64_t *)&lip->s6_addr[8];
/freebsd-head/crypto/heimdal/lib/krb5/
H A Daddr_families.c253 #define IN6_ADDR_V6_TO_V4(x) ((const struct in_addr *)&(x)->s6_addr[12])
386 ret = inet_pton(AF_INET6, address, &in6.s6_addr);
389 ret = krb5_data_alloc(&addr->address, sizeof(in6.s6_addr));
392 memcpy(addr->address.data, in6.s6_addr, sizeof(in6.s6_addr));
425 laddr.s6_addr[i] = addr.s6_addr[i] & m;
426 haddr.s6_addr[i] = (addr.s6_addr[i] & m) | ~m;
435 if (krb5_data_alloc(&low->address, sizeof(laddr.s6_addr)) !
[all...]
/freebsd-head/contrib/ntp/sntp/libevent/test/
H A Dregress_dns.c325 if (memcmp(&in6_addrs[0].s6_addr, "abcdefghijklmnop", 16)
434 memcpy(resolve_addr6.s6_addr,
1014 ans6.s6_addr[0] = 0x80;
1015 ans6.s6_addr[1] = 0xff;
1016 ans6.s6_addr[14] = 0xbb;
1017 ans6.s6_addr[15] = 0xbb;
1019 1, &ans6.s6_addr, 2000);
1040 ans6.s6_addr[0] = 0x0b;
1041 ans6.s6_addr[1] = 0x0b;
1042 ans6.s6_addr[1
[all...]

Completed in 3547 milliseconds

12345