/freebsd-13-stable/crypto/heimdal/lib/roken/ |
H A D | socket_wrapper.c | 187 ((struct sockaddr_in *)addr)->sin_port = htons(prt); 308 in2->sin_port = htons(prt); 370 prt = ntohs(in->sin_port); 459 prt = ntohs(in->sin_port); 791 unsigned short src_port = src_addr->sin_port; 792 unsigned short dest_port = dest_addr->sin_port; 866 src_port = dest_addr->sin_port; 867 dest_port = src_addr->sin_port; 885 packet->ip.p.udp.source_port = src_addr->sin_port; 886 packet->ip.p.udp.dest_port = dest_addr->sin_port; [all...] |
/freebsd-13-stable/lib/libcompat/4.3/ |
H A D | rexec.c | 323 sin.sin_port = rport; 356 port = ntohs((u_short)sin2.sin_port);
|
/freebsd-13-stable/contrib/blacklist/port/ |
H A D | sockaddr_snprintf.c | 117 return snprintf(str, len, "sin_len=%u, sin_family=%u, sin_port=%u, " 119 SLEN(sin), sin->sin_family, sin->sin_port, 210 p = ntohs(sin4->sin_port);
|
/freebsd-13-stable/contrib/ipfilter/lib/ |
H A D | save_v1trap.c | 148 ctx->sin.sin_port = htons(162); 180 ctx->sin.sin_port = htons(162);
|
H A D | save_v2trap.c | 153 ctx->sin.sin_port = htons(162); 185 ctx->sin.sin_port = htons(162);
|
/freebsd-13-stable/contrib/ntp/libntp/ |
H A D | machines.c | 151 if (((struct sockaddr_in *)addr)->sin_port > 0 && 152 ((struct sockaddr_in *)addr)->sin_port < 1024) {
|
/freebsd-13-stable/usr.sbin/rpcbind/ |
H A D | util.c | 282 SA2SIN(&ss)->sin_port = SA2SIN(serv_sa)->sin_port;
|
/freebsd-13-stable/usr.sbin/tcpdrop/ |
H A D | tcpdrop.c | 358 sin4[TCPDROP_LOCAL].sin_port = inc->inc_lport; 365 sin4[TCPDROP_FOREIGN].sin_port = inc->inc_fport;
|
/freebsd-13-stable/sys/nfs/ |
H A D | krpc_subr.c | 169 sin->sin_port = htons(PMAPPORT); 264 sin->sin_port = htons(tport);
|
/freebsd-13-stable/tools/tools/netrate/netsend/ |
H A D | netsend.c | 233 a->sin.sin_port = htons(cur_port++); 328 a.sin.sin_port = htons(port);
|
/freebsd-13-stable/tools/tools/switch_tls/ |
H A D | switch_tls.c | 355 sin4[TCPDROP_LOCAL].sin_port = inc->inc_lport; 362 sin4[TCPDROP_FOREIGN].sin_port = inc->inc_fport;
|
/freebsd-13-stable/usr.bin/procstat/ |
H A D | procstat_files.c | 112 ntohs(sin->sin_port)); 116 ntohs(sin->sin_port));
|
/freebsd-13-stable/tools/regression/netinet/msocket/ |
H A D | msocket.c | 371 sin.sin_port = htons(UDP_PORT); 397 sin.sin_port = htons(UDP_PORT);
|
/freebsd-13-stable/sys/netinet/ |
H A D | udp_usrreq.c | 449 udp_in[0].sin_port = uh->uh_sport; 453 udp_in[1].sin_port = uh->uh_dport; 683 next_hop->sin_port ? htons(next_hop->sin_port) : 946 inp = in_pcblookup(&V_udbinfo, addrs[1].sin_addr, addrs[1].sin_port, 947 addrs[0].sin_addr, addrs[0].sin_port, 1139 src->sin_port = inp->inp_lport; 1230 src.sin_port = inp->inp_lport; 1377 fport = sin->sin_port;
|
H A D | ip_divert.c | 95 * up (at least partially) as the sin_port in the struct sockaddr. 98 * destination address, and in sin_port the number of the filter rule 109 * written in the sin_port (ipfw does not allow a rule #0, so sin_port=0 234 divsrc.sin_port = ((struct ipfw_rule_ref *)(mtag+1))->rulenum; 377 dt->rulenum = sin->sin_port+1; /* host format ? */ 545 sin->sin_port = 0;
|
/freebsd-13-stable/lib/libfetch/ |
H A D | ftp.c | 136 sin4->sin_port = port; 756 sin4->sin_port = htons(port); 759 memcpy(&sin4->sin_port, addr + 4, 2); 802 ((struct sockaddr_in *)&sa)->sin_port = 0; 823 p = ntohs(sin4->sin_port);
|
/freebsd-13-stable/sys/net/ |
H A D | if_vxlan.c | 689 vxlsa.in4.sin_port = sc->vxl_dst_addr.in4.sin_port; 1678 if (sc->vxl_src_addr.in4.sin_port == 0) { 1683 if (sc->vxl_dst_addr.in4.sin_port == 0) { 1757 ntohs(sc->vxl_src_addr.in4.sin_port)); 1816 ntohs(sc->vxl_src_addr.in4.sin_port)); 2041 sc->vxl_src_addr.in4.sin_port = htons(cmd->vxlcmd_port); 2063 sc->vxl_dst_addr.in4.sin_port = htons(cmd->vxlcmd_port); 2227 if (vxlsa.in4.sin_port == 0) 2228 vxlsa.in4.sin_port [all...] |
/freebsd-13-stable/contrib/wpa/src/common/ |
H A D | wpa_ctrl.c | 362 ctrl->dest.sin_port = htons(WPA_CTRL_IFACE_PORT); 416 ctrl->dest.sin_port = htons(port_id); 435 ntohs(ctrl->dest.sin_port),
|
/freebsd-13-stable/contrib/sendmail/libmilter/ |
H A D | listener.c | 351 addr.sin.sin_port = port; 403 addr.sin.sin_port = port; 433 addr.sin.sin_port = port;
|
/freebsd-13-stable/lib/libc/net/ |
H A D | rcmd.c | 256 aport = ntohs(((struct sockaddr_in *)&from)->sin_port); 336 sport = &((struct sockaddr_in *)&ss)->sin_port; 355 sin.sin_port = htons((u_short)*alport);
|
/freebsd-13-stable/lib/libc/rpc/ |
H A D | clnt_bcast.c | 167 sin->sin_port = 169 (void *)res->ai_addr)->sin_port; 601 sin->sin_port =
|
H A D | rpc_generic.c | 620 port = ntohs(sin->sin_port); 705 sin->sin_port = htons(port); 831 (void *)&ss)->sin_port != 0);
|
/freebsd-13-stable/crypto/openssl/crypto/bio/ |
H A D | b_addr.c | 111 ap->s_in.sin_port = port; 172 return ap->s_in.sin_port; 246 BIO_snprintf(serv, sizeof(serv), "%d", ntohs(ap->s_in.sin_port));
|
/freebsd-13-stable/usr.bin/systat/ |
H A D | netstat.c | 371 sa4->sin_port = inc->inc_lport; 377 sa4->sin_port = inc->inc_fport; 547 port = ((struct sockaddr_in *)sa)->sin_port;
|
/freebsd-13-stable/contrib/opie/ |
H A D | opieftpd.c | 887 ntohs(data_source.sin_port), strerror(errno)); 1139 p = (u_char *) & sin->sin_port; 1333 pasv_addr.sin_port = 0; 1348 p = (char *) &pasv_addr.sin_port; 1597 data_source.sin_port = htons(ntohs(ctrl_addr.sin_port) - 1);
|