Searched refs:sin_port (Results 76 - 100 of 368) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/ntp/libntp/
H A Ddecodenetnum.c142 netnum.sa4.sin_port = htons((unsigned short)port);
/freebsd-11-stable/usr.sbin/nfscbd/
H A Dnfscbd.c227 inetaddr.sin_port = htons(myport);
237 nfscbdargs.port = ntohs(inetaddr.sin_port);
263 /* sin_port is already set */
266 inetaddr.sin_port = htons(myport);
/freebsd-11-stable/contrib/ipfilter/tools/
H A Dipsyncs.c101 sin.sin_port = htons(atoi(argv[2]));
103 sin.sin_port = htons(43434);
108 in.sin_port = 0;
/freebsd-11-stable/usr.sbin/ppp/
H A Dserver.c123 if (ntohs(sin->sin_port) < 1024) {
126 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
132 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
172 ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
339 sin->sin_port = htons(port);
/freebsd-11-stable/sbin/routed/
H A Dinput.c223 } else if (from->sin_port == htons(RIP_PORT)) {
231 if (from->sin_port == htons(RIP_PORT)) {
301 if (from->sin_port != htons(RIP_PORT)) {
458 if (from->sin_port != htons(RIP_PORT)) {
485 if (ntohs(from->sin_port) > IPPORT_RESERVED) {
513 if (from->sin_port != ntohs(RIP_PORT)) {
517 ntohs(from->sin_port), naddr_ntoa(FROM_NADDR));
/freebsd-11-stable/contrib/amd/amd/
H A Dops_nfs.c319 fp->fh_sin.sin_port = (u_short) 0;
474 fp->fh_sin.sin_port = 0;
547 if (fp->fh_sin.sin_port == 0) {
552 fp->fh_sin.sin_port = mountd_port;
553 dlog("%s: New %d mountd port", __func__, fp->fh_sin.sin_port);
555 dlog("%s: Already had %d mountd port", __func__, fp->fh_sin.sin_port);
597 fp->fh_sin.sin_port = 0;
626 if (fp->fh_sin.sin_port == 0) {
627 /* FIXME: wrong, don't discard sin_port in the first place for WebNFS. */
630 fp->fh_sin.sin_port
[all...]
H A Dnfs_prot_svc.c124 ntohs(sinp->sin_port) >= IPPORT_RESERVED &&
128 ntohs(sinp->sin_port));
138 ntohs(sinp->sin_port));
143 ntohs(sinp->sin_port),
/freebsd-11-stable/lib/libc/yp/
H A Dyplib.c343 check.sin_port != ysd->dom_local_port) {
407 &ysd->dom_server_addr.sin_port,
408 sizeof(ysd->dom_server_addr.sin_port));
410 ysd->dom_server_port = ysd->dom_server_addr.sin_port;
460 if (ntohs(clnt_sin.sin_port) >= IPPORT_RESERVED) {
502 &ysd->dom_server_addr.sin_port,
503 sizeof(ysd->dom_server_addr.sin_port));
545 ysd->dom_local_port = check.sin_port;
582 check.sin_port != ypb->dom_local_port) {
966 clnt_sin.sin_port
[all...]
/freebsd-11-stable/usr.sbin/rwhod/
H A Drwhod.c256 soin.sin_port = sp->s_port;
385 if (from.sin_port != sp->s_port && !insecure_mode) {
387 ntohs(from.sin_port), inet_ntoa(from.sin_addr));
601 multicast_addr.sin_port = sp->s_port;
665 #define PORT_SA(x) ((struct sockaddr_in *)(x))->sin_port
731 ntohs(sin->sin_port));
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dfils_hlp.c131 addr.sin_port = htons(hapd->conf->dhcp_server_port);
142 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port));
176 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port), (int) res);
417 addr.sin_port = htons(hapd->conf->dhcp_relay_port);
444 addr.sin_port = htons(hapd->conf->dhcp_server_port);
460 inet_ntoa(addr.sin_addr), ntohs(addr.sin_port),
/freebsd-11-stable/crypto/heimdal/appl/test/
H A Dgssapi_server.c182 remote.sin_port;
184 local.sin_port;
311 my_addr.sin_port = port;
/freebsd-11-stable/contrib/ipfilter/ipsend/
H A Dsock.c284 ti->ti_sport = lsin.sin_port;
285 printf("sport %d\n", ntohs(lsin.sin_port));
298 rsin.sin_port = ti->ti_dport;
/freebsd-11-stable/contrib/netbsd-tests/kernel/
H A Dt_kauth_pr_47598.c138 printf("port is %d\n", ntohs(sa.sin_port));
/freebsd-11-stable/contrib/blacklist/test/
H A Dcltest.c81 s->sin_port = p;
/freebsd-11-stable/contrib/smbfs/lib/smb/
H A Dnb_net.c97 sinp->sin_port = htons(smbtcpport);
/freebsd-11-stable/lib/libc/rpc/
H A Dbindresvport.c104 portp = &sin->sin_port;
H A Drpc_soc.c113 if (raddr->sin_port == 0) {
124 raddr->sin_port = htons(sport);
238 port = (((struct sockaddr_in *)svc->xp_ltaddr.buf)->sin_port);
285 addr->sin_port = htons(PMAPPORT);
/freebsd-11-stable/sbin/natd/
H A Dicmp.c110 addr.sin_port = 0;
/freebsd-11-stable/tools/regression/netinet/ipdivert/
H A Dipdivert.c102 sin.sin_port = htons(port);
/freebsd-11-stable/tools/regression/netinet/udpzerobyte/
H A Dudpzerobyte.c123 sin.sin_port = htons(THEPORT);
/freebsd-11-stable/tools/tools/mctest/
H A Dmctest.cc150 local.sin_port = htons(DEFAULT_PORT);
186 recvd.sin_port = htons(base_port + client);
254 addr.sin_port = htons(args->client);
321 addr.sin_port = htons(DEFAULT_PORT);
/freebsd-11-stable/tools/tools/net80211/w00t/redir/
H A Dbuddy.c130 s_in.sin_port = htons(666);
/freebsd-11-stable/tools/tools/net80211/wesside/udps/
H A Dudps.c147 s_in.sin_port = htons(port);
/freebsd-11-stable/contrib/netbsd-tests/lib/librumpclient/
H A Dt_fd.c126 sin.sin_port = htons(12345);
/freebsd-11-stable/contrib/netbsd-tests/net/icmp/
H A Dt_forward.c93 sin.sin_port = htons(33434);

Completed in 913 milliseconds

1234567891011>>