Lines Matching refs:opsize
4469 int opsize) in smc_parse_options() argument
4473 if (th->syn && !(opsize & 1) && in smc_parse_options()
4474 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
4495 int opsize; in tcp_parse_mss_option() local
4506 opsize = *ptr++; in tcp_parse_mss_option()
4507 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
4509 if (opsize > length) in tcp_parse_mss_option()
4511 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
4520 ptr += opsize - 2; in tcp_parse_mss_option()
4521 length -= opsize; in tcp_parse_mss_option()
4547 int opsize; in tcp_parse_options() local
4558 opsize = *ptr++; in tcp_parse_options()
4559 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
4561 if (opsize > length) in tcp_parse_options()
4565 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
4576 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4591 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4600 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4608 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4609 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4630 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4644 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4647 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4653 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4662 ptr += opsize-2; in tcp_parse_options()
4663 length -= opsize; in tcp_parse_options()
4737 int opsize; in tcp_do_parse_auth_options() local
4746 opsize = *ptr++; in tcp_do_parse_auth_options()
4747 if (opsize < 2 || opsize > length) in tcp_do_parse_auth_options()
4750 if (opsize != TCPOLEN_MD5SIG) in tcp_do_parse_auth_options()
4756 if (opsize <= sizeof(struct tcp_ao_hdr)) in tcp_do_parse_auth_options()
4763 ptr += opsize - 2; in tcp_do_parse_auth_options()
4764 length -= opsize; in tcp_do_parse_auth_options()