Lines Matching refs:opsize

3883 			      int opsize)  in smc_parse_options()  argument
3887 if (th->syn && !(opsize & 1) && in smc_parse_options()
3888 opsize >= TCPOLEN_EXP_SMC_BASE && in smc_parse_options()
3909 int opsize; in tcp_parse_mss_option() local
3920 opsize = *ptr++; in tcp_parse_mss_option()
3921 if (opsize < 2) /* "silly options" */ in tcp_parse_mss_option()
3923 if (opsize > length) in tcp_parse_mss_option()
3925 if (opcode == TCPOPT_MSS && opsize == TCPOLEN_MSS) { in tcp_parse_mss_option()
3934 ptr += opsize - 2; in tcp_parse_mss_option()
3935 length -= opsize; in tcp_parse_mss_option()
3960 int opsize; in tcp_parse_options() local
3971 opsize = *ptr++; in tcp_parse_options()
3972 if (opsize < 2) /* "silly options" */ in tcp_parse_options()
3974 if (opsize > length) in tcp_parse_options()
3978 if (opsize == TCPOLEN_MSS && th->syn && !estab) { in tcp_parse_options()
3989 if (opsize == TCPOLEN_WINDOW && th->syn && in tcp_parse_options()
4004 if ((opsize == TCPOLEN_TIMESTAMP) && in tcp_parse_options()
4013 if (opsize == TCPOLEN_SACK_PERM && th->syn && in tcp_parse_options()
4021 if ((opsize >= (TCPOLEN_SACK_BASE + TCPOLEN_SACK_PERBLOCK)) && in tcp_parse_options()
4022 !((opsize - TCPOLEN_SACK_BASE) % TCPOLEN_SACK_PERBLOCK) && in tcp_parse_options()
4037 opsize - TCPOLEN_FASTOPEN_BASE, in tcp_parse_options()
4045 if (opsize >= TCPOLEN_EXP_FASTOPEN_BASE && in tcp_parse_options()
4048 tcp_parse_fastopen_option(opsize - in tcp_parse_options()
4054 if (smc_parse_options(th, opt_rx, ptr, opsize)) in tcp_parse_options()
4063 ptr += opsize-2; in tcp_parse_options()
4064 length -= opsize; in tcp_parse_options()
4127 int opsize; in tcp_parse_md5sig_option() local
4136 opsize = *ptr++; in tcp_parse_md5sig_option()
4137 if (opsize < 2 || opsize > length) in tcp_parse_md5sig_option()
4140 return opsize == TCPOLEN_MD5SIG ? ptr : NULL; in tcp_parse_md5sig_option()
4142 ptr += opsize - 2; in tcp_parse_md5sig_option()
4143 length -= opsize; in tcp_parse_md5sig_option()