| /src/sys/net/ |
| rss_config.c | 121 /* th_sport and th_dport in tcphdr must be sequential */ 122 &th->th_sport, sizeof(th->th_sport) * 2, 128 m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport), 219 /* th_sport and th_dport in tcphdr must be sequential */ 220 &th->th_sport, sizeof(th->th_sport) * 2, 226 m_copydata(__UNCONST(m), hlen + offsetof(struct tcphdr, th_sport),
|
| /src/sys/net/npf/ |
| npf_alg_icmp.c | 275 l4.th.th_sport = enpc.npc_l4.tcp->th_dport; 276 l4.th.th_dport = enpc.npc_l4.tcp->th_sport; 369 old_port = th->th_sport;
|
| npf_sendpkt.c | 168 th->th_sport = oth->th_dport; 169 th->th_dport = oth->th_sport;
|
| npf_socket.c | 136 sport = tcp->th_sport; 199 sport = tcp->th_sport;
|
| npf_inet.c | 732 oport = (which == NPF_SRC) ? &th->th_sport : &th->th_dport; 781 oport = (which == NPF_SRC) ? th->th_sport : th->th_dport;
|
| npf_connkey.c | 250 id[NPF_SRC] = th->th_sport;
|
| /src/sys/netinet/ |
| tcp.h | 49 uint16_t th_sport; /* source port */ member in struct:tcphdr
|
| tcp_subr.c | 577 n->th_sport = inp->inp_lport; 764 xchg(th->th_dport, th->th_sport, u_int16_t); 1341 th.th_sport, 0, 0)) 1361 (const struct sockaddr *)sa6_src, th.th_sport, cmd, NULL, notify); 1424 th->th_dport, ip->ip_src, th->th_sport, 0)) != NULL) 1428 th->th_dport, &src6, th->th_sport, 0, 0)) != NULL) 1489 th->th_dport, ip->ip_src, th->th_sport, errno, notify); 1498 sin.sin_port = th->th_sport;
|
| tcp_input.c | 848 src, ntohs(th->th_sport)); 868 src, ntohs(th->th_sport)); 1381 inp = inpcb_lookup(&tcbtable, ip->ip_src, th->th_sport, 1396 th->th_sport, &d, th->th_dport, 0, &vestige); 1431 th->th_sport, &ip6->ip6_dst, th->th_dport, faith, &vestige); 1549 src.sin.sin_port = th->th_sport; 1561 src.sin6.sin6_port = th->th_sport; 1681 if (th->th_sport == th->th_dport) {
|
| tcp_var.h | 180 #define ti_sport ti_t.th_sport
|
| tcp_syncache.c | 1146 th->th_sport = sc->sc_dst.sin.sin_port; 1158 th->th_sport = sc->sc_dst.sin6.sin6_port;
|
| /src/sys/dev/pci/ixgbe/ |
| if_fdir.c | 120 common.port.dst ^= th->th_sport;
|
| /src/sys/external/bsd/ipf/netinet/ |
| ip_raudio_pxy.c | 296 tcp2->th_sport = htons(sp); 319 tcp2->th_sport = htons(sp);
|
| ip_irc_pxy.c | 404 tcp2->th_sport = sp;
|
| ip_rcmd_pxy.c | 83 aps->aps_sport = tcp->th_sport;
|
| ip_nat6.c | 703 ((tcphdr_t *)fin->fin_dp)->th_sport = port; 1480 fin->fin_data[1] = ntohs(tcp->th_sport); 1736 sum4 = ntohs(tcp->th_sport); 1740 tcp->th_sport = htons(sum1); 1746 sum4 = ntohs(tcp->th_sport); 1749 tcp->th_sport = htons(sum1); 2877 tcp->th_sport = nat->nat_nsport; 2884 tcp->th_sport = nat->nat_odport; 3303 tcp->th_sport = nat->nat_nsport; 3310 tcp->th_sport = nat->nat_odport [all...] |
| ip_nat.c | 2827 ((tcphdr_t *)fin->fin_dp)->th_sport = port; 3682 fin->fin_data[1] = ntohs(tcp->th_sport); 3891 sum4 = ntohs(tcp->th_sport); 3895 tcp->th_sport = htons(sum1); 3901 sum4 = ntohs(tcp->th_sport); 3904 tcp->th_sport = htons(sum1); 5179 tcp->th_sport = nat->nat_nsport; 5186 tcp->th_sport = nat->nat_odport; 5655 tcp->th_sport = nat->nat_nsport; 5662 tcp->th_sport = nat->nat_odport [all...] |
| ip_fil_netbsd.c | 787 tcp2->th_sport = tcp->th_dport; 788 tcp2->th_dport = tcp->th_sport;
|
| /src/sys/dev/pci/cxgb/ |
| cxgb_lro.c | 86 return (th->th_sport == sth->th_sport &&
|
| /src/usr.sbin/npf/npftest/libnpftest/ |
| npf_mbuf_subr.c | 293 th->th_sport = htons(sport);
|
| /src/sys/dist/pf/net/ |
| pf.c | 1773 th->th_sport = sport; 2773 sport = pd->hdr.tcp->th_sport; 3102 sport = th->th_sport; 3156 pf_change_ap(saddr, &th->th_sport, pd->ip_sum, 3158 sport = th->th_sport; 3368 pf_change_ap(saddr, &th->th_sport, 3371 sport = th->th_sport; 3458 pd->src, th->th_dport, th->th_sport, 3705 pf_change_ap(saddr, &th->th_sport, 3708 sport = th->th_sport; [all...] |
| pf_osfp.c | 252 srcname, ntohs(tcp->th_sport),
|
| /src/usr.sbin/trpt/ |
| trpt.c | 440 hbuf, ntohs(th->th_sport));
|
| /src/usr.sbin/npf/npfctl/ |
| npf_bpf_comp.c | 743 assert(sport_off == offsetof(struct tcphdr, th_sport));
|
| /src/sys/netipsec/ |
| ipsec.c | 906 spidx->src.sin.sin_port = th.th_sport; 1012 ((struct sockaddr_in6 *)&spidx->src)->sin6_port = th.th_sport;
|