Lines Matching refs:opsize

4120 			      int opsize)  in smc_parse_options()  argument
4124 if (th->syn && !(opsize & 1) && in smc_parse_options()
4125 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
4146 int opsize; in tcp_parse_mss_option() local
4157 opsize = *ptr++; in tcp_parse_mss_option()
4158 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4160 if (opsize > length) in tcp_parse_mss_option()
4162 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4171 ptr += opsize - 2; in tcp_parse_mss_option()
4172 length -= opsize; in tcp_parse_mss_option()
4198 int opsize; in tcp_parse_options() local
4209 opsize = *ptr++; in tcp_parse_options()
4210 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4212 if (opsize > length) in tcp_parse_options()
4216 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4227 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4242 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4251 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4259 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4260 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4281 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4289 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4292 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4298 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4307 ptr += opsize-2; in tcp_parse_options()
4308 length -= opsize; in tcp_parse_options()
4379 int opsize; in tcp_do_parse_auth_options() local
4388 opsize = *ptr++; in tcp_do_parse_auth_options()
4389 if (opsize < 2 || opsize > length) in tcp_do_parse_auth_options()
4392 if (opsize != TCPOLEN_MD5SIG) in tcp_do_parse_auth_options()
4398 if (opsize <= sizeof(struct tcp_ao_hdr)) in tcp_do_parse_auth_options()
4405 ptr += opsize - 2; in tcp_do_parse_auth_options()
4406 length -= opsize; in tcp_do_parse_auth_options()