Lines Matching refs:opsize
3710 int opsize; in tcp_parse_options() local
3719 opsize = *ptr++; in tcp_parse_options()
3720 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3722 if (opsize > length) in tcp_parse_options()
3726 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3737 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
3751 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
3760 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
3768 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
3769 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
3784 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
3792 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
3795 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
3801 ptr += opsize-2; in tcp_parse_options()
3802 length -= opsize; in tcp_parse_options()
3867 int opsize; in tcp_parse_md5sig_option() local
3876 opsize = *ptr++; in tcp_parse_md5sig_option()
3877 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
3880 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
3882 ptr += opsize - 2; in tcp_parse_md5sig_option()
3883 length -= opsize; in tcp_parse_md5sig_option()