Home
last modified time | relevance | path

Searched refs:th_sport (Results 1 – 25 of 58) sorted by relevance

123

/freebsd/sys/netinet/libalias/
H A Dalias.c355 tc->th_dport, tc->th_sport, in IcmpAliasIn2()
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()
1125 .sport = &tc->th_sport, in TcpAliasOut()
1152 accumulate = tc->th_sport; in TcpAliasOut()
1153 tc->th_sport = alias_port; in TcpAliasOut()
1154 accumulate -= tc->th_sport; in TcpAliasOut()
[all …]
H A Dalias_skinny.c322 else if (ntohs(tc->th_sport) == la->skinnyPort) in AliasHandleSkinny()
/freebsd/sbin/ipf/ipsend/
H A Diptests.c908 t->th_sport = htons(1); in ip_test5()
1081 t->th_sport = sin.sin_port; in ip_test5()
1097 ntohs(t->th_sport), ntohs(t->th_dport)); in ip_test5()
1150 t->th_sport = 0; in ip_test5()
1156 t->th_sport = htons(1); in ip_test5()
1162 t->th_sport = htons(32767); in ip_test5()
1168 t->th_sport = htons(32768); in ip_test5()
1174 t->th_sport = htons(65535); in ip_test5()
1181 t->th_sport = htons(1); in ip_test5()
1222 t->th_sport = htons(25); in ip_test5()
H A Dresend.c46 printf(",%d", t->th_sport); in dumppacket()
/freebsd/sys/netinet/
H A Dtcpip.h47 #define ti_sport ti_t.th_sport
H A Dsiftr.c766 (siftr_port_filter != ntohs(th->th_sport)) && in siftr_chkpkt()
790 inp = siftr_findinpcb(INP_IPV4, ip, *m, th->th_sport, in siftr_chkpkt()
917 (siftr_port_filter != ntohs(th->th_sport)) && in siftr_chkpkt6()
942 th->th_sport, th->th_dport, dir, ss); in siftr_chkpkt6()
H A Dtcp_subr.c1700 th->th_sport = inp->inp_lport; in tcpip_fillheaders()
1890 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond()
1921 nth->th_sport = th->th_sport; in tcp_respond()
1924 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond()
2790 th->th_sport, INPLOOKUP_WLOCKPCB, NULL); in tcp_ctlinput_with_port()
2834 inc.inc_lport = th->th_sport; in tcp_ctlinput_with_port()
2914 uint16_t th_sport; in tcp6_ctlinput_with_port() member
2974 &ip6->ip6_src, t_ports.th_sport, INPLOOKUP_WLOCKPCB, NULL); in tcp6_ctlinput_with_port()
3029 inc.inc_lport = t_ports.th_sport; in tcp6_ctlinput_with_port()
3846 sprintf(sp, "]:%i to [", ntohs(th->th_sport)); in tcp_log_addr()
[all …]
H A Din_rss.c320 th->th_sport, in rss_mbuf_software_hash_v4()
H A Dtcp_input.c847 &ip6->ip6_src, th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input_with_port()
856 th->th_sport, &next_hop6->sin6_addr, in tcp_input_with_port()
862 th->th_sport, &ip6->ip6_dst, th->th_dport, lookupflag, in tcp_input_with_port()
878 inp = in_pcblookup_mbuf(&V_tcbinfo, ip->ip_src, th->th_sport, in tcp_input_with_port()
888 th->th_sport, next_hop->sin_addr, in tcp_input_with_port()
894 th->th_sport, ip->ip_dst, th->th_dport, lookupflag, in tcp_input_with_port()
1057 inc.inc_fport = th->th_sport; in tcp_input_with_port()
1296 if (th->th_dport == th->th_sport && in tcp_input_with_port()
1319 if (th->th_dport == th->th_sport && in tcp_input_with_port()
/freebsd/sbin/ipf/libipf/
H A Dprintpacket6.c46 (void)PRINTF(",%d", ntohs(tcp->th_sport)); in printpacket6()
H A Dprintpacket.c79 PRINTF(",%d", ntohs(tcp->th_sport)); in printpacket()
H A Dipft_tx.c240 tcp->th_sport = htons(tx_portnum(last)); in parseline()
400 tcp->th_sport = htons(tx_portnum(last)); in parseipv6()
/freebsd/contrib/tcpdump/
H A Dtcp.h41 nd_uint16_t th_sport; /* source port */ member
H A Dprint-tcp.c201 sport = GET_BE_U_2(tp->th_sport); in tcp_print()
394 if (ND_TTEST_LEN(tp->th_sport, length)) { in tcp_print()
406 if (ND_TTEST_LEN(tp->th_sport, length)) { in tcp_print()
/freebsd/tools/tools/netmap/
H A Dpkt_hash.c168 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 Dip_raudio_pxy.c284 tcp2->th_sport = htons(sp); in ipf_p_raudio_in()
307 tcp2->th_sport = htons(sp); in ipf_p_raudio_in()
H A Dip_nat6.c695 ((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 Dip_rcmd_pxy.c85 aps->aps_sport = tcp->th_sport; in ipf_p_rcmd_new()
/freebsd/sys/dev/ixgbe/
H A Dif_fdir.c114 common.port.dst ^= th->th_sport; in ixgbe_atr()
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c240 *((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 Dtcp.d264 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 Dtraceroute6.c1211 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 Dip.c372 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 Dtraceroute.c1495 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 Din6_rss.c346 th->th_sport, in rss_mbuf_software_hash_v6()

123