--- zzzz-none-000/linux-5.4.213/net/l2tp/l2tp_core.h 2022-09-15 10:04:56.000000000 +0000 +++ miami-7690-761/linux-5.4.213/net/l2tp/l2tp_core.h 2024-05-29 11:20:02.000000000 +0000 @@ -58,6 +58,7 @@ * control of LNS. */ int debug; /* bitmask of debug message * categories */ + u16 offset; /* offset to payload */ u16 l2specific_type; /* Layer 2 specific type */ u8 cookie[8]; /* optional cookie */ int cookie_len; /* 0, 4 or 8 bytes */ @@ -81,6 +82,8 @@ int cookie_len; u8 peer_cookie[8]; int peer_cookie_len; + u16 offset; /* offset from end of L2TP header + to beginning of data */ u16 l2specific_type; u16 hdr_len; u32 nr; /* session NR state (receive) */ @@ -200,6 +203,8 @@ struct l2tp_session *l2tp_session_get_nth(struct l2tp_tunnel *tunnel, int nth); struct l2tp_session *l2tp_session_get_by_ifname(const struct net *net, const char *ifname); +void l2tp_stats_update(struct l2tp_tunnel *tunnel, struct l2tp_session *session, + struct l2tp_stats *stats); int l2tp_tunnel_create(struct net *net, int fd, int version, u32 tunnel_id, u32 peer_tunnel_id, struct l2tp_tunnel_cfg *cfg,