summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/route.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1997-12-27 13:45:57 +0000
committerbrian <brian@FreeBSD.org>1997-12-27 13:45:57 +0000
commitddf3da84955259f875ffc03f9b8945fb9e36d3a5 (patch)
tree29676590de1cf3ab7926a067f5898dde1345e653 /usr.sbin/ppp/route.c
parentd03808004927d9310c50fb5885b4908a0d39c340 (diff)
downloadFreeBSD-src-ddf3da84955259f875ffc03f9b8945fb9e36d3a5.zip
FreeBSD-src-ddf3da84955259f875ffc03f9b8945fb9e36d3a5.tar.gz
Show who closes the diagnostic connection.
Show the IP range (if specified) in "show ipcp". Close unused descriptors 0 and 2 in interactive mode. Pass (size_t *) rather than (int *) to sysctl().
Diffstat (limited to 'usr.sbin/ppp/route.c')
-rw-r--r--usr.sbin/ppp/route.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/usr.sbin/ppp/route.c b/usr.sbin/ppp/route.c
index 7d4daf1..dc00dbc 100644
--- a/usr.sbin/ppp/route.c
+++ b/usr.sbin/ppp/route.c
@@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
- * $Id: route.c,v 1.34 1997/12/17 21:22:05 brian Exp $
+ * $Id: route.c,v 1.35 1997/12/24 09:29:12 brian Exp $
*
*/
@@ -307,7 +307,8 @@ Index2Nam(int idx)
static int nifs, debug_done;
if (!nifs) {
- int mib[6], needed, len;
+ int mib[6], len;
+ size_t needed;
char *buf, *ptr, *end;
struct sockaddr_dl *dl;
struct if_msghdr *ifm;
@@ -371,7 +372,7 @@ ShowRoute(struct cmdargs const *arg)
struct rt_msghdr *rtm;
struct sockaddr *sa_dst, *sa_gw, *sa_mask;
char *sp, *ep, *cp, *wp;
- int needed;
+ size_t needed;
int mib[6];
if (!VarTerm)
@@ -441,7 +442,8 @@ DeleteIfRoutes(int all)
struct rt_msghdr *rtm;
struct sockaddr *sa;
struct in_addr sa_dst, sa_none;
- int needed, pass;
+ int pass;
+ size_t needed;
char *sp, *cp, *ep;
int mib[6];
OpenPOWER on IntegriCloud