Note what changed in versions 8, 9 and 10

This commit is contained in:
Samuel Thibault 2023-12-03 21:24:54 +01:00
parent 01576b74da
commit 3be9b1657a
2 changed files with 8 additions and 6 deletions

View file

@ -1540,10 +1540,10 @@ struct oldsessionV8 {
struct in6_addr ipv6route; // Static IPv6 route struct in6_addr ipv6route; // Static IPv6 route
sessionidt forwardtosession; // LNS id_session to forward sessionidt forwardtosession; // LNS id_session to forward
uint8_t src_hwaddr[ETH_ALEN]; // MAC addr source (for pppoe sessions 6 bytes) 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_prefix_iaid; // NEW: prefix iaid requested by client
uint32_t dhcpv6_iana_iaid; // iaid of iana requested by client uint32_t dhcpv6_iana_iaid; // NEW: iaid of iana requested by client
struct in6_addr ipv6address; // Framed Ipv6 address struct in6_addr ipv6address; // NEW: Framed Ipv6 address
struct dhcp6_opt_clientid dhcpv6_client_id; // Size max (headers + DUID) struct dhcp6_opt_clientid dhcpv6_client_id; // NEW: Size max (headers + DUID)
char reserved[4]; // Space to expand structure without changing HB_VERSION 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 walled_garden; // is this session gardened?
uint8_t classlen; // class (needed for radius accounting messages) uint8_t classlen; // class (needed for radius accounting messages)
char class[MAXCLASS]; char class[MAXCLASS];
// DROPPED: ipv6prefixlen
// DROPPED: ipv6route
sessionidt forwardtosession; // LNS id_session to forward sessionidt forwardtosession; // LNS id_session to forward
uint8_t src_hwaddr[ETH_ALEN]; // MAC addr source (for pppoe sessions 6 bytes) 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_prefix_iaid; // prefix iaid requested by client
uint32_t dhcpv6_iana_iaid; // iaid of iana requested by client uint32_t dhcpv6_iana_iaid; // iaid of iana requested by client
struct in6_addr ipv6address; // Framed Ipv6 address struct in6_addr ipv6address; // Framed Ipv6 address
struct dhcp6_opt_clientid dhcpv6_client_id; // Size max (headers + DUID) 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 char reserved[4]; // Space to expand structure without changing HB_VERSION
}; };

View file

@ -309,7 +309,7 @@ typedef struct
uint32_t pin, pout; // packet counts uint32_t pin, pout; // packet counts
uint32_t cin, cout; // byte counts uint32_t cin, cout; // byte counts
uint32_t cin_wrap, cout_wrap; // byte counter wrap count (RADIUS accounting giagawords) 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_in; // upstream throttle rate (kbps)
uint16_t throttle_out; // downstream throttle rate uint16_t throttle_out; // downstream throttle rate
uint8_t filter_in; // input filter index (to ip_filters[N-1]; 0 if none) uint8_t filter_in; // input filter index (to ip_filters[N-1]; 0 if none)