Home
last modified time | relevance | path

Searched refs:th_dport (Results 1 – 25 of 61) sorted by relevance

123

/freebsd/sys/netinet/libalias/
H A Dalias.c355 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()
974 .dport = &tc->th_dport, in TcpAliasIn()
984 alias_port = tc->th_dport; in TcpAliasIn()
985 tc->th_dport = GetOriginalPort(lnk); in TcpAliasIn()
1013 accumulate -= tc->th_dport; in TcpAliasIn()
1085 tc->th_dport, pip->ip_p); in TcpAliasOut()
1094 dest_port = tc->th_dport; in TcpAliasOut()
1099 accumulate = tc->th_dport; in TcpAliasOut()
[all …]
H A Dalias_smedia.c486 if ((ntohs(tc->th_dport) == RTSP_CONTROL_PORT_NUMBER_1) || in AliasHandleRtspOut()
487 (ntohs(tc->th_dport) == RTSP_CONTROL_PORT_NUMBER_2)) { in AliasHandleRtspOut()
H A Dalias_ftp.c246 if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) { in AliasHandleFtpOut()
303 ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER && in AliasHandleFtpIn()
/freebsd/sbin/ipf/ipsend/
H A Diptests.c909 t->th_dport = htons(1); in ip_test5()
1078 t->th_dport = htons(i); in ip_test5()
1097 ntohs(t->th_sport), ntohs(t->th_dport)); in ip_test5()
1188 t->th_dport = 0; in ip_test5()
1194 t->th_dport = htons(1); in ip_test5()
1200 t->th_dport = htons(32767); in ip_test5()
1206 t->th_dport = htons(32768); in ip_test5()
1212 t->th_dport = htons(65535); in ip_test5()
1223 t->th_dport = htons(25); in ip_test5()
H A Dipsend.c287 tcp->th_dport = htons(atoi(optarg)); in main()
402 if (ip->ip_p == IPPROTO_TCP && tcp->th_dport) in main()
H A Dresend.c49 printf(",%d", t->th_dport); in dumppacket()
/freebsd/sys/netinet/
H A Dtcpip.h48 #define ti_dport ti_t.th_dport
H A Dsiftr.c765 (siftr_port_filter != ntohs(th->th_dport))) { in siftr_chkpkt()
789 th->th_dport, dir, ss); in siftr_chkpkt()
916 (siftr_port_filter != ntohs(th->th_dport))) { in siftr_chkpkt6()
940 th->th_sport, th->th_dport, dir, ss); in siftr_chkpkt6()
H A Dtcp_subr.c1693 th->th_dport = inp->inp_fport; in tcpip_fillheaders()
1882 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond()
1914 nth->th_dport = th->th_dport; in tcp_respond()
1916 xchg(nth->th_dport, nth->th_sport, uint16_t); in tcp_respond()
2850 inp = in_pcblookup(&V_tcbinfo, ip->ip_dst, th->th_dport, ip->ip_src, in tcp_ctlinput_with_port()
2894 inc.inc_fport = th->th_dport; in tcp_ctlinput_with_port()
2976 uint16_t th_dport; in tcp6_ctlinput_with_port() member
3034 inp = in6_pcblookup(&V_tcbinfo, &ip6->ip6_dst, t_ports.th_dport, in tcp6_ctlinput_with_port()
3089 inc.inc_fport = t_ports.th_dport; in tcp6_ctlinput_with_port()
3915 sprintf(sp, "]:%i", ntohs(th->th_dport)); in tcp_log_addr()
[all …]
H A Din_rss.c321 th->th_dport, in rss_mbuf_software_hash_v4()
H A Dtcp_input.c849 &ip6->ip6_src, th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input_with_port()
860 th->th_dport, lookupflag, m->m_pkthdr.rcvif); in tcp_input_with_port()
864 th->th_sport, &ip6->ip6_dst, th->th_dport, lookupflag, in tcp_input_with_port()
881 ip->ip_dst, th->th_dport, lookupflag & ~INPLOOKUP_WILDCARD, in tcp_input_with_port()
892 th->th_dport, lookupflag, m->m_pkthdr.rcvif); in tcp_input_with_port()
896 th->th_sport, ip->ip_dst, th->th_dport, lookupflag, in tcp_input_with_port()
1060 inc.inc_lport = th->th_dport; in tcp_input_with_port()
1298 if (th->th_dport == th->th_sport && in tcp_input_with_port()
1321 if (th->th_dport == th->th_sport && in tcp_input_with_port()
/freebsd/sbin/ipf/libipf/
H A Dprintpacket6.c55 PRINTF(",%d", ntohs(tcp->th_dport)); in printpacket6()
H A Dprintpacket.c84 PRINTF(",%d", ntohs(tcp->th_dport)); in printpacket()
H A Dipft_tx.c260 tcp->th_dport = htons(tx_portnum(last)); in parseline()
425 tcp->th_dport = htons(tx_portnum(last)); in parseipv6()
/freebsd/contrib/tcpdump/
H A Dtcp.h42 nd_uint16_t th_dport; /* destination port */ member
/freebsd/tools/tools/netmap/
H A Dpkt_hash.c169 ntohs(tcph->th_dport) + seed); in decode_ip_n_hash()
240 ntohs(tcph->th_dport) + seed); in decode_ipv6_n_hash()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_raudio_pxy.c285 tcp2->th_dport = htons(dp); in ipf_p_raudio_in()
308 tcp2->th_dport = 0; /* XXX - don't specify remote port */ in ipf_p_raudio_in()
H A Dip_nat6.c897 ((tcphdr_t *)fin->fin_dp)->th_dport = nport; in ipf_nat6_newrdr()
1471 fin->fin_data[0] = ntohs(tcp->th_dport); in ipf_nat6_icmperrorlookup()
1732 sum2 = ntohs(tcp->th_dport); in ipf_nat6_icmperror()
1735 tcp->th_dport = htons(sum3); in ipf_nat6_icmperror()
1738 sum2 = ntohs(tcp->th_dport); in ipf_nat6_icmperror()
1742 tcp->th_dport = htons(sum3); in ipf_nat6_icmperror()
2881 tcp->th_dport = nat->nat_ndport; in ipf_nat6_out()
2888 tcp->th_dport = nat->nat_osport; in ipf_nat6_out()
3300 tcp->th_dport = nat->nat_ndport; in ipf_nat6_in()
3307 tcp->th_dport = nat->nat_osport; in ipf_nat6_in()
/freebsd/sys/dev/ixgbe/
H A Dif_fdir.c115 common.port.src ^= th->th_dport; in ixgbe_atr()
/freebsd/sys/netpfil/ipfw/
H A Ddn_sched_fq_codel.c239 *((uint16_t *) &tuple[37]) = th->th_dport; in fq_codel_classify_flow()
266 *((uint16_t *) &tuple[13]) = th->th_dport; in fq_codel_classify_flow()
/freebsd/cddl/lib/libdtrace/
H A Dtcp.d265 tcp_dport = p == NULL ? 0 : ntohs(p->th_dport);
284 tcp_dport = p == NULL ? 0 : ntohs(p->th_dport);
/freebsd/usr.sbin/traceroute6/
H A Dtraceroute6.c1212 tcp->th_dport = htons(port + seq); in send_probe()
1213 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport; in send_probe()
1455 tcp->th_dport == htons(port + seq) && in packet_ok()
1457 (tcp_seq)((tcp->th_sport << 16) | tcp->th_dport)) in packet_ok()
/freebsd/usr.sbin/ppp/
H A Dip.c373 dport = ntohs(th->th_dport); in FilterCheck()
819 ntohs(th->th_dport))) in PacketCheck()
830 "%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(th->th_dport)); in PacketCheck()
/freebsd/usr.sbin/traceroute/
H A Dtraceroute.c1496 tcp->th_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in tcp_prep()
1497 tcp->th_seq = (tcp->th_sport << 16) | tcp->th_dport; in tcp_prep()
1513 && ntohs(tcp->th_dport) == port + (fixedPort ? 0 : seq) 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.c347 th->th_dport, in rss_mbuf_software_hash_v6()

123