Skip to contentSkip to conversation

pppoe, /proc/net/pppoe wrong (extra entries)

DISCUSSION Denys Fedoryshchenko 1 participant 1 message Jan 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi again

I notice strange thing, with /proc/net/pppoe, not sure if it is bug, but for me it looks wrong.

cat /proc/net/pppoe
there is normal entries of users, but at the end i have
....

00000D00 00:16:D3:0B:F9:34     eth1
00004000 00:50:22:00:1C:FC     eth1
00007E00 00:03:47:BD:34:25     eth1
00007E00 00:03:47:BD:34:25     eth1
00007E00 00:03:47:BD:34:25     eth1
00007E00 00:03:47:BD:34:25     eth1
00007E00 00:03:47:BD:34:25     eth1

....
and last entry duplicates till end.

i have script to get customers interfaces, so i am using it to calculate amount of users logged in

defaulthost ~ #cat /proc/net/pppoe |grep -i '00:03:47:BD:34:25'|wc -l 40
defaulthost ~ #cat /proc/net/pppoe |wc -l
113
defaulthost ~ #pppctrl |wc -l
73

It means there is 40 extra entries. 00:03:47:BD:34:25 host have established, but only one session. I am seeing similar issue on all remaining pppoe servers, extra entries with same mac at the end.

If you need more info or access, please let me know.

--
Denys Fedoryshchenko
Technical Manager
Virtual ISP S.A.L.