| /freebsd-14-stable/contrib/ntp/libntp/ |
| HD | decodenetnum.c | 90 sockaddr_u netnum; in decodenetnum() local 132 memset(&netnum, 0, sizeof(netnum)); in decodenetnum() 140 if (inet_pton(afam, haddr, &netnum.sa4.sin_addr) <= 0) in decodenetnum() 142 netnum.sa4.sin_port = htons((unsigned short)port); in decodenetnum() 147 if (inet_pton(afam, haddr, &netnum.sa6.sin6_addr) <= 0) in decodenetnum() 149 netnum.sa6.sin6_port = htons((unsigned short)port); in decodenetnum() 150 netnum.sa6.sin6_scope_id = scope; in decodenetnum() 161 netnum.sa.sa_family = afam; in decodenetnum() 162 memcpy(net, &netnum, sizeof(netnum)); in decodenetnum()
|
| HD | refnumtoa.c | 15 u_int32 netnum; in refnumtoa() local 23 netnum = SRCADR(num); in refnumtoa() 24 rclock = clockname((int)((u_long)netnum >> 8) & 0xff); in refnumtoa() 28 rclock, (u_long)netnum & 0xff); in refnumtoa() 31 ((u_long)netnum >> 8) & 0xff, in refnumtoa() 32 (u_long)netnum & 0xff); in refnumtoa()
|
| HD | numtoa.c | 22 register u_int32 netnum; in numtoa() local 25 netnum = ntohl(num); in numtoa() 28 ((u_long)netnum >> 24) & 0xff, in numtoa() 29 ((u_long)netnum >> 16) & 0xff, in numtoa() 30 ((u_long)netnum >> 8) & 0xff, in numtoa() 31 (u_long)netnum & 0xff); in numtoa()
|
| HD | netof.c | 28 u_int32 netnum; in netof() local 40 netnum = SRCADR(netaddr) & IN_CLASSC_NET; in netof() 41 SET_ADDR4(netaddr, netnum); in netof()
|
| /freebsd-14-stable/contrib/ntp/ntpdc/ |
| HD | ntpdc_ops.c | 706 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { in showpeer() 707 pl->addr = NSRCADR(&pcmd->argval[qitems].netnum); in showpeer() 716 pl->addr6 = SOCK_ADDR6(&pcmd->argval[qitems].netnum); in showpeer() 782 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { in peerstats() 783 pl->addr = NSRCADR(&pcmd->argval[qitems].netnum); in peerstats() 792 pl->addr6 = SOCK_ADDR6(&pcmd->argval[qitems].netnum); in peerstats() 1437 if (IS_IPV4(&pcmd->argval[0].netnum)) { in doconfig() 1438 cpeer.peeraddr = NSRCADR(&pcmd->argval[0].netnum); in doconfig() 1447 cpeer.peeraddr6 = SOCK_ADDR6(&pcmd->argval[0].netnum); in doconfig() 1508 if (IS_IPV4(&pcmd->argval[0].netnum)) { in unconfig() [all …]
|
| HD | ntpdc.h | 37 sockaddr_u netnum; member
|
| HD | ntpdc.c | 1418 if (!getnetnum(str, &(argp->netnum), (char *)0, ai_fam_templ)) { in getarg() 1509 sockaddr_u *netnum in nntohost() argument 1512 if (!showhostnames || SOCK_UNSPEC(netnum)) in nntohost() 1513 return stoa(netnum); in nntohost() 1514 else if (ISREFCLOCKADR(netnum)) in nntohost() 1515 return refnumtoa(netnum); in nntohost() 1517 return socktohost(netnum); in nntohost()
|
| /freebsd-14-stable/contrib/ntp/include/ |
| HD | ntp_machine.h | 156 struct hostent *gethostbyname (char * netnum); 157 struct hostent *gethostbyaddr (char * netnum, int size, int addr_type);
|
| /freebsd-14-stable/contrib/ntp/ntpq/ |
| HD | ntpq.h | 75 sockaddr_u netnum; member
|
| HD | ntpq.c | 1848 if (!getnetnum(str, &argp->netnum, NULL, 0)) in getarg() 2028 sockaddr_u *netnum in nntohost() argument 2031 return nntohost_col(netnum, LIB_BUFLENGTH - 1, FALSE); in nntohost() 2072 sockaddr_u *netnum in nntohostp() argument 2078 if (!showhostnames || SOCK_UNSPEC(netnum)) in nntohostp() 2079 return sptoa(netnum); in nntohostp() 2080 else if (ISREFCLOCKADR(netnum)) in nntohostp() 2081 return refnumtoa(netnum); in nntohostp() 2083 hostn = socktohost(netnum); in nntohostp() 2085 snprintf(buf, LIB_BUFLENGTH, "%s:%u", hostn, SRCPORT(netnum)); in nntohostp()
|
| HD | ntpq-subs.c | 2027 sockaddr_u netnum; in dopeers() local 2036 if (getnetnum(chosts[u].name, &netnum, fullname, af)) { in dopeers() 2037 name_or_num = nntohost(&netnum); in dopeers() 2082 sockaddr_u netnum; in doapeers() local 2091 if (getnetnum(chosts[u].name, &netnum, fullname, af)) { in doapeers() 2092 name_or_num = nntohost(&netnum); in doapeers() 2207 sockaddr_u netnum; in doopeers() local 2214 if (getnetnum(chosts[i].name, &netnum, fullname, af)) { in doopeers()
|
| /freebsd-14-stable/share/doc/psd/21.ipc/ |
| HD | spell.ok | 242 netnum
|
| /freebsd-14-stable/usr.sbin/bsdconfig/share/media/ |
| HD | tcpip.subr | 230 local ipnum masknum netnum bcastnum 236 netnum=$(( $ipnum & $masknum )) 240 [ $ipnum -eq $netnum -o $ipnum -eq $bcastnum ]
|