chiark / gitweb /
libsystemd-networkd: introduce sd-pppoe library
authorTom Gundersen <teg@jklm.no>
Thu, 30 Oct 2014 23:02:57 +0000 (00:02 +0100)
committerTom Gundersen <teg@jklm.no>
Sat, 1 Nov 2014 21:31:40 +0000 (22:31 +0100)
commitcda391c3f9c85578f4a4fe81d4aeb785a785000a
tree7db9ae38bcabbf7c139ca367ce9d9517f09906bf
parentea55caa60c6860e33fa4f1a216c003ff666e9c68
libsystemd-networkd: introduce sd-pppoe library

This library negotiates a PPPoE channel. It handles the discovery stage and
leaves the session stage to the kernel. A further PPP library is needed to
actually set up a PPP unit (negotatie LCP, IPCP and do authentication), so in
isolation this is not yet very useful.

The test program has two modes:

  # ./test-pppoe

will create a veth tunnel in a new network namespace, start pppoe-server on one
end and this client library on the other. The pppd server will time out as no
LCP is performed, and the client will then shut down gracefully.

  # ./test-pppoe eth0

will run the client on eth0 (or any other netdev), and requires a PPPoE server
to be reachable on the local link.
.gitignore
Makefile.am
src/libsystemd-network/sd-pppoe.c [new file with mode: 0644]
src/libsystemd-network/test-pppoe.c [new file with mode: 0644]
src/systemd/sd-pppoe.h [new file with mode: 0644]