]> git.ozlabs.org Git - ppp.git/commit
plugins/pppoe: Export AC name to scripts via an environment variable
authorPaul Mackerras <paulus@ozlabs.org>
Wed, 1 May 2024 10:43:58 +0000 (20:43 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 16 May 2024 10:31:41 +0000 (20:31 +1000)
commitc8d842b36e6ded837e6cd66d43cbcff4cf639f38
tree19c6c14f6884c6e3e633f764badd73c94203d2a6
parent2cd2d134fbf3abca540cc3bc227b9dc04d10534e
plugins/pppoe: Export AC name to scripts via an environment variable

This saves the access concentrator (AC) name supplied by the AC in the
PADO packet and creates an environment variable called "ACNAME" with
the name as its value for scripts to use if desired.

This was inspired by a pull request from "bearmi" on github, but
reimplemented somewhat differently by me.

Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppd/plugins/pppoe/discovery.c
pppd/plugins/pppoe/plugin.c
pppd/plugins/pppoe/pppoe.h
pppd/pppd.8