diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-02-22 09:12:36 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1997-02-22 09:12:36 +0000 |
| commit | 017a5a7f59872df76537424088ca16306125dad9 (patch) | |
| tree | e0d616e6bb00a78a8a723018e71f9e8b140c9154 /usr.sbin/ppp/command.c | |
| parent | 77bf994fe8d0463aac05ed334fe1127943dd4df8 (diff) | |
Notes
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 05770dc66155f..c72d72143d111 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)); } |
