Lines Matching refs:opsize

3941 			      int opsize)  in smc_parse_options()  argument
3945 if (th->syn && !(opsize & 1) && in smc_parse_options()
3946 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3967 int opsize; in tcp_parse_mss_option() local
3978 opsize = *ptr++; in tcp_parse_mss_option()
3979 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3981 if (opsize > length) in tcp_parse_mss_option()
3983 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3992 ptr += opsize - 2; in tcp_parse_mss_option()
3993 length -= opsize; in tcp_parse_mss_option()
4018 int opsize; in tcp_parse_options() local
4029 opsize = *ptr++; in tcp_parse_options()
4030 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4032 if (opsize > length) in tcp_parse_options()
4036 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4047 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4062 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4071 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4079 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4080 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4095 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4103 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4106 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4112 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4121 ptr += opsize-2; in tcp_parse_options()
4122 length -= opsize; in tcp_parse_options()
4185 int opsize; in tcp_parse_md5sig_option() local
4194 opsize = *ptr++; in tcp_parse_md5sig_option()
4195 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4198 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4200 ptr += opsize - 2; in tcp_parse_md5sig_option()
4201 length -= opsize; in tcp_parse_md5sig_option()