summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2006-01-26 13:06:49 +0000
committerglebius <glebius@FreeBSD.org>2006-01-26 13:06:49 +0000
commit929b129a0a0e8cc43c8fd6587e936b996f13ac64 (patch)
tree44fa2996e8361e0b77b09ee0c1b8b77f354050ee /sbin/ping
parent8c6899bf001b48d3f2bb84712e598b1090855c5e (diff)
downloadFreeBSD-src-929b129a0a0e8cc43c8fd6587e936b996f13ac64.zip
FreeBSD-src-929b129a0a0e8cc43c8fd6587e936b996f13ac64.tar.gz
From the RFC2516 it is not clear, what is the correct behavior for a
PPPoE AC, servicing a specific Service-Name, when client sends a PADI with an empty Service-Name. Should it reply with all available service names or should it be silent? Our implementation had chosen the latter, while some other had chosen the former (they say Linux and Cisco). Now some PPPoE clients appear, that rely on the assumption that AC will send all names in a PADO reply to a PADI with wildcard Service-Name. These clients can't connect to FreeBSD AC. I have requested comments from authors of RFC2516 via email, but received no reply. This change makes FreeBSD AC compatible with D-Link DI-614+ and D-Link DI-624+ SOHO routers, and probably others. Big thanks to D-Link's Russian office, namely Victor Platov, for assistance and support in investigation and testing of this change. Details: o Split pppoe_match_svc() into three different functions serving different purposes: - pppoe_match_svc() - match non-empty Service-Name tag from PADI against all available hooks in listening state. - pppoe_find_svc() - check that given Service-Name is not yet registered. - pppoe_broadcast_padi() - send a copy of PADI packet with empty Service-Name tag to all listening hooks. o For NGM_PPPOE_LISTEN message use pppoe_find_svc(). o In ng_pppoe_rcvdata() in a PADI case use pppoe_match_svc() for a non-empty Service-Name tag, and pppoe_broadcast_padi() in either case. A side effect from the above changes is that now pppoed(8) and mpd will reply to a empty Service-Name PADI sending a PADO with two Service-Name tags - an empty one and correct one. This is not fatal, and will be corrected in pppoed(8) and mpd later. No need to update node interface version. Supported by: D-Link
Diffstat (limited to 'sbin/ping')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud