diff options
author | brian <brian@FreeBSD.org> | 2002-02-20 15:52:20 +0000 |
---|---|---|
committer | brian <brian@FreeBSD.org> | 2002-02-20 15:52:20 +0000 |
commit | 1af410bad48c6f61db8e27359c2fb565f0bf3398 (patch) | |
tree | dd3124fef0cc45253b3fa682bc6b6a0b7dde293c /usr.sbin | |
parent | c53e73d628ce85e58c9e9036af405ce5349880a3 (diff) | |
download | FreeBSD-src-1af410bad48c6f61db8e27359c2fb565f0bf3398.zip FreeBSD-src-1af410bad48c6f61db8e27359c2fb565f0bf3398.tar.gz |
Handle NGM_PPPOE_ACNAME messages.
Submitted by: Andre Albsmeier <andre@albsmeier.net>
Approved by: julian
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ppp/ether.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ppp/ether.c b/usr.sbin/ppp/ether.c index be261da..f8a3534 100644 --- a/usr.sbin/ppp/ether.c +++ b/usr.sbin/ppp/ether.c @@ -254,6 +254,11 @@ ether_MessageIn(struct etherdevice *dev) case NGM_PPPOE_FAIL: msg = "FAIL"; break; case NGM_PPPOE_CLOSE: msg = "CLOSE"; break; case NGM_PPPOE_GET_STATUS: msg = "GET_STATUS"; break; + case NGM_PPPOE_ACNAME: + msg = "ACNAME"; + if (setenv("ACNAME", sts->hook, 1) != 0) + log_Printf(LogWARN, "setenv: cannot set ACNAME=%s: %m", sts->hook); + break; default: snprintf(unknown, sizeof unknown, "<%d>", (int)rep->header.cmd); msg = unknown; |