Lines Matching refs:opsize
3765 int opsize) in smc_parse_options() argument
3769 if (th->syn && !(opsize & 1) && in smc_parse_options()
3770 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3795 int opsize; in tcp_parse_options() local
3804 opsize = *ptr++; in tcp_parse_options()
3805 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3807 if (opsize > length) in tcp_parse_options()
3811 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3822 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
3837 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
3846 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
3854 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
3855 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
3870 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
3878 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
3881 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
3886 opsize); in tcp_parse_options()
3890 ptr += opsize-2; in tcp_parse_options()
3891 length -= opsize; in tcp_parse_options()
3954 int opsize; in tcp_parse_md5sig_option() local
3963 opsize = *ptr++; in tcp_parse_md5sig_option()
3964 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
3967 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
3969 ptr += opsize - 2; in tcp_parse_md5sig_option()
3970 length -= opsize; in tcp_parse_md5sig_option()