/src/sys/net/ |
rss_config.c | 115 struct tcphdr *th; local in function:rss_toeplitz_hash_from_mbuf_ipv4 117 th = (struct tcphdr *)(mtod(m, char *) + hlen); 122 &th->th_sport, sizeof(th->th_sport) * 2, 213 struct tcphdr *th; local in function:rss_toeplitz_hash_from_mbuf_ipv6 215 th = (struct tcphdr *)(mtod(m, char *) + hlen); 220 &th->th_sport, sizeof(th->th_sport) * 2,
|
ether_sw_offload.c | 166 struct tcphdr *th; local in function:ether_sw_offload_rx 293 KASSERT(len >= sizeof(*th)); 294 if (m->m_len < l4offset + sizeof(*th)) { 295 m = m_pullup(m, l4offset + sizeof(*th)); 299 th = (void *)(mtod(m, char *) + l4offset); 300 osum = th->th_sum; 301 th->th_sum = sum; 314 th->th_sum = osum;
|
slcompress.c | 180 struct tcphdr *th; local in function:sl_compress_tcp 195 th = (struct tcphdr *)&((int32_t *)ip)[hlen]; 196 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK) 208 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) { 228 && *(int32_t *)th == 243 hlen += th->th_off; 265 * check is unnecessary but costless). The 4th line checks the TCP 266 * header length. The 5th line checks IP options, if any. The 6th 273 hlen += th->th_off 477 struct tcphdr *th; local in function:sl_uncompress_tcp_core [all...] |
/src/tests/lib/libpthread/ |
t_kill.c | 75 } th[NTHREAD]; variable in typeref:struct:threadinfo[] 90 if (self == th[i].id) 95 th[i].gotsignal++; 125 PTHREAD_REQUIRE(pthread_create(&th[i].id, NULL, f, &th[i])); 134 PTHREAD_REQUIRE(pthread_kill(th[i].id, SIGUSR1)); 138 PTHREAD_REQUIRE(pthread_join(th[i].id, NULL));
|
/src/sys/dev/pci/ixgbe/ |
if_fdir.c | 91 struct tcphdr *th; local in function:ixgbe_atr 118 th = (struct tcphdr *)((caddr_t)ip + ip_hlen); 120 common.port.dst ^= th->th_sport; 121 common.port.src ^= th->th_dport;
|
/src/sys/netinet/ |
tcp_debug.c | 115 struct tcphdr *th; local in function:tcp_trace 133 th = NULL; 142 th = (struct tcphdr *)((char *)&td->td_ti + 151 th = (struct tcphdr *)((char *)&td->td_ti6 + 170 if (th == 0) 172 seq = th->th_seq; 173 ack = th->th_ack; 186 printf("@%x, urp=%x", ack, th->th_urp); 187 flags = th->th_flags; 191 #define pf(f) { if (th->th_flags&__CONCAT(TH_,f)) { [all...] |
tcp_debug.h | 49 struct tcphdr th; member in struct:tcp_debug::__anon5a78d2440108 57 struct tcphdr th; member in struct:tcp_debug::__anon5a78d2440208
|
in_offload.c | 55 struct tcphdr *th; local in function:tcp4_segment 70 KASSERT(len >= off + sizeof(*ip) + sizeof(*th)); 85 hlen = off + iphlen + sizeof(*th); 91 th = (void *)(mtod(m, char *) + off + iphlen); 92 tcpseq = ntohl(th->th_seq); 93 thlen = th->th_off * 4; 150 th = (void *)(mtod(n, char *) + off + iphlen); 151 th->th_seq = htonl(tcpseq); 152 th->th_sum = phsum; 153 th->th_sum = in4_cksum(n, 0, off + iphlen, thlen + mss) [all...] |
/src/usr.sbin/mscdlabel/ |
main.c | 65 struct ioc_toc_header th; local in function:getcdtoc 69 memset(&th, 0, sizeof(th)); 70 res = ioctl(fd, CDIOREADTOCHEADER, &th); 76 ntracks = th.ending_track - th.starting_track + 1; 84 te.starting_track = th.starting_track; /* always 1 ??? */
|
/src/sys/external/bsd/compiler_rt/dist/lib/tsan/tests/rtl/ |
tsan_posix.cc | 60 pthread_t th[3]; local in function:TEST 64 EXPECT_EQ(__interceptor_pthread_create(&th[0], 0, dtors_thread, &k1), 0); 65 EXPECT_EQ(__interceptor_pthread_create(&th[1], 0, dtors_thread, &k2), 0); 66 EXPECT_EQ(__interceptor_pthread_join(th[0], 0), 0); 67 EXPECT_EQ(__interceptor_pthread_create(&th[2], 0, dtors_thread, &k3), 0); 68 EXPECT_EQ(__interceptor_pthread_join(th[1], 0), 0); 69 EXPECT_EQ(__interceptor_pthread_join(th[2], 0), 0); 83 pthread_t th[kThreads]; local in function:local_thread 85 EXPECT_EQ(__interceptor_pthread_create(&th[i], 0, local_thread, 88 EXPECT_EQ(__interceptor_pthread_join(th[i], 0), 0) 137 pthread_t th; local in function:TEST [all...] |
/src/usr.sbin/npf/npftest/ |
npfstream.c | 42 const struct tcphdr *th; local in function:process_tcpip 57 th = (const struct tcphdr *)p; 59 tcpdlen = ntohs(ip->ip_len) - hlen - (th->th_off << 2); 60 if (th->th_flags & TH_SYN) { 63 if (th->th_flags & TH_FIN) { 66 seq = ntohl(th->th_seq); 82 forw ? ">" : "<", (th->th_flags & (TH_SYN | TH_ACK | TH_FIN)), 83 packetno, error, (unsigned)seq, (unsigned)ntohl(th->th_ack), 84 tcpdlen, ntohs(th->th_win), (uintptr_t)result[0]);
|
/src/sys/net/npf/ |
npf_sendpkt.c | 98 struct tcphdr *oth, *th; local in function:npf_return_tcp 147 th = (struct tcphdr *)(ip + 1); 162 th = (struct tcphdr *)(ip6 + 1); 168 th->th_sport = oth->th_dport; 169 th->th_dport = oth->th_sport; 170 th->th_seq = htonl(ack); 174 th->th_ack = htonl(seq + tcpdlen); 175 th->th_off = sizeof(struct tcphdr) >> 2; 176 th->th_flags = TH_ACK | TH_RST; 179 th->th_sum = in_cksum(m, len) [all...] |
npf_alg_icmp.c | 90 const struct tcphdr *th = npc->npc_l4.tcp; local in function:npfa_icmp_match 91 dport = ntohs(th->th_dport); 264 struct tcphdr th; member in union:npfa_icmp_conn::l4 275 l4.th.th_sport = enpc.npc_l4.tcp->th_dport; 276 l4.th.th_dport = enpc.npc_l4.tcp->th_sport; 277 enpc.npc_l4.tcp = &l4.th; 368 const struct tcphdr *th = enpc.npc_l4.tcp; local in function:npfa_icmp_nat 369 old_port = th->th_sport; 370 l4cksum = th->th_sum; 425 const struct tcphdr *th = enpc.npc_l4.tcp local in function:npfa_icmp_nat [all...] |
npf_ext_normalize.c | 150 struct tcphdr *th; local in function:npf_normalize 163 th = npc->npc_l4.tcp; 170 (th->th_flags & TH_SYN) == 0) { 193 th = npc->npc_l4.tcp; 195 cksum = th->th_sum; 199 cksum = npf_fixup16_cksum(th->th_sum, mss, maxmss); 201 th->th_sum = cksum;
|
npf_connkey.c | 233 const struct tcphdr *th; local in function:npf_conn_conkey 249 th = npc->npc_l4.tcp; 250 id[NPF_SRC] = th->th_sport; 251 id[NPF_DST] = th->th_dport;
|
npf_state_tcp.c | 295 const struct tcphdr * const th = npc->npc_l4.tcp; local in function:npf_tcp_inwindow 296 const int tcpfl = th->th_flags; 309 * 10th USENIX Security Symposium invited talk, Aug. 2001. 460 const struct tcphdr * const th = npc->npc_l4.tcp; local in function:npf_state_tcp 461 const unsigned tcpfl = th->th_flags, state = nst->nst_state;
|
/src/sys/netinet6/ |
in6_offload.c | 59 struct tcphdr *th; local in function:tcp6_segment 74 KASSERT(len >= off + sizeof(*iph) + sizeof(*th)); 87 hlen = off + iphlen + sizeof(*th); 93 th = (void *)(mtod(m, char *) + off + iphlen); 94 tcpseq = ntohl(th->th_seq); 95 thlen = th->th_off * 4; 147 th = (void *)(mtod(n, char *) + off + iphlen); 148 th->th_seq = htonl(tcpseq); 149 th->th_sum = phsum; 150 th->th_sum = in6_cksum(n, 0, off + iphlen, thlen + mss) [all...] |
/src/sys/dev/pci/cxgb/ |
cxgb_lro.c | 81 lro_match(struct mbuf *m, struct ip *ih, struct tcphdr *th) 86 return (th->th_sport == sth->th_sport && 87 th->th_dport == sth->th_dport && 93 lro_lookup(struct lro_state *l, int idx, struct ip *ih, struct tcphdr *th) 101 if (lro_match(s->head, ih, th)) 131 can_lro_tcpsegment(struct tcphdr *th) 133 int olen = (th->th_off << 2) - sizeof (*th); 134 u8 control_bits = *((u8 *)th + 13); 140 uint32_t *ptr = (u32 *)(th + 1) 159 struct tcphdr *th = (struct tcphdr *) (ih + 1); local in function:lro_new_session_init 250 struct tcphdr *th, *nth = (struct tcphdr *)(nih + 1); local in function:lro_update_session 331 struct tcphdr *th; local in function:t3_rx_eth_lro [all...] |
/src/sys/external/bsd/compiler_rt/dist/lib/asan/tests/ |
asan_mac_test.cc | 197 pthread_t th; local in function:TEST 200 PTHREAD_CREATE(&th, NULL, TSDAllocWorker, &test_key); 201 PTHREAD_JOIN(th, NULL);
|
/src/usr.sbin/npf/npftest/libnpftest/ |
npf_state_test.c | 120 struct tcphdr *th; local in function:construct_packet 122 th = mbuf_return_hdrs(m, false, &ip); 126 th->th_seq = htonl(p->seq); 127 th->th_ack = htonl(p->ack); 128 th->th_flags = p->tcpfl; 129 th->th_win = htons(p->win);
|
/src/sys/netipsec/ |
ipsec_input.c | 126 struct tcphdr *th; local in function:ipsec4_fixup_checksum 142 M_REGION_GET(th, struct tcphdr *, m, poff, sizeof(*th)); 143 if (th == NULL) 145 off = th->th_off << 2; 146 if (off < sizeof(*th) || off > plen) { 150 th->th_sum = 0; 151 th->th_sum = in4_cksum(m, IPPROTO_TCP, poff, plen);
|
/src/sys/dev/ic/ |
malovar.h | 116 struct malo_rx_radiotap_hdr th; member in union:malo_softc::__anon3b6e53cc010a 119 #define sc_rxtap sc_rxtapu.th 123 struct malo_tx_radiotap_hdr th; member in union:malo_softc::__anon3b6e53cc020a 126 #define sc_txtap sc_txtapu.th
|
/src/sys/rump/kern/lib/libsimplehook_tester/ |
simplehook_tester.c | 215 struct tester_hook *th; local in function:simplehook_tester_hook 217 th = xth; 218 ctx = th->th_ctx; 222 __func__, __LINE__, th->th_idx)); 224 th->th_stopped = false; 226 while (th->th_stopping) { 228 __func__, __LINE__, th->th_idx)); 229 th->th_stopped = true; 233 if (th->th_stopped) { 235 __func__, __LINE__, th->th_idx)) 275 struct tester_hook *th; local in function:simplehook_tester_established 393 struct tester_hook *th; local in function:simplehook_tester_stopping 430 struct tester_hook *th; local in function:simplehook_tester_stopped 452 struct tester_hook *th; local in function:simplehook_tester_disestablish 491 struct tester_hook *th; local in function:simplehook_tester_count 671 struct tester_hook *th; local in function:simplehook_tester_fini [all...] |
/src/usr.sbin/trpt/ |
trpt.c | 387 struct tcphdr *th = NULL; local in function:tcp_trace 401 th = (struct tcphdr *)(ip + 1); 408 th = (struct tcphdr *)(ip6 + 1); 440 hbuf, ntohs(th->th_sport)); 450 hbuf, ntohs(th->th_dport)); 452 seq = th->th_seq; 453 ack = th->th_ack; 460 win = th->th_win; 476 flags = th->th_flags; 480 if (th->th_flags&flag) { [all...] |
/src/sys/external/bsd/common/linux/ |
linux_tasklet.c | 202 struct tasklet_head th = SIMPLEQ_HEAD_INITIALIZER(th); local in function:tasklet_softintr 215 SIMPLEQ_CONCAT(&th, &tc->tc_head); 220 while (!SIMPLEQ_EMPTY(&th)) { 224 tasklet = SIMPLEQ_FIRST(&th); 225 SIMPLEQ_REMOVE_HEAD(&th, tl_entry);
|