/freebsd-11-stable/contrib/ntp/libntp/ |
H A D | netof.c | 21 u_int32 netnum; local 30 netnum = SRCADR(netaddr); 37 if (IN_CLASSC(netnum)) 38 netnum &= IN_CLASSC_NET; 39 else if (IN_CLASSB(netnum)) 40 netnum &= IN_CLASSB_NET; 42 SET_ADDR4(netaddr, netnum);
|
H A D | numtohost.c | 21 u_int32 netnum 33 if ((((ntohl(netnum) & LOOPBACKNETMASK) == LOOPBACKNET) 34 && (ntohl(netnum) != LOOPBACKHOST)) 35 || ((hp = gethostbyaddr((char *)&netnum, sizeof netnum, AF_INET)) 37 return numtoa(netnum);
|
H A D | refnumtoa.c | 16 u_int32 netnum; local 24 netnum = SRCADR(num); 25 rclock = clockname((int)((u_long)netnum >> 8) & 0xff); 29 rclock, (u_long)netnum & 0xff); 32 ((u_long)netnum >> 8) & 0xff, 33 (u_long)netnum & 0xff);
|
H A D | numtoa.c | 22 register u_int32 netnum; local 25 netnum = ntohl(num); 28 ((u_long)netnum >> 24) & 0xff, 29 ((u_long)netnum >> 16) & 0xff, 30 ((u_long)netnum >> 8) & 0xff, 31 (u_long)netnum & 0xff);
|
H A D | decodenetnum.c | 90 sockaddr_u netnum; local 132 memset(&netnum, 0, sizeof(netnum)); 140 if (inet_pton(afam, haddr, &netnum.sa4.sin_addr) <= 0) 142 netnum.sa4.sin_port = htons((unsigned short)port); 147 if (inet_pton(afam, haddr, &netnum.sa6.sin6_addr) <= 0) 149 netnum.sa6.sin6_port = htons((unsigned short)port); 150 netnum.sa6.sin6_scope_id = scope; 161 netnum.sa.sa_family = afam; 162 memcpy(net, &netnum, sizeo [all...] |
/freebsd-11-stable/contrib/ntp/ntpdc/ |
H A D | ntpdc.h | 37 sockaddr_u netnum; member in struct:__anon4917
|
H A D | ntpdc_ops.c | 706 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { 707 pl->addr = NSRCADR(&pcmd->argval[qitems].netnum); 716 pl->addr6 = SOCK_ADDR6(&pcmd->argval[qitems].netnum); 782 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { 783 pl->addr = NSRCADR(&pcmd->argval[qitems].netnum); 792 pl->addr6 = SOCK_ADDR6(&pcmd->argval[qitems].netnum); 1437 if (IS_IPV4(&pcmd->argval[0].netnum)) { 1438 cpeer.peeraddr = NSRCADR(&pcmd->argval[0].netnum); 1447 cpeer.peeraddr6 = SOCK_ADDR6(&pcmd->argval[0].netnum); 1508 if (IS_IPV4(&pcmd->argval[0].netnum)) { [all...] |
H A D | ntpdc.c | 1400 if (!getnetnum(str, &(argp->netnum), (char *)0, ai_fam_templ)) { 1491 sockaddr_u *netnum 1494 if (!showhostnames || SOCK_UNSPEC(netnum)) 1495 return stoa(netnum); 1496 else if (ISREFCLOCKADR(netnum)) 1497 return refnumtoa(netnum); 1499 return socktohost(netnum);
|
/freebsd-11-stable/contrib/ntp/include/ |
H A D | ntp_machine.h | 156 struct hostent *gethostbyname (char * netnum); 157 struct hostent *gethostbyaddr (char * netnum, int size, int addr_type);
|
/freebsd-11-stable/contrib/ntp/ntpq/ |
H A D | ntpq.h | 76 sockaddr_u netnum; member in union:__anon28
|
H A D | ntpq.c | 1803 if (!getnetnum(str, &argp->netnum, NULL, 0)) 1983 sockaddr_u *netnum 1986 return nntohost_col(netnum, LIB_BUFLENGTH - 1, FALSE); 2027 sockaddr_u *netnum 2033 if (!showhostnames || SOCK_UNSPEC(netnum)) 2034 return sptoa(netnum); 2035 else if (ISREFCLOCKADR(netnum)) 2036 return refnumtoa(netnum); 2038 hostn = socktohost(netnum); 2040 snprintf(buf, LIB_BUFLENGTH, "%s:%u", hostn, SRCPORT(netnum)); [all...] |
H A D | ntpq-subs.c | 2000 sockaddr_u netnum; local 2008 if (getnetnum(chosts[u].name, &netnum, fullname, af)) { 2009 name_or_num = nntohost(&netnum); 2054 sockaddr_u netnum; local 2062 if (getnetnum(chosts[u].name, &netnum, fullname, af)) { 2063 name_or_num = nntohost(&netnum); 2178 sockaddr_u netnum; local 2184 if (getnetnum(chosts[i].name, &netnum, fullname, af))
|
/freebsd-11-stable/contrib/amd/libamu/ |
H A D | wire.c | 318 u_long netnum, masknum = 0; local 347 netnum = inet_addr(netstr); /* not checking return value, b/c -1 (0xffffffff) is valid */ 352 if ((al->ip_addr & (maskstr ? masknum : al->ip_mask)) == netnum) 362 * Determine whether a IP address (netnum) is one of the local interfaces, 367 is_interface_local(u_long netnum) argument 372 if (al->ip_addr == netnum)
|