| /xnu-11215.81.4/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_classifier.c | 140 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify() 144 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify() 148 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify() 152 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify() 156 offsetof(struct tcphdr, th_sport))); in flow_pkt_classify() 367 if (__probable(IS_P2ALIGNED(&tcph->th_sport, 4))) { in flow_pkt_classify() 373 __DECONST(uint32_t *, &tcph->th_sport), in flow_pkt_classify()
|
| H A D | flow_track.c | 825 th->th_sport = in_pkt->pkt_flow_tcp_dst; in flow_track_abort_tcp() 840 th->th_sport = rst_pkt->pkt_flow_tcp_src; in flow_track_abort_tcp() 846 th->th_sport = fe->fe_key.fk_sport; in flow_track_abort_tcp()
|
| H A D | flow_agg.c | 141 .th_sport = 0xffff, 192 .th_sport = 0xffff,
|
| /xnu-11215.81.4/tests/ |
| H A D | icmp_fragmented_payload.c | 158 (uint16_t)(pcb->inner_tcp_hdr == NULL ? -1 : pcb->inner_tcp_hdr->th_sport), in icmp4_pcb_print() 159 (uint16_t)(pcb->inner_tcp_hdr == NULL ? -1 : ntohs(pcb->inner_tcp_hdr->th_sport)), in icmp4_pcb_print() 240 pcb->inner_tcp_hdr->th_sport = htons(tcp_in->th_sport); in icmp4_pcb_set_payload() 346 .th_sport = 1234,
|
| /xnu-11215.81.4/bsd/netinet/ |
| H A D | tcpip.h | 91 #define ti_sport ti_t.th_sport
|
| H A D | tcp_log.c | 790 local_port = th->th_sport; in tcp_log_drop_pcb() 795 foreign_port = th->th_sport; in tcp_log_drop_pcb() 898 local_port = th->th_sport; in tcp_log_th_flags() 902 foreign_port = th->th_sport; in tcp_log_th_flags() 962 foreign_port = th->th_sport; in tcp_log_drop_pkt()
|
| H A D | tcp.h | 94 unsigned short th_sport; /* source port */ member
|
| H A D | tcp_input.c | 2112 KERNEL_DEBUG(DBG_LAYER_BEG, ((th->th_dport << 16) | th->th_sport), in tcp_input() 2169 KERNEL_DEBUG(DBG_LAYER_BEG, ((th->th_dport << 16) | th->th_sport), in tcp_input() 2286 inp = in6_pcblookup_hash(&tcbinfo, &ip6->ip6_src, th->th_sport, ip6_input_getsrcifscope(m), in tcp_input() 2290 inp = in_pcblookup_hash(&tcbinfo, ip->ip_src, th->th_sport, in tcp_input() 2328 ntohs(th->th_sport)); in tcp_input() 2335 ntohs(th->th_sport), thflags); in tcp_input() 2347 ntohs(th->th_sport))); in tcp_input() 2402 inp->inp_fport != th->th_sport || in tcp_input() 2406 ntohs(inp->inp_fport), ntohs(th->th_sport), in tcp_input() 2419 inp->inp_fport != th->th_sport || in tcp_input() [all …]
|
| H A D | tcp_subr.c | 708 tcp_hdr->th_sport = inp->inp_lport; in tcp_fillheaders() 859 nth->th_sport = th->th_sport; in tcp_respond() 862 xchg(nth->th_dport, nth->th_sport, n_short); in tcp_respond() 2509 ip->ip_src, th->th_sport, 0, NULL); in tcp_ctlinput() 2525 th->th_sport, th->th_dport, IPPROTO_TCP, in tcp_ctlinput() 2572 uint16_t th_sport; in tcp6_ctlinput() member 2671 &ip6->ip6_src, t_ports.th_sport, ip6_input_getsrcifscope(m), 0, NULL); in tcp6_ctlinput() 2687 t_ports.th_sport, t_ports.th_dport, IPPROTO_TCP, in tcp6_ctlinput()
|
| H A D | ip_compat.h | 535 __u16 th_sport;
|
| /xnu-11215.81.4/bsd/dev/dtrace/scripts/ |
| H A D | tcp.d | 131 tcp_sport = ntohs(T->th_sport);
|
| /xnu-11215.81.4/bsd/net/ |
| H A D | pf.c | 2774 th->th_sport = sport; in pf_send_tcp() 4152 sport = pf_pd_get_hdr_tcp(pd)->th_sport; in pf_socket_lookup() 4508 MD5Update(&ctx, (char *)&pf_pd_get_hdr_tcp(pd)->th_sport, sizeof(u_short)); in pf_tcp_iss() 4970 sxport.port = th->th_sport; in pf_test_rule() 5056 &th->th_sport, pd->ip_sum, &th->th_sum, in pf_test_rule() 5059 sxport.port = th->th_sport; in pf_test_rule() 5287 th->th_sport)) { in pf_test_rule() 5409 &th->th_sport, pd->ip_sum, in pf_test_rule() 5412 sxport.port = th->th_sport; in pf_test_rule() 5576 pd->src, th->th_dport, th->th_sport, in pf_test_rule() [all …]
|
| H A D | if_ports_used.c | 1558 npi.npi_foreign_port = th.th_sport; in if_ports_used_match_mbuf() 1697 npi.npi_foreign_port = th.th_sport; in if_ports_used_match_mbuf() 1953 npi.npi_foreign_port = tcp->th_sport; in if_ports_used_match_pkt()
|
| H A D | pf_osfp.c | 222 srcname, ntohs(tcp->th_sport), in pf_osfp_fingerprint_hdr()
|
| H A D | pktap.c | 1007 fport = th.th_sport; in pktap_fill_proc_info() 1072 fport = th.th_sport; in pktap_fill_proc_info()
|
| H A D | packet_mangler.c | 877 if (p_pkt_mnglr->rport && (p_pkt_mnglr->rport != tcp.th_sport)) { in pktmnglr_ipfilter_input()
|
| H A D | pf_norm.c | 2608 sxport.port = th->th_sport; in pf_normalize_tcp()
|
| H A D | bpf.c | 3748 sport = EXTRACT_SHORT(&tcphdr.th_sport); in get_tcp_trunc_len()
|
| H A D | necp.c | 11335 SIN(&local_addr)->sin_port = th.th_sport; in necp_ip_output_find_policy_match() 11507 SIN6(&local_addr)->sin6_port = th.th_sport; in necp_ip6_output_find_policy_match()
|
| /xnu-11215.81.4/bsd/netinet6/ |
| H A D | esp_output.c | 918 ntohs(th.th_sport), ntohs(th.th_dport), in esp_output()
|
| H A D | esp_input.c | 202 ntohs(th.th_sport), ntohs(th.th_dport), in esp_input_log()
|
| H A D | ipsec.c | 1247 SIN(&spidx->src)->sin_port = th.th_sport; in ipsec4_get_ulp() 1350 SIN6(&spidx->src)->sin6_port = th.th_sport; in ipsec6_get_ulp()
|
| /xnu-11215.81.4/bsd/skywalk/nexus/ |
| H A D | nexus_traffic_rule.c | 468 bcopy(__DECONST(void *, &tcph->th_sport), &td->inet_lport, in fill_inet_td()
|
| /xnu-11215.81.4/tests/skywalk/ |
| H A D | skt_xfer.c | 490 ntohs(ip_tcp->tcp.th_sport), in ip_frame_dump() 555 ip_tcp->tcp.th_sport = htons(src_port); in tcp_frame_populate()
|
| H A D | skywalk_test_utils.c | 2492 tcp->th_sport = htons(sport); in sktu_create_tcp_frames()
|