Lines Matching refs:opsize
3972 int opsize) in smc_parse_options() argument
3976 if (th->syn && !(opsize & 1) && in smc_parse_options()
3977 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3998 int opsize; in tcp_parse_mss_option() local
4009 opsize = *ptr++; in tcp_parse_mss_option()
4010 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4012 if (opsize > length) in tcp_parse_mss_option()
4014 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4023 ptr += opsize - 2; in tcp_parse_mss_option()
4024 length -= opsize; in tcp_parse_mss_option()
4050 int opsize; in tcp_parse_options() local
4061 opsize = *ptr++; in tcp_parse_options()
4062 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4064 if (opsize > length) in tcp_parse_options()
4068 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4079 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4094 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4103 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4111 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4112 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4127 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4135 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4138 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4144 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4153 ptr += opsize-2; in tcp_parse_options()
4154 length -= opsize; in tcp_parse_options()
4217 int opsize; in tcp_parse_md5sig_option() local
4226 opsize = *ptr++; in tcp_parse_md5sig_option()
4227 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4230 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4232 ptr += opsize - 2; in tcp_parse_md5sig_option()
4233 length -= opsize; in tcp_parse_md5sig_option()