PPPoE session numbering
Posted: 10 Aug 2017, 09:29
Hi all, привет,
I am new here, so I may be getting things wrong...
Working with 1.11.0, I wondered how it comes to assign PPPoE session numbers in steps of 64 (I see session numbers 0x01, 0x40, 0x80,...)
Looking into pppoe.c, I find the following line (around line 287)
if (bit != -1) {
conn->sid = sid_idx*8*sizeof(long) + bit;
...
Is there any deeper reason for why session numbers are multiplied by 8*8 here? If I take this off, session numbers are back to increment of one, as I would expect.
Is there a configuration setting that would influence this?
Thank you in advance for your consideration,
Hagen
I am new here, so I may be getting things wrong...
Working with 1.11.0, I wondered how it comes to assign PPPoE session numbers in steps of 64 (I see session numbers 0x01, 0x40, 0x80,...)
Looking into pppoe.c, I find the following line (around line 287)
if (bit != -1) {
conn->sid = sid_idx*8*sizeof(long) + bit;
...
Is there any deeper reason for why session numbers are multiplied by 8*8 here? If I take this off, session numbers are back to increment of one, as I would expect.
Is there a configuration setting that would influence this?
Thank you in advance for your consideration,
Hagen