23 u8 opt_len, opts_len, kind;
26 if (!(mss_clamping &&
tcp_syn (tcp)))
30 data = (
u8 *) (tcp + 1);
31 for (; opts_len > 0; opts_len -= opt_len, data += opt_len)
48 if (opt_len < 2 || opt_len > opts_len)
54 mss = *(
u16 *) (data + 2);
57 u16 mss_value_net = clib_host_to_net_u16(mss_clamping);
#define clib_memcpy_fast(a, b, c)
struct _tcp_header tcp_header_t
static void mss_clamping(u16 mss_clamping, tcp_header_t *tcp, ip_csum_t *sum)
#define ip_csum_update(sum, old, new, type, field)