Home | History | Annotate | Download | only in src

Lines Matching refs:th

302           const struct tcphdr *th;
362 th = (const struct tcphdr *)payload;
368 if (datalen < 20 || datalen < (th->th_off << 2)) {
372 sport = ntohs(th->th_sport);
373 dport = ntohs(th->th_dport);
374 estab = (th->th_flags & TH_ACK);
375 syn = (th->th_flags & TH_SYN);
376 finrst = (th->th_flags & (TH_FIN|TH_RST));
381 th->th_flags, sport, dport);
566 const struct tcphdr *th;
814 th = (const struct tcphdr *)payload;
818 if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport),
819 ntohs(th->th_dport)))
823 len = datalen - (th->th_off << 2);
825 "TCP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(th->th_sport));
828 "%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(th->th_dport));
832 if (th->th_flags & mask) {
840 (u_long)ntohl(th->th_seq), (u_long)ntohl(th->th_ack), len, nb);
842 if ((th->th_flags & TH_SYN) && nb > 40) {