Lines Matching refs:tcp
352 tcpopts_parse(const struct tcphdr *tcp, uint16_t *mss)
354 const u_char *cp = (const u_char *)(tcp + 1);
356 int cnt = (tcp->th_off << 2) - sizeof(struct tcphdr);
409 tcpopts_match(struct tcphdr *tcp, ipfw_insn *cmd)
412 return (flags_match(cmd, tcpopts_parse(tcp, NULL)));
893 struct tcphdr *tcp;
894 tcp = (struct tcphdr *)((char *)ip6 + hlen);
896 if ((tcp->th_flags & TH_RST) == 0) {
899 ntohl(tcp->th_seq), ntohl(tcp->th_ack),
900 tcp->th_flags | TH_RST);
1013 struct tcphdr *const tcp =
1015 if ( (tcp->th_flags & TH_RST) == 0) {
1018 ntohl(tcp->th_seq), ntohl(tcp->th_ack),
1019 tcp->th_flags | TH_RST);
2326 struct tcphdr *tcp;
2347 tcp = TCP(ulp);
2348 x -= tcp->th_off << 2;