Lines Matching refs:opsize
3780 int opsize) in smc_parse_options() argument
3784 if (th->syn && !(opsize & 1) && in smc_parse_options()
3785 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3803 int opsize; in tcp_parse_mss_option() local
3814 opsize = *ptr++; in tcp_parse_mss_option()
3815 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3817 if (opsize > length) in tcp_parse_mss_option()
3819 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3828 ptr += opsize - 2; in tcp_parse_mss_option()
3829 length -= opsize; in tcp_parse_mss_option()
3853 int opsize; in tcp_parse_options() local
3864 opsize = *ptr++; in tcp_parse_options()
3865 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3867 if (opsize > length) in tcp_parse_options()
3871 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3882 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
3897 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
3906 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
3914 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
3915 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
3930 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
3938 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
3941 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
3946 opsize); in tcp_parse_options()
3950 ptr += opsize-2; in tcp_parse_options()
3951 length -= opsize; in tcp_parse_options()
4014 int opsize; in tcp_parse_md5sig_option() local
4023 opsize = *ptr++; in tcp_parse_md5sig_option()
4024 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4027 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4029 ptr += opsize - 2; in tcp_parse_md5sig_option()
4030 length -= opsize; in tcp_parse_md5sig_option()