Lines Matching refs:opsize
3971 int opsize) in smc_parse_options() argument
3975 if (th->syn && !(opsize & 1) && in smc_parse_options()
3976 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3997 int opsize; in tcp_parse_mss_option() local
4008 opsize = *ptr++; in tcp_parse_mss_option()
4009 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4011 if (opsize > length) in tcp_parse_mss_option()
4013 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4022 ptr += opsize - 2; in tcp_parse_mss_option()
4023 length -= opsize; in tcp_parse_mss_option()
4049 int opsize; in tcp_parse_options() local
4060 opsize = *ptr++; in tcp_parse_options()
4061 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4063 if (opsize > length) in tcp_parse_options()
4067 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4078 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4093 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4102 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4110 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4111 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4126 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4134 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4137 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4143 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4152 ptr += opsize-2; in tcp_parse_options()
4153 length -= opsize; in tcp_parse_options()
4216 int opsize; in tcp_parse_md5sig_option() local
4225 opsize = *ptr++; in tcp_parse_md5sig_option()
4226 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4229 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4231 ptr += opsize - 2; in tcp_parse_md5sig_option()
4232 length -= opsize; in tcp_parse_md5sig_option()