Lines Matching refs:opsize
3946 int opsize) in smc_parse_options() argument
3950 if (th->syn && !(opsize & 1) && in smc_parse_options()
3951 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3972 int opsize; in tcp_parse_mss_option() local
3983 opsize = *ptr++; in tcp_parse_mss_option()
3984 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3986 if (opsize > length) in tcp_parse_mss_option()
3988 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3997 ptr += opsize - 2; in tcp_parse_mss_option()
3998 length -= opsize; in tcp_parse_mss_option()
4023 int opsize; in tcp_parse_options() local
4034 opsize = *ptr++; in tcp_parse_options()
4035 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4037 if (opsize > length) in tcp_parse_options()
4041 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4052 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4067 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4076 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4084 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4085 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4100 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4108 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4111 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4117 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4126 ptr += opsize-2; in tcp_parse_options()
4127 length -= opsize; in tcp_parse_options()
4190 int opsize; in tcp_parse_md5sig_option() local
4199 opsize = *ptr++; in tcp_parse_md5sig_option()
4200 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4203 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4205 ptr += opsize - 2; in tcp_parse_md5sig_option()
4206 length -= opsize; in tcp_parse_md5sig_option()