Lines Matching refs:opsize

3939 			      int opsize)  in smc_parse_options()  argument
3943 if (th->syn && !(opsize & 1) && in smc_parse_options()
3944 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3965 int opsize; in tcp_parse_mss_option() local
3976 opsize = *ptr++; in tcp_parse_mss_option()
3977 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3979 if (opsize > length) in tcp_parse_mss_option()
3981 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3990 ptr += opsize - 2; in tcp_parse_mss_option()
3991 length -= opsize; in tcp_parse_mss_option()
4016 int opsize; in tcp_parse_options() local
4027 opsize = *ptr++; in tcp_parse_options()
4028 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4030 if (opsize > length) in tcp_parse_options()
4034 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4045 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4060 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4069 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4077 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4078 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4093 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4101 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4104 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4110 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4119 ptr += opsize-2; in tcp_parse_options()
4120 length -= opsize; in tcp_parse_options()
4183 int opsize; in tcp_parse_md5sig_option() local
4192 opsize = *ptr++; in tcp_parse_md5sig_option()
4193 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4196 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4198 ptr += opsize - 2; in tcp_parse_md5sig_option()
4199 length -= opsize; in tcp_parse_md5sig_option()