Home
last modified time | relevance | path

Searched refs:netnum (Results 1 – 13 of 13) sorted by relevance

/freebsd-14.2/contrib/ntp/libntp/
H A Ddecodenetnum.c90 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()
H A Drefnumtoa.c15 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()
H A Dnumtoa.c22 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()
H A Dnetof.c28 u_int32 netnum; in netof() local
40 netnum = SRCADR(netaddr) & IN_CLASSC_NET; in netof()
41 SET_ADDR4(netaddr, netnum); in netof()
/freebsd-14.2/contrib/ntp/ntpdc/
H A Dntpdc_ops.c706 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { in showpeer()
782 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { in peerstats()
1437 if (IS_IPV4(&pcmd->argval[0].netnum)) { in doconfig()
1508 if (IS_IPV4(&pcmd->argval[0].netnum)) { in unconfig()
1862 if (IS_IPV4(&pcmd->argval[0].netnum)) { in do_restrict()
1910 if (IS_IPV4(&pcmd->argval[0].netnum)) { in do_restrict()
2176 if (IS_IPV4(&pcmd->argval[qitems].netnum)) { in preset()
2470 if (IS_IPV4(&pcmd->argval[0].netnum)) { in do_addclr_trap()
2490 if (AF(&pcmd->argval[2].netnum) != in do_addclr_trap()
2491 AF(&pcmd->argval[0].netnum)) { in do_addclr_trap()
[all …]
H A Dntpdc.h37 sockaddr_u netnum; member
H A Dntpdc.c1418 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.2/contrib/ntp/include/
H A Dntp_machine.h156 struct hostent *gethostbyname (char * netnum);
157 struct hostent *gethostbyaddr (char * netnum, int size, int addr_type);
/freebsd-14.2/contrib/ntp/ntpq/
H A Dntpq.h75 sockaddr_u netnum; member
H A Dntpq.c1848 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()
H A Dntpq-subs.c2027 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.2/share/doc/psd/21.ipc/
H A Dspell.ok242 netnum
/freebsd-14.2/usr.sbin/bsdconfig/share/media/
H A Dtcpip.subr230 local ipnum masknum netnum bcastnum
236 netnum=$(( $ipnum & $masknum ))
240 [ $ipnum -eq $netnum -o $ipnum -eq $bcastnum ]