Lines Matching refs:tcph
264 const struct tcphdr *tcph,
270 u_int8_t *opt = (u_int8_t *)tcph;
271 u_int8_t *endhdr = (u_int8_t *)tcph + tcph->doff * 4;
292 if (!tcph->source || !tcph->dest) {
294 htons(tcph->source), htons(tcph->dest));
301 if (datalen < tcph->doff * 4) {
313 csum_partial((char *)tcph, datalen, 0)) != 0)
317 if (!tcph->source || !tcph->dest) {
319 htons(tcph->source), htons(tcph->dest));
324 if(tcp_flag_word(tcph) & TCP_RESERVED_BITS) {
330 tcpflags = (((u_int8_t *)tcph)[13] & ~(TH_ECE|TH_CWR));
348 for (i = sizeof(struct tcphdr); i < tcph->doff * 4; ) {
365 else if (i+1 >= tcph->doff * 4) {