Home
last modified time | relevance | path

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

12

/xnu-12377.1.9/bsd/skywalk/nexus/flowswitch/flow/
H A Dflow_classifier.c140 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 Dflow_track.c830 th->th_sport = in_pkt->pkt_flow_tcp_dst; in flow_track_abort_tcp()
845 th->th_sport = rst_pkt->pkt_flow_tcp_src; in flow_track_abort_tcp()
851 th->th_sport = fe->fe_key.fk_sport; in flow_track_abort_tcp()
H A Dflow_agg.c141 .th_sport = 0xffff,
192 .th_sport = 0xffff,
/xnu-12377.1.9/tests/
H A Dicmp_fragmented_payload.c158 (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-12377.1.9/bsd/netinet/
H A Dtcp_syncookie.c517 SipHash_Update(&ctx, &tpi->th->th_sport, sizeof(tpi->th->th_sport)); in syncookie_siphash()
547 cchmac_update(di, ctx, sizeof(tpi->th->th_sport), &tpi->th->th_sport); in syncookie_hmac_sha256()
H A Dtcpip.h91 #define ti_sport ti_t.th_sport
H A Dtcp_log.c794 local_port = th->th_sport; in tcp_log_drop_pcb()
799 foreign_port = th->th_sport; in tcp_log_drop_pcb()
902 local_port = th->th_sport; in tcp_log_th_flags()
906 foreign_port = th->th_sport; in tcp_log_th_flags()
966 foreign_port = th->th_sport; in tcp_log_drop_pkt()
H A Dtcp.h94 unsigned short th_sport; /* source port */ member
H A Dtcp_input.c2279 sin6->sin6_port = th->th_sport; in tcp_create_server_socket()
2297 sin->sin_port = th->th_sport; in tcp_create_server_socket()
2585 sin6->sin6_port = tpi->th->th_sport; in tcp_setup_server_socket()
2616 sin->sin_port = tpi->th->th_sport; in tcp_setup_server_socket()
2847 KERNEL_DEBUG(DBG_LAYER_BEG, ((th->th_dport << 16) | th->th_sport), in tcp_input()
2906 KERNEL_DEBUG(DBG_LAYER_BEG, ((th->th_dport << 16) | th->th_sport), in tcp_input()
3026 inp = in6_pcblookup_hash(&tcbinfo, &ip6->ip6_src, th->th_sport, ip6_input_getsrcifscope(m), in tcp_input()
3030 inp = in_pcblookup_hash(&tcbinfo, ip->ip_src, th->th_sport, in tcp_input()
3068 ntohs(th->th_sport)); in tcp_input()
3075 ntohs(th->th_sport), thflags); in tcp_input()
[all …]
H A Dtcp_subr.c745 tcp_hdr->th_sport = SIN(local)->sin_port; in tcp_fillheaders()
747 tcp_hdr->th_sport = inp->inp_lport; in tcp_fillheaders()
942 nth->th_sport = th->th_sport; in tcp_respond()
945 xchg(nth->th_dport, nth->th_sport, n_short); in tcp_respond()
2650 ip->ip_src, th->th_sport, 0, NULL); in tcp_ctlinput()
2666 th->th_sport, th->th_dport, IPPROTO_TCP, in tcp_ctlinput()
2713 uint16_t th_sport; in tcp6_ctlinput() member
2812 &ip6->ip6_src, t_ports.th_sport, ip6_input_getsrcifscope(m), 0, NULL); in tcp6_ctlinput()
2828 t_ports.th_sport, t_ports.th_dport, IPPROTO_TCP, in tcp6_ctlinput()
H A Dip_compat.h535 __u16 th_sport;
/xnu-12377.1.9/bsd/dev/dtrace/scripts/
H A Dtcp.d131 tcp_sport = ntohs(T->th_sport);
/xnu-12377.1.9/bsd/net/
H A Dpf.c2777 th->th_sport = sport; in pf_send_tcp()
4155 sport = pf_pd_get_hdr_tcp(pd)->th_sport; in pf_socket_lookup()
4511 MD5Update(&ctx, (char *)&pf_pd_get_hdr_tcp(pd)->th_sport, sizeof(u_short)); in pf_tcp_iss()
4973 sxport.port = th->th_sport; in pf_test_rule()
5059 &th->th_sport, pd->ip_sum, &th->th_sum, in pf_test_rule()
5062 sxport.port = th->th_sport; in pf_test_rule()
5290 th->th_sport)) { in pf_test_rule()
5412 &th->th_sport, pd->ip_sum, in pf_test_rule()
5415 sxport.port = th->th_sport; in pf_test_rule()
5579 pd->src, th->th_dport, th->th_sport, in pf_test_rule()
[all …]
H A Dif_ports_used.c1893 npi.npi_foreign_port = th.th_sport; in if_ports_used_match_mbuf()
2032 npi.npi_foreign_port = th.th_sport; in if_ports_used_match_mbuf()
2295 npi.npi_foreign_port = tcp->th_sport; in if_ports_used_match_pkt()
2703 ntohs(th.th_sport) != mark_wake_packet_remote_port) { in check_wake_mbuf()
2756 ntohs(th->th_sport) != mark_wake_packet_remote_port) { in check_wake_pkt()
H A Dpf_osfp.c222 srcname, ntohs(tcp->th_sport), in pf_osfp_fingerprint_hdr()
H A Dpktap.c1007 fport = th.th_sport; in pktap_fill_proc_info()
1073 fport = th.th_sport; in pktap_fill_proc_info()
H A Dpacket_mangler.c877 if (p_pkt_mnglr->rport && (p_pkt_mnglr->rport != tcp.th_sport)) { in pktmnglr_ipfilter_input()
H A Dpf_norm.c2611 sxport.port = th->th_sport; in pf_normalize_tcp()
H A Dbpf.c3751 sport = EXTRACT_SHORT(&tcphdr.th_sport); in get_tcp_trunc_len()
/xnu-12377.1.9/bsd/skywalk/nexus/
H A Dnexus_traffic_rule_inet.c286 bcopy(__DECONST(void *, &tcph->th_sport), &td->inet_lport, in fill_inet_td()
/xnu-12377.1.9/bsd/netinet6/
H A Desp_output.c918 ntohs(th.th_sport), ntohs(th.th_dport), in esp_output()
H A Desp_input.c202 ntohs(th.th_sport), ntohs(th.th_dport), in esp_input_log()
H A Dipsec.c1247 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-12377.1.9/tests/skywalk/
H A Dskt_xfer.c491 ntohs(ip_tcp->tcp.th_sport), in ip_frame_dump()
556 ip_tcp->tcp.th_sport = htons(src_port); in tcp_frame_populate()
H A Dskywalk_test_utils.c2471 tcp->th_sport = htons(sport); in sktu_create_tcp_frames()

12