aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ppp/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/ppp/command.c')
-rw-r--r--usr.sbin/ppp/command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/usr.sbin/ppp/command.c b/usr.sbin/ppp/command.c
index 05770dc66155..c72d72143d11 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));
}