16 #ifndef __included_lib_nat_inlines_h__ 17 #define __included_lib_nat_inlines_h__ 27 v = clib_net_to_host_u32 (a->
as_u32) + 1;
28 a->
as_u32 = clib_host_to_net_u32 (v);
35 u8 opt_len, opts_len, kind;
38 if (!(mss_clamping &&
tcp_syn (tcp)))
42 data = (
u8 *) (tcp + 1);
43 for (; opts_len > 0; opts_len -= opt_len, data += opt_len)
60 if (opt_len < 2 || opt_len > opts_len)
66 mss = *(
u16 *) (data + 2);
69 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)
static void increment_v4_address(ip4_address_t *a)
#define ip_csum_update(sum, old, new, type, field)