diff options
author | Paul Mackerras <paulus@samba.org> | 2016-08-23 16:10:21 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2016-08-23 16:10:21 +1000 |
commit | bbcdc4366bbee6c3f4e1ddda31e4eec8c1b3ccc2 (patch) | |
tree | c8953650f2a3090fba41929ef8662f4879284e53 /pppd/pppd.8 | |
parent | 733c00a6ce0244ba5003f4f71a014db8200a30fe (diff) | |
download | ppp-bbcdc4366bbee6c3f4e1ddda31e4eec8c1b3ccc2.tar.gz |
pppd: allow use of arbitrary interface names
This is a modified version of a patch from openSUSE that enables PPP interfaces
to be called arbitrary names, rather than simply pppX where X is the unit
number.
The modifications from the stock openSUSE patch are:
- refresh patch on top of 018_ip-up_option.diff
- fix a printf format-string vulnerability in pppd/main.c:set_ifunit()
- clarify the pppd.8 manpage additions
- patch pppstats/pppstats.c to query renamed interfaces without complaint
Origin: SUSE
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=458646
Forwarded: no
Reviewed-by: Chris Boot <bootc@debian.org>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'pppd/pppd.8')
-rw-r--r-- | pppd/pppd.8 | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pppd/pppd.8 b/pppd/pppd.8 index c508d27..06e945f 100644 --- a/pppd/pppd.8 +++ b/pppd/pppd.8 @@ -1079,7 +1079,13 @@ under Linux and FreeBSD 2.2.8 and later. .TP .B unit \fInum Sets the ppp unit number (for a ppp0 or ppp1 etc interface name) for outbound -connections. +connections. If the unit is already in use a dynamically allocated number will +be used. +.TP +.B ifname \fIstring +Set the ppp interface name for outbound connections. If the interface name is +already in use, or if the name cannot be used for any other reason, pppd will +terminate. .TP .B unset \fIname Remove a variable from the environment variable for scripts that are |