Lines Matching refs:opsize

3996 			      int opsize)  in smc_parse_options()  argument
4000 if (th->syn && !(opsize & 1) && in smc_parse_options()
4001 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
4022 int opsize; in tcp_parse_mss_option() local
4033 opsize = *ptr++; in tcp_parse_mss_option()
4034 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4036 if (opsize > length) in tcp_parse_mss_option()
4038 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4047 ptr += opsize - 2; in tcp_parse_mss_option()
4048 length -= opsize; in tcp_parse_mss_option()
4074 int opsize; in tcp_parse_options() local
4085 opsize = *ptr++; in tcp_parse_options()
4086 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4088 if (opsize > length) in tcp_parse_options()
4092 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4103 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4118 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4127 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4135 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4136 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4150 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4158 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4161 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4167 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4176 ptr += opsize-2; in tcp_parse_options()
4177 length -= opsize; in tcp_parse_options()
4240 int opsize; in tcp_parse_md5sig_option() local
4249 opsize = *ptr++; in tcp_parse_md5sig_option()
4250 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4253 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4255 ptr += opsize - 2; in tcp_parse_md5sig_option()
4256 length -= opsize; in tcp_parse_md5sig_option()