Signed-off-by: Jaco Kroon <jaco@uls.co.za>
{
if (buf) {
strlcpy(remote_number, buf, sizeof(remote_number));
+ ppp_script_setenv("REMOTENUMBER", remote_number, 0);
}
}
create_pidfile(getpid()); /* write pid to file */
create_linkpidfile(getpid());
}
+ if (*remote_number)
+ ppp_script_setenv("REMOTENUMBER", remote_number, 0);
run_net_script(path_net_init, 1);
}
The authenticated name of the peer. This is only set if the peer
authenticates itself.
.TP
+.B REMOTENUMBER
+The remote's number as provided to pppd by the remotenumber option. The
+meaning of this varies based on the type of connection, xl2tpd for example can
+either provide the dialing number AVP or the remote's IP address. pppoe-server
+typically provides the MAC address.
+.TP
.B SPEED
The baud rate of the tty device.
.TP