| /f-stack/freebsd/netinet/tcp_stacks/ |
| H A D | rack_bbr_common.c | 251 struct tcphdr *th; in ctf_process_inbound_raw() local 316 th->th_sum ^= 0xffff; in ctf_process_inbound_raw() 319 if (th->th_sum) { in ctf_process_inbound_raw() 384 if (th->th_sum) { in ctf_process_inbound_raw() 398 off = th->th_off << 2; in ctf_process_inbound_raw() 524 th->th_seq++; in ctf_drop_checks() 525 if (th->th_urp > 1) in ctf_drop_checks() 526 th->th_urp--; in ctf_drop_checks() 567 th->th_seq += todrop; in ctf_drop_checks() 570 th->th_urp -= todrop; in ctf_drop_checks() [all …]
|
| H A D | rack_bbr_common.h | 102 struct tcphdr *th, struct tcpcb *tp, int32_t * tlenp, int32_t * thf, 106 struct tcphdr *th, int32_t thflags, int32_t tlen, int32_t * ret_val); 109 struct tcphdr *th, int32_t rstreason, int32_t tlen); 114 ctf_process_rst(struct mbuf *m, struct tcphdr *th, 118 ctf_challenge_ack(struct mbuf *m, struct tcphdr *th, 122 ctf_ts_check(struct mbuf *m, struct tcphdr *th, 129 ctf_do_dropwithreset_conn(struct mbuf *m, struct tcpcb *tp, struct tcphdr *th,
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_input.c | 300 hhook_data.th = th; in hhook_run_tcp_est_in() 494 if (th != NULL) in cc_cong_signal() 842 &ip6->ip6_src, th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input() 858 th->th_sport, &ip6->ip6_dst, th->th_dport, in tcp_input() 892 th->th_sport, ip->ip_dst, th->th_dport, in tcp_input() 1289 if (th->th_dport == th->th_sport && in tcp_input() 1312 if (th->th_dport == th->th_sport && in tcp_input() 2098 th->th_seq++; in tcp_do_segment() 3060 if (SEQ_GT(th->th_seq+th->th_urp, tp->rcv_up)) { in tcp_do_segment() 3061 tp->rcv_up = th->th_seq + th->th_urp; in tcp_do_segment() [all …]
|
| H A D | tcp_lro.c | 233 return (th); in tcp_lro_get_th() 273 l = th->th_off; in tcp_lro_csum_th() 274 p = (uint16_t *)th; in tcp_lro_csum_th() 554 th->th_sum = ~th->th_sum; in tcp_flush_out_le() 578 struct tcphdr *th; in tcp_set_le_to_m() local 622 l -= sizeof(*th); in tcp_set_le_to_m() 643 csum = th->th_sum; in tcp_set_le_to_m() 688 struct tcphdr *th; in tcp_lro_condense() local 709 l -= sizeof(*th); in tcp_lro_condense() 1232 l -= sizeof(*th); in tcp_lro_rx2() [all …]
|
| H A D | tcp_reass.c | 372 first->tqe_start = th->th_seq; in tcp_reass_prepend() 553 if (th == NULL) in tcp_reass() 557 th, tp)); in tcp_reass() 644 th->th_seq += i; in tcp_reass() 744 th->th_seq += i; in tcp_reass() 855 th->th_seq += i; in tcp_reass() 904 tcp_reass_replace(tp, q, m, th->th_seq, *tlenp, mlast, lenofoh, th->th_flags); in tcp_reass() 1031 te->tqe_start = th->th_seq; in tcp_reass() 1070 if (th != NULL) { in tcp_reass() 1079 if (th != NULL) { in tcp_reass() [all …]
|
| H A D | tcp_debug.c | 100 struct tcphdr *th, int req) in tcp_trace() argument 144 if (th != NULL) { in tcp_trace() 148 td->td_ti.ti_t = *th; in tcp_trace() 153 td->td_ti6.th = *th; in tcp_trace() 172 if (ipgen == NULL || th == NULL) in tcp_trace() 174 seq = th->th_seq; in tcp_trace() 175 ack = th->th_ack; in tcp_trace() 191 printf("@%x, urp=%x", ack, th->th_urp); in tcp_trace() 192 flags = th->th_flags; in tcp_trace() 196 if (th->th_flags & TH_##f) { \ in tcp_trace()
|
| H A D | tcp_timewait.c | 400 thflags = th->th_flags; in tcp_twcheck() 475 th->th_seq != tw->rcv_nxt || th->th_ack != tw->snd_nxt) { in tcp_twcheck() 552 struct tcphdr *th = NULL; in tcp_twrespond() local 582 th = (struct tcphdr *)(ip6 + 1); in tcp_twrespond() 583 tcpip_fillheaders(inp, ip6, th); in tcp_twrespond() 593 th = (struct tcphdr *)(ip + 1); in tcp_twrespond() 594 tcpip_fillheaders(inp, ip, th); in tcp_twrespond() 615 th->th_seq = htonl(tw->snd_nxt); in tcp_twrespond() 616 th->th_ack = htonl(tw->rcv_nxt); in tcp_twrespond() 618 th->th_flags = flags; in tcp_twrespond() [all …]
|
| H A D | tcp_syncache.c | 777 struct tcphdr *th = NULL; in syncache_get_toa() local 800 ptr = (u_char *)(th + 1); in syncache_get_toa() 1718 sc->sc_irs = th->th_seq; in syncache_add() 1867 struct tcphdr *th = NULL; in syncache_respond() local 1960 th->th_x2 = 0; in syncache_respond() 1961 th->th_flags = flags; in syncache_respond() 1962 th->th_win = htons(sc->sc_wnd); in syncache_respond() 1963 th->th_urp = 0; in syncache_respond() 1966 th->th_flags |= TH_ECE; in syncache_respond() 2307 ack = th->th_ack - 1; in syncookie_lookup() [all …]
|
| H A D | tcp_pcap.c | 159 tcp_pcap_copy_bestfit(struct tcphdr *th, struct mbuf *m, struct mbuf *n) in tcp_pcap_copy_bestfit() argument 165 KASSERT(th, ("%s: called with th == NULL", __func__)); in tcp_pcap_copy_bestfit() 179 tcp_off = th->th_off << 2; in tcp_pcap_copy_bestfit() 199 bcopy(th, n->m_data, bytes_to_copy); in tcp_pcap_copy_bestfit() 209 if ((caddr_t) th >= (caddr_t) m_cur->m_data && in tcp_pcap_copy_bestfit() 210 (caddr_t) th < (caddr_t) (m_cur->m_data + m_cur->m_len)) in tcp_pcap_copy_bestfit() 216 bytes_to_copy += (caddr_t) th - (caddr_t) m_cur->m_data; in tcp_pcap_copy_bestfit() 247 trailing_data -= (caddr_t) th - (caddr_t) m_cur->m_data; in tcp_pcap_copy_bestfit() 264 tcp_pcap_add(struct tcphdr *th, struct mbuf *m, struct mbufq *queue) in tcp_pcap_add() argument 268 KASSERT(th, ("%s: called with th == NULL", __func__)); in tcp_pcap_add() [all …]
|
| H A D | tcp_var.h | 422 #define BYTES_THIS_ACK(tp, th) (th->th_ack - tp->snd_una) argument 725 struct tcphdr *th; member 1079 th->th_seq = ntohl(th->th_seq); in tcp_fields_to_host() 1080 th->th_ack = ntohl(th->th_ack); in tcp_fields_to_host() 1081 th->th_win = ntohs(th->th_win); in tcp_fields_to_host() 1082 th->th_urp = ntohs(th->th_urp); in tcp_fields_to_host() 1086 tcp_fields_to_net(struct tcphdr *th) in tcp_fields_to_net() argument 1089 th->th_seq = htonl(th->th_seq); in tcp_fields_to_net() 1090 th->th_ack = htonl(th->th_ack); in tcp_fields_to_net() 1091 th->th_win = htons(th->th_win); in tcp_fields_to_net() [all …]
|
| H A D | tcp_log_buf.h | 301 #define TCP_LOG_EVENT_VERBOSE(tp, th, rxbuf, txbuf, eventid, errornum, len, stackinfo, th_hostorder… argument 304 tcp_log_event_(tp, th, rxbuf, txbuf, eventid, \ 330 #define TCP_LOG_EVENT(tp, th, rxbuf, txbuf, eventid, errornum, len, stackinfo, th_hostorder) \ argument 333 TCP_LOG_EVENT_VERBOSE(tp, th, rxbuf, txbuf, \ 337 tcp_log_event_(tp, th, rxbuf, txbuf, eventid, \ 342 #define TCP_LOG_EVENTP(tp, th, rxbuf, txbuf, eventid, errornum, len, stackinfo, th_hostorder, tv) \ argument 345 tcp_log_event_(tp, th, rxbuf, txbuf, eventid, \ 355 struct tcp_log_buffer *tcp_log_event_(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf, 374 tcp_log_event_(struct tcpcb *tp, struct tcphdr *th, struct sockbuf *rxbuf, in tcp_log_event_() argument
|
| H A D | tcp_output.c | 168 hhook_data.th = th; in hhook_run_tcp_est_out() 208 struct tcphdr *th; in tcp_output() local 1143 th = (struct tcphdr *)(ip6 + 1); in tcp_output() 1152 th = (struct tcphdr *)(ip + 1); in tcp_output() 1235 th->th_seq = htonl(p->rxmit); in tcp_output() 1247 th->th_ack = htonl(tp->rcv_nxt); in tcp_output() 1249 bcopy(opt, th + 1, optlen); in tcp_output() 1252 th->th_flags = flags; in tcp_output() 1274 th->th_win = htons((u_short) in tcp_output() 1290 if (th->th_win == 0) { in tcp_output() [all …]
|
| /f-stack/freebsd/net/ |
| H A D | slcompress.c | 160 struct tcphdr *th; in sl_compress_tcp() local 224 hlen += th->th_off; in sl_compress_tcp() 256 hlen += th->th_off; in sl_compress_tcp() 268 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2))) in sl_compress_tcp() 458 struct tcphdr *th; in sl_uncompress_tcp_core() local 530 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp_core() 531 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp_core() 536 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp_core() 543 DECODEU(th->th_urp) in sl_uncompress_tcp_core() 547 DECODES(th->th_win) in sl_uncompress_tcp_core() [all …]
|
| /f-stack/freebsd/kern/ |
| H A D | kern_tc.c | 222 th = timehands; in bintime_off() 254 th = timehands; in getthmember() 885 th = timehands; in ffclock_read_counter() 1332 th->th_offset_count &= th->th_counter->tc_counter_mask; in tc_windup() 1343 bintime_addx(&th->th_offset, th->th_scale * delta); in tc_windup() 1451 timehands = th; in tc_windup() 1714 th = timehands; in pps_capture() 2142 th = timehands; in tc_fill_vdso_timehands() 2165 th = timehands; in tc_fill_vdso_timehands32() 2206 (uintmax_t)th->th_adjustment, (uintmax_t)th->th_scale, in DB_SHOW_COMMAND() [all …]
|
| H A D | kern_sharedpage.c | 148 struct vdso_timehands th; in timehands_update() local 152 enabled = tc_fill_vdso_timehands(&th); in timehands_update() 153 th.th_gen = 0; in timehands_update() 166 tk->tk_th[idx] = th; in timehands_update() 181 struct vdso_timehands32 th; in timehands_update32() local 185 enabled = tc_fill_vdso_timehands32(&th); in timehands_update32() 186 th.th_gen = 0; in timehands_update32() 199 tk->tk_th[idx] = th; in timehands_update32()
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_radiotap.c | 66 struct ieee80211_radiotap_header *th, in ieee80211_radiotap_attachv() argument 75 th->it_present = htole32(tx_radiotap); in ieee80211_radiotap_attachv() 76 ic->ic_th = th; in ieee80211_radiotap_attachv() 88 ic->ic_txchan = ((uint8_t *) th) + off; in ieee80211_radiotap_attachv() 117 struct ieee80211_radiotap_header *th = ic->ic_th; in ieee80211_radiotap_vattach() local 119 if (th != NULL && ic->ic_rh != NULL) { in ieee80211_radiotap_vattach() 212 struct ieee80211_radiotap_header *th = ic->ic_th; in ieee80211_radiotap_tx() local 215 KASSERT(th != NULL, ("no tx radiotap header")); in ieee80211_radiotap_tx() 216 len = le16toh(th->it_len); in ieee80211_radiotap_tx() 219 bpf_mtap2(vap0->iv_rawbpf, th, len, m); in ieee80211_radiotap_tx() [all …]
|
| /f-stack/freebsd/netipsec/ |
| H A D | xform_tcp.c | 173 tcp_signature_compute(struct mbuf *m, struct tcphdr *th, in tcp_signature_compute() argument 200 csum = th->th_sum; in tcp_signature_compute() 201 th->th_sum = 0; in tcp_signature_compute() 202 MD5Update(&ctx, (char *)th, sizeof(struct tcphdr)); in tcp_signature_compute() 203 th->th_sum = csum; in tcp_signature_compute() 208 len += (th->th_off << 2); in tcp_signature_compute() 257 tcp_ipsec_input(struct mbuf *m, struct tcphdr *th, u_char *buf) in tcp_ipsec_input() argument 276 tcp_fields_to_net(th); in tcp_ipsec_input() 277 tcp_signature_compute(m, th, sav, tmpdigest); in tcp_ipsec_input() 278 tcp_fields_to_host(th); in tcp_ipsec_input() [all …]
|
| H A D | ipsec.c | 519 struct tcphdr th; in ipsec4_get_ulp() local 529 m_copydata(m, off, sizeof (th), (caddr_t) &th); in ipsec4_get_ulp() 680 struct tcphdr th; in ipsec6_get_ulp() local 705 m_copydata(m, off, sizeof(th), (caddr_t)&th); in ipsec6_get_ulp() 1282 *seqhigh = th; in ipsec_chkreplay() 1321 if (th == 0) in ipsec_chkreplay() 1324 seqh = th - 1; in ipsec_chkreplay() 1335 seqh = th + 1; in ipsec_chkreplay() 1397 seqh = th; in ipsec_updatereplay() 1424 if (th == 0) in ipsec_updatereplay() [all …]
|
| /f-stack/tools/compat/include/netinet/ |
| H A D | tcp_var.h | 422 #define BYTES_THIS_ACK(tp, th) (th->th_ack - tp->snd_una) argument 725 struct tcphdr *th; member 1079 th->th_seq = ntohl(th->th_seq); in tcp_fields_to_host() 1080 th->th_ack = ntohl(th->th_ack); in tcp_fields_to_host() 1081 th->th_win = ntohs(th->th_win); in tcp_fields_to_host() 1082 th->th_urp = ntohs(th->th_urp); in tcp_fields_to_host() 1086 tcp_fields_to_net(struct tcphdr *th) in tcp_fields_to_net() argument 1089 th->th_seq = htonl(th->th_seq); in tcp_fields_to_net() 1090 th->th_ack = htonl(th->th_ack); in tcp_fields_to_net() 1091 th->th_win = htons(th->th_win); in tcp_fields_to_net() [all …]
|
| /f-stack/freebsd/netpfil/pf/ |
| H A D | pf.c | 2463 th = NULL; in pf_send_tcp() 2662 pd->src, th->th_dport, th->th_sport, in pf_return() 3770 pf_change_proto_a(m, &th->th_seq, &th->th_sum, in pf_create_state() 3917 th->th_sport, s->src.seqhi, ntohl(th->th_seq) + 1, in pf_create_state() 4350 th->th_sport, ntohl(th->th_ack), 0, in pf_tcp_track_full() 4504 pd->src, th->th_dport, th->th_sport, in pf_test_state_tcp() 4548 pd->src, th->th_dport, th->th_sport, in pf_test_state_tcp() 4549 ntohl(th->th_ack), ntohl(th->th_seq) + 1, in pf_test_state_tcp() 4618 m_copyback(m, off, sizeof(*th), (caddr_t)th); in pf_test_state_tcp() 5994 if (!pf_pull_hdr(m, off, &th, sizeof(th), in pf_test() [all …]
|
| H A D | pf_norm.c | 1376 flags = th->th_flags; in pf_normalize_tcp() 1401 if (flags != th->th_flags || th->th_x2 != 0) { in pf_normalize_tcp() 1406 th->th_x2 = 0; in pf_normalize_tcp() 1409 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, ov, nv, 0); in pf_normalize_tcp() 1415 th->th_sum = pf_proto_cksum_fixup(m, th->th_sum, th->th_urp, in pf_normalize_tcp() 1417 th->th_urp = 0; in pf_normalize_tcp() 1427 m_copyback(m, off, sizeof(*th), (caddr_t)th); in pf_normalize_tcp() 1618 &th->th_sum, in pf_normalize_tcp_stateful() 1636 &th->th_sum, in pf_normalize_tcp_stateful() 1964 &th->th_sum, in pf_normalize_tcpopt() [all …]
|
| /f-stack/freebsd/contrib/device-tree/Bindings/gpio/ |
| H A D | gpio-twl4030.txt | 15 - ti,debounce : if n-th bit is set, debounces GPIO-n 16 - ti,mmc-cd : if n-th bit is set, GPIO-n controls VMMC(n+1) 17 - ti,pullups : if n-th bit is set, set a pullup on GPIO-n 18 - ti,pulldowns : if n-th bit is set, set a pulldown on GPIO-n
|
| /f-stack/freebsd/netinet/khelp/ |
| H A D | h_ertt.c | 202 struct tcphdr *th; in ertt_packet_measurement_hook() local 216 th = thdp->th; in ertt_packet_measurement_hook() 220 acked = th->th_ack - tp->snd_una; in ertt_packet_measurement_hook() 230 ack = th->th_ack; in ertt_packet_measurement_hook() 437 struct tcphdr *th; in ertt_add_tx_segment_info_hook() local 450 th = thdp->th; in ertt_add_tx_segment_info_hook() 462 txsi->seq = ntohl(th->th_seq); in ertt_add_tx_segment_info_hook()
|
| /f-stack/dpdk/lib/librte_eal/windows/ |
| H A D | eal_thread.c | 129 HANDLE th; in eal_thread_create() local 131 th = CreateThread(NULL, 0, in eal_thread_create() 134 if (!th) in eal_thread_create() 138 SetThreadPriority(th, THREAD_PRIORITY_TIME_CRITICAL); in eal_thread_create()
|
| /f-stack/dpdk/lib/librte_net/ |
| H A D | rte_net.c | 356 const struct rte_tcp_hdr *th; in rte_net_get_ptype() local 359 th = rte_pktmbuf_read(m, off, sizeof(*th), &th_copy); in rte_net_get_ptype() 360 if (unlikely(th == NULL)) in rte_net_get_ptype() 363 hdr_lens->l4_len = (th->data_off & 0xf0) >> 2; in rte_net_get_ptype() 492 const struct rte_tcp_hdr *th; in rte_net_get_ptype() local 495 th = rte_pktmbuf_read(m, off, sizeof(*th), &th_copy); in rte_net_get_ptype() 496 if (unlikely(th == NULL)) in rte_net_get_ptype() 499 hdr_lens->inner_l4_len = (th->data_off & 0xf0) >> 2; in rte_net_get_ptype()
|