diff options
author | phk <phk@FreeBSD.org> | 1997-02-22 09:12:36 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1997-02-22 09:12:36 +0000 |
commit | 5891cb4ba7250f25c5d88b136db1c5e35c3905d0 (patch) | |
tree | e0d616e6bb00a78a8a723018e71f9e8b140c9154 /usr.sbin/ppp/command.c | |
parent | 67fb7190df2a9136ecaa682b96cc96ba022ce05d (diff) | |
download | FreeBSD-src-5891cb4ba7250f25c5d88b136db1c5e35c3905d0.zip FreeBSD-src-5891cb4ba7250f25c5d88b136db1c5e35c3905d0.tar.gz |
Make it possible to substitute INTERFACE when executing commands.
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r-- | usr.sbin/ppp/command.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c index 05770dc..c72d721 100644 --- a/usr.sbin/ppp/command.c +++ b/usr.sbin/ppp/command.c @@ -55,6 +55,8 @@ extern void TtyOldMode(), TtyCommandMode(); extern struct pppvars pppVars; extern struct cmdtab const SetCommands[]; +extern char *IfDevName; + struct in_addr ifnetmask; static int ShowCommand(), TerminalCommand(), QuitCommand(); @@ -214,6 +216,9 @@ char **argv; if (strcmp(argv[i], "HISADDR") == 0) { argv[i] = strdup(inet_ntoa(IpcpInfo.his_ipaddr)); } + if (strcmp(argv[i], "INTERFACE") == 0) { + argv[i] = strdup(IfDevName); + } if (strcmp(argv[i], "MYADDR") == 0) { argv[i] = strdup(inet_ntoa(IpcpInfo.want_ipaddr)); } |