Lines Matching refs:opsize
3661 int opsize; in tcp_parse_options() local
3670 opsize = *ptr++; in tcp_parse_options()
3671 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3673 if (opsize > length) in tcp_parse_options()
3677 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3688 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
3702 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
3711 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
3719 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
3720 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
3735 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
3743 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
3746 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
3752 ptr += opsize-2; in tcp_parse_options()
3753 length -= opsize; in tcp_parse_options()
3818 int opsize; in tcp_parse_md5sig_option() local
3827 opsize = *ptr++; in tcp_parse_md5sig_option()
3828 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
3831 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
3833 ptr += opsize - 2; in tcp_parse_md5sig_option()
3834 length -= opsize; in tcp_parse_md5sig_option()