Lines Matching refs:opsize

3775 			      int opsize)  in smc_parse_options()  argument
3779 if (th->syn && !(opsize & 1) && in smc_parse_options()
3780 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3798 int opsize; in tcp_parse_mss_option() local
3809 opsize = *ptr++; in tcp_parse_mss_option()
3810 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3812 if (opsize > length) in tcp_parse_mss_option()
3814 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3823 ptr += opsize - 2; in tcp_parse_mss_option()
3824 length -= opsize; in tcp_parse_mss_option()
3848 int opsize; in tcp_parse_options() local
3859 opsize = *ptr++; in tcp_parse_options()
3860 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3862 if (opsize > length) in tcp_parse_options()
3866 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3877 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
3892 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
3901 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
3909 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
3910 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
3925 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
3933 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
3936 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
3941 opsize); in tcp_parse_options()
3945 ptr += opsize-2; in tcp_parse_options()
3946 length -= opsize; in tcp_parse_options()
4009 int opsize; in tcp_parse_md5sig_option() local
4018 opsize = *ptr++; in tcp_parse_md5sig_option()
4019 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4022 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4024 ptr += opsize - 2; in tcp_parse_md5sig_option()
4025 length -= opsize; in tcp_parse_md5sig_option()