| /freebsd-src/tests/sys/netinet/libalias/ | 
| H A D | 2_natout.c | 145 	aport = ntohs(uo->uh_sport);156 	ATF_CHECK(uo->uh_sport != htons(aport));
 159 	ui->uh_dport = uo->uh_sport;
 160 	UDP_UNNAT_CHECK(pi, ui, ext, dport, masq, htons(uo->uh_sport), prv2, sport);
 187 	aport = ntohs(u->uh_sport);
 194 	ATF_CHECK(u->uh_sport != htons(aport));
 219 	aport = ntohs(uo->uh_sport);
 237 	ATF_CHECK(uo->uh_sport == htons(aport));
 240 	UDP_UNNAT_CHECK(po, uo, ext, dport, masq, htons(uo->uh_sport), prv2, sport);
 290 			batch[i].aport = htons(u->uh_sport);
 [all...]
 | 
| H A D | perf.c | 160 			batch[i].aport = htons(u->uh_sport);  in main()244 					    u->uh_sport == htons(batch[k].dport) &&  in main()
 258 					    u->uh_sport == htons(batch[k].aport) &&  in main()
 
 | 
| H A D | util.c | 119 	u->uh_sport = htons(sport); in set_udp() 
 | 
| H A D | util.h | 128 	ATF_CHECK(u->uh_sport == htons(sp));		\
 | 
| /freebsd-src/sys/netpfil/ipfilter/netinet/ | 
| H A D | ip_netbios_pxy.c | 109 	dgmbuf[4] = (char)((udp->uh_sport     )&0xFF);  in ipf_p_netbios_out()110 	dgmbuf[5] = (char)((udp->uh_sport >> 8)&0xFF);  in ipf_p_netbios_out()
 
 | 
| /freebsd-src/sys/netinet/libalias/ | 
| H A D | alias.c | 351 		    ud->uh_dport, ud->uh_sport, in IcmpAliasIn2() 377 			accumulate += ud->uh_sport; in IcmpAliasIn2()
 394 			ud->uh_sport = original_port; in IcmpAliasIn2()
 540 		    ud->uh_dport, ud->uh_sport, in IcmpAliasOut2()
 756 	    ud->uh_sport, ud->uh_dport, in UdpAliasIn()
 771 			.sport = &ud->uh_sport, in UdpAliasIn()
 801 				accumulate += ud->uh_sport; in UdpAliasIn()
 816 			ud->uh_sport = proxy_port; in UdpAliasIn()
 881 	    ud->uh_sport, ud->uh_dport, in UdpAliasOut()
 891 			.sport = &ud->uh_sport, in UdpAliasOut()
 [all...]
 | 
| /freebsd-src/sys/netinet6/ | 
| H A D | udp6_usrreq.c | 232 	if (inp->inp_fport != 0 && inp->inp_fport != ctx->uh->uh_sport) in udp6_multi_match() 239 	    inp->inp_fport != ctx->uh->uh_sport)) in udp6_multi_match()
 444 	fromsa[0].sin6_port = uh->uh_sport; in udp6_input()
 472 		    uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input()
 481 			    uh->uh_sport, &next_hop6->sin6_addr, in udp6_input()
 491 		    uh->uh_sport, &ip6->ip6_dst, uh->uh_dport, in udp6_input()
 504 			    ntohs(uh->uh_sport)); in udp6_input()
 557 		u_int16_t uh_sport; in udp6_common_ctlinput()   member
 577 	    &ip6->ip6_src, uh.uh_sport, INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB, in udp6_common_ctlinput()
 590 	    ip6cp->ip6c_src, uh.uh_sport, errn in udp6_common_ctlinput()
 [all...]
 | 
| /freebsd-src/sbin/dhclient/ | 
| H A D | packet.c | 133 	udp.uh_sport = htons(LOCAL_PORT);	/* XXX */  in assemble_udp_ip_header()246 	memcpy(&from->sin_port, &udp->uh_sport, sizeof(udp->uh_sport));  in decode_udp_ip_header()
 
 | 
| /freebsd-src/sys/netinet/ | 
| H A D | udp.h | 43 	u_short	uh_sport;		/* source port */  member
 | 
| H A D | udp_usrreq.c | 345 	    inp->inp_fport != uh->uh_sport) in udp_multi_match() 500 	udp_in[0].sin_port = uh->uh_sport; in udp_input()
 591 		inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport, in udp_input()
 600 			    uh->uh_sport, next_hop->sin_addr, in udp_input()
 609 		inp = in_pcblookup_mbuf(pcbinfo, ip->ip_src, uh->uh_sport, in udp_input()
 620 			    inet_ntoa_r(ip->ip_src, src), ntohs(uh->uh_sport)); in udp_input()
 712 	    uh->uh_sport, INPLOOKUP_WLOCKPCB, NULL); in udp_common_ctlinput()
 720 		    ip->ip_src, uh->uh_sport, in udp_common_ctlinput()
 
 | 
| H A D | udp_var.h | 53 #define	ui_sport	ui_u.uh_sport
 | 
| /freebsd-src/sbin/ipf/ipsend/ | 
| H A D | iptests.c | 112 	u->uh_sport = htons(1); in ip_test1() 753 	u->uh_sport = htons(1); in ip_test4()
 803 		u->uh_sport = 0; in ip_test4()
 809 		u->uh_sport = htons(1); in ip_test4()
 815 		u->uh_sport = htons(32767); in ip_test4()
 821 		u->uh_sport = htons(32768); in ip_test4()
 828 		u->uh_sport = htons(65535); in ip_test4()
 841 		u->uh_sport = htons(1); in ip_test4()
 1254 	u->uh_sport = htons(1); in ip_test6()
 
 | 
| /freebsd-src/sys/net/ | 
| H A D | if_gre.c | 469 	udp->uh_sport = htons(sc->gre_port);  in gre_update_udphdr()759 		uh->uh_sport |= htons(V_ipport_hifirstauto) |
 761 		uh->uh_sport = htons(ntohs(uh->uh_sport) %
 
 | 
| /freebsd-src/stand/libsa/ | 
| H A D | rpc.c | 281 		uint16_t uh_sport;		/* source port */  in rpc_fromaddr()  member291 	*port = hhdr->uh_sport;  in rpc_fromaddr()
 
 | 
| H A D | udp.c | 80 	uh->uh_sport = d->myport;  in sendudp()
 | 
| /freebsd-src/cddl/lib/libdtrace/ | 
| H A D | udp.d | 69 	udp_sport =	p == NULL ? 0 : ntohs(p->uh_sport);
 | 
| H A D | udplite.d | 70 	udplite_sport =		p == NULL ? 0 : ntohs(p->uh_sport);
 | 
| /freebsd-src/contrib/tcpdump/ | 
| H A D | udp.h | 41 	nd_uint16_t	uh_sport;		/* source port */  member 
 | 
| /freebsd-src/sys/netipsec/ | 
| H A D | udpencap.c | 186 	    sav->natt->sport != udp->uh_sport ||  in udp_ipsec_input()278 	udp->uh_sport = sav->natt->sport;  in udp_ipsec_output()
 
 | 
| /freebsd-src/tools/tools/netmap/ | 
| H A D | pkt_hash.c | 175 					 ntohs(udph->uh_sport) + seed,  in decode_ip_n_hash()246 					 ntohs(udph->uh_sport) + seed,  in decode_ipv6_n_hash()
 
 | 
| H A D | pkt-gen.c | 803 #define uh_sport source  macro843 		nport = oport = ntohs(udp.uh_sport);  in update_ip()
 846 			udp.uh_sport = nrand48(t->seed);  in update_ip()
 848 			nport = ntohs(udp.uh_sport);  in update_ip()
 854 				udp.uh_sport = htons(nport);  in update_ip()
 859 			udp.uh_sport = htons(nport);  in update_ip()
 931 		nport = oport = ntohs(udp.uh_sport);  in update_ip6()
 934 			udp.uh_sport = nrand48(t->seed);  in update_ip6()
 936 			nport = ntohs(udp.uh_sport);  in update_ip6()
 941 			udp.uh_sport = htons(nport);  in update_ip6()
 [all …]
 
 | 
| /freebsd-src/tools/tools/net80211/wesside/dics/ | 
| H A D | dics.c | 179 	*port = ntohs(uh->uh_sport);257 		uh->uh_sport = htons(DPORT);  in send_stuff()
 
 | 
| /freebsd-src/sys/dev/ixgbe/ | 
| H A D | if_fdir.c | 121 		common.port.dst ^= uh->uh_sport; in ixgbe_atr() 
 | 
| /freebsd-src/usr.sbin/ppp/ | 
| H A D | ip.c | 354             sport = ntohs(uh->uh_sport); in FilterCheck() 654     if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport), in PacketCheck()
 661                "UDP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(uh->uh_sport)); in PacketCheck()
 805                ntohs(uh->uh_sport)); in PacketCheck()
 
 | 
| /freebsd-src/sys/netpfil/ipfw/ | 
| H A D | dn_sched_fq_codel.c | 246 			*((uint16_t *) &tuple[39]) = uh->uh_sport;  in fq_codel_classify_flow()273 			*((uint16_t *) &tuple[15]) = uh->uh_sport;  in fq_codel_classify_flow()
 
 |