From 3be9b1657a0d8b1b8af4c7c23e5555f5b5117bc6 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 3 Dec 2023 21:24:54 +0100 Subject: [PATCH] Note what changed in versions 8, 9 and 10 --- cluster.c | 12 +++++++----- l2tpns.h | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/cluster.c b/cluster.c index bb7cc61..12f1794 100644 --- a/cluster.c +++ b/cluster.c @@ -1540,10 +1540,10 @@ struct oldsessionV8 { struct in6_addr ipv6route; // Static IPv6 route sessionidt forwardtosession; // LNS id_session to forward uint8_t src_hwaddr[ETH_ALEN]; // MAC addr source (for pppoe sessions 6 bytes) - uint32_t dhcpv6_prefix_iaid; // prefix iaid requested by client - uint32_t dhcpv6_iana_iaid; // iaid of iana requested by client - struct in6_addr ipv6address; // Framed Ipv6 address - struct dhcp6_opt_clientid dhcpv6_client_id; // Size max (headers + DUID) + uint32_t dhcpv6_prefix_iaid; // NEW: prefix iaid requested by client + uint32_t dhcpv6_iana_iaid; // NEW: iaid of iana requested by client + struct in6_addr ipv6address; // NEW: Framed Ipv6 address + struct dhcp6_opt_clientid dhcpv6_client_id; // NEW: Size max (headers + DUID) char reserved[4]; // Space to expand structure without changing HB_VERSION }; @@ -1599,13 +1599,15 @@ struct oldsessionV9 { uint8_t walled_garden; // is this session gardened? uint8_t classlen; // class (needed for radius accounting messages) char class[MAXCLASS]; + // DROPPED: ipv6prefixlen + // DROPPED: ipv6route sessionidt forwardtosession; // LNS id_session to forward uint8_t src_hwaddr[ETH_ALEN]; // MAC addr source (for pppoe sessions 6 bytes) uint32_t dhcpv6_prefix_iaid; // prefix iaid requested by client uint32_t dhcpv6_iana_iaid; // iaid of iana requested by client struct in6_addr ipv6address; // Framed Ipv6 address struct dhcp6_opt_clientid dhcpv6_client_id; // Size max (headers + DUID) - routet6 route6[MAXROUTE6]; // static IPv6 routes + routet6 route6[MAXROUTE6]; // NEW: static IPv6 routes char reserved[4]; // Space to expand structure without changing HB_VERSION }; diff --git a/l2tpns.h b/l2tpns.h index 3ec33da..8c9fc0b 100644 --- a/l2tpns.h +++ b/l2tpns.h @@ -309,7 +309,7 @@ typedef struct uint32_t pin, pout; // packet counts uint32_t cin, cout; // byte counts uint32_t cin_wrap, cout_wrap; // byte counter wrap count (RADIUS accounting giagawords) - uint64_t cin_delta, cout_delta; // byte count changes (for dump_session()) + uint64_t cin_delta, cout_delta; // EXTENDED: byte count changes (for dump_session()) uint16_t throttle_in; // upstream throttle rate (kbps) uint16_t throttle_out; // downstream throttle rate uint8_t filter_in; // input filter index (to ip_filters[N-1]; 0 if none)