On Mon, 8 Aug 2022 19:39:06 +1000
Stuart Longland <stuartl@longlandclan.id.au> wrote:
> I can get some PPPoE frames when the link is next down. I'm not sure
> if there's a way to force a PADI attempt, man page does not mention
> any. Presumably the "state 3" is some-sort of offline state, I'd have
> to read the source to figure what that is.
Just had a look at the source:
#define PPPOE_STATE_INITIAL 0
#define PPPOE_STATE_PADI_SENT 1
#define PPPOE_STATE_PADR_SENT 2
#define PPPOE_STATE_SESSION 3
#define PPPOE_STATE_CLOSING 4
https://cvsweb.openbsd.org/cgi-bin/cvsweb/src/sys/net/if_pppoe.h?rev=1.8&content-type=text/x-cvsweb-markup
That makes this even more puzzling; if `ifconfig` reports "no carrier",
I can't see how it'd be in state "SESSION". That seems wrong. IMO,
the moment it dropped to "no carrier", to me I'd be reverting back to
"INITIAL" to re-start the whole connection when the link returns.
--
Stuart Longland (aka Redhatter, VK4MSL)
I haven't lost my mind...
...it's backed up on a tape somewhere.
No comments:
Post a Comment