/freebsd/sys/netinet/libalias/ |
H A D | alias.c | 355 tc->th_dport, tc->th_sport, in IcmpAliasIn2() 544 tc->th_dport, tc->th_sport, in IcmpAliasOut2() 951 tc->th_sport, tc->th_dport, in TcpAliasIn() 973 .sport = &tc->th_sport, in TcpAliasIn() 1020 accumulate += tc->th_sport; in TcpAliasIn() 1021 tc->th_sport = proxy_port; in TcpAliasIn() 1022 accumulate -= tc->th_sport; in TcpAliasIn() 1112 tc->th_sport, tc->th_dport, in TcpAliasOut() 1125 .sport = &tc->th_sport, in TcpAliasOut() 1152 accumulate = tc->th_sport; in TcpAliasOut() [all …]
|
H A D | alias_skinny.c | 322 else if (ntohs(tc->th_sport) == la->skinnyPort) in AliasHandleSkinny()
|
/freebsd/sbin/ipf/ipsend/ |
H A D | iptests.c | 907 t->th_sport = htons(1); in ip_test5() 1079 t->th_sport = sin.sin_port; in ip_test5() 1095 ntohs(t->th_sport), ntohs(t->th_dport)); in ip_test5() 1148 t->th_sport = 0; in ip_test5() 1154 t->th_sport = htons(1); in ip_test5() 1160 t->th_sport = htons(32767); in ip_test5() 1166 t->th_sport = htons(32768); in ip_test5() 1172 t->th_sport = htons(65535); in ip_test5() 1179 t->th_sport = htons(1); in ip_test5() 1220 t->th_sport = htons(25); in ip_test5()
|
H A D | resend.c | 46 printf(",%d", t->th_sport); in dumppacket()
|
/freebsd/sys/netinet/ |
H A D | tcpip.h | 47 #define ti_sport ti_t.th_sport
|
H A D | siftr.c | 764 (siftr_port_filter != ntohs(th->th_sport)) && in siftr_chkpkt() 788 inp = siftr_findinpcb(INP_IPV4, ip, *m, th->th_sport, in siftr_chkpkt() 915 (siftr_port_filter != ntohs(th->th_sport)) && in siftr_chkpkt6() 940 th->th_sport, th->th_dport, dir, ss); in siftr_chkpkt6()
|
H A D | tcp_subr.c | 1692 th->th_sport = inp->inp_lport; in tcpip_fillheaders() 1882 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond() 1913 nth->th_sport = th->th_sport; in tcp_respond() 1916 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond() 2855 th->th_sport, INPLOOKUP_WLOCKPCB, NULL); in tcp_ctlinput_with_port() 2899 inc.inc_lport = th->th_sport; in tcp_ctlinput_with_port() 2979 uint16_t th_sport; in tcp6_ctlinput_with_port() member 3039 &ip6->ip6_src, t_ports.th_sport, INPLOOKUP_WLOCKPCB, NULL); in tcp6_ctlinput_with_port() 3094 inc.inc_lport = t_ports.th_sport; in tcp6_ctlinput_with_port() 3915 sprintf(sp, "]:%i to [", ntohs(th->th_sport)); in tcp_log_addr() [all …]
|
H A D | in_rss.c | 320 th->th_sport, in rss_mbuf_software_hash_v4()
|
H A D | tcp_input.c | 856 &ip6->ip6_src, th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input_with_port() 865 th->th_sport, &next_hop6->sin6_addr, in tcp_input_with_port() 871 th->th_sport, &ip6->ip6_dst, th->th_dport, lookupflag, in tcp_input_with_port() 887 inp = in_pcblookup_mbuf(&V_tcbinfo, ip->ip_src, th->th_sport, in tcp_input_with_port() 897 th->th_sport, next_hop->sin_addr, in tcp_input_with_port() 903 th->th_sport, ip->ip_dst, th->th_dport, lookupflag, in tcp_input_with_port() 1066 inc.inc_fport = th->th_sport; in tcp_input_with_port() 1305 if (th->th_dport == th->th_sport && in tcp_input_with_port() 1328 if (th->th_dport == th->th_sport && in tcp_input_with_port()
|
/freebsd/sbin/ipf/libipf/ |
H A D | printpacket6.c | 46 (void)PRINTF(",%d", ntohs(tcp->th_sport)); in printpacket6()
|
H A D | printpacket.c | 79 PRINTF(",%d", ntohs(tcp->th_sport)); in printpacket()
|
H A D | ipft_tx.c | 240 tcp->th_sport = htons(tx_portnum(last)); in parseline() 401 tcp->th_sport = htons(tx_portnum(last)); in parseipv6()
|
/freebsd/contrib/tcpdump/ |
H A D | tcp.h | 41 nd_uint16_t th_sport; /* source port */ member
|
H A D | print-tcp.c | 199 sport = GET_BE_U_2(tp->th_sport); in tcp_print() 392 if (ND_TTEST_LEN(tp->th_sport, length)) { in tcp_print() 404 if (ND_TTEST_LEN(tp->th_sport, length)) { in tcp_print()
|
/freebsd/tools/tools/netmap/ |
H A D | pkt_hash.c | 168 ntohs(tcph->th_sport) + seed, in decode_ip_n_hash() 239 ntohs(tcph->th_sport) + seed, in decode_ipv6_n_hash()
|
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_raudio_pxy.c | 284 tcp2->th_sport = htons(sp); in ipf_p_raudio_in() 307 tcp2->th_sport = htons(sp); in ipf_p_raudio_in()
|
H A D | ip_nat6.c | 695 ((tcphdr_t *)fin->fin_dp)->th_sport = port; in ipf_nat6_newmap() 1472 fin->fin_data[1] = ntohs(tcp->th_sport); in ipf_nat6_icmperrorlookup() 1730 sum4 = ntohs(tcp->th_sport); in ipf_nat6_icmperror() 1734 tcp->th_sport = htons(sum1); in ipf_nat6_icmperror() 1740 sum4 = ntohs(tcp->th_sport); in ipf_nat6_icmperror() 1743 tcp->th_sport = htons(sum1); in ipf_nat6_icmperror() 2879 tcp->th_sport = nat->nat_nsport; in ipf_nat6_out() 2886 tcp->th_sport = nat->nat_odport; in ipf_nat6_out() 3298 tcp->th_sport = nat->nat_nsport; in ipf_nat6_in() 3305 tcp->th_sport = nat->nat_odport; in ipf_nat6_in()
|
H A D | ip_rcmd_pxy.c | 85 aps->aps_sport = tcp->th_sport; in ipf_p_rcmd_new()
|
/freebsd/sys/dev/ixgbe/ |
H A D | if_fdir.c | 114 common.port.dst ^= th->th_sport; in ixgbe_atr()
|
/freebsd/sys/netpfil/ipfw/ |
H A D | dn_sched_fq_codel.c | 240 *((uint16_t *) &tuple[39]) = th->th_sport; in fq_codel_classify_flow() 267 *((uint16_t *) &tuple[15]) = th->th_sport; in fq_codel_classify_flow()
|
/freebsd/cddl/lib/libdtrace/ |
H A D | tcp.d | 264 tcp_sport = p == NULL ? 0 : ntohs(p->th_sport); 283 tcp_sport = p == NULL ? 0 : ntohs(p->th_sport);
|
/freebsd/usr.sbin/traceroute6/ |
H A D | traceroute6.c | 1211 tcp->th_sport = htons(ident); in send_probe() 1213 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport; in send_probe() 1454 if (tcp->th_sport == htons(ident) && in packet_ok() 1457 (tcp_seq)((tcp->th_sport << 16) | tcp->th_dport)) in packet_ok()
|
/freebsd/usr.sbin/ppp/ |
H A D | ip.c | 372 sport = ntohs(th->th_sport); in FilterCheck() 818 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport), in PacketCheck() 827 "TCP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(th->th_sport)); in PacketCheck()
|
/freebsd/usr.sbin/traceroute/ |
H A D | traceroute.c | 1495 tcp->th_sport = htons(ident); in tcp_prep() 1497 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport; in tcp_prep() 1512 return (ntohs(tcp->th_sport) == ident in tcp_check() 1514 && tcp->th_seq == (tcp_seq)((tcp->th_sport << 16) | tcp->th_dport)); in tcp_check()
|
/freebsd/sys/netinet6/ |
H A D | in6_rss.c | 346 th->th_sport, in rss_mbuf_software_hash_v6()
|