diff options
author | ume <ume@FreeBSD.org> | 2003-08-17 11:11:32 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2003-08-17 11:11:32 +0000 |
commit | e63e485957ca75728d14f0f841a255c547024105 (patch) | |
tree | 71f0ce4c364fa35219a41194d4e21717734ebb58 /usr.sbin/rtsold/rtsold.h | |
parent | d21c6d5071dfec3042de4b42f1f7754eeb80247b (diff) | |
download | FreeBSD-src-e63e485957ca75728d14f0f841a255c547024105.zip FreeBSD-src-e63e485957ca75728d14f0f841a255c547024105.tar.gz |
- improved the -a option. it can probe a interface automatically when
the interface wake up. it can be started anytime even when there is
no network interface on the list of intarfaces in the kernel.
- get a correct link ID for each interface at initialization
(using scope libraries if HAVE_SCOPELIB is defined).
- fill in sin6_scope_id correctly before sendmsg().
Obtained from: KAME
MFC after: 1 week
Diffstat (limited to 'usr.sbin/rtsold/rtsold.h')
-rw-r--r-- | usr.sbin/rtsold/rtsold.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.sbin/rtsold/rtsold.h b/usr.sbin/rtsold/rtsold.h index 976a34b..09577a5 100644 --- a/usr.sbin/rtsold/rtsold.h +++ b/usr.sbin/rtsold/rtsold.h @@ -1,4 +1,4 @@ -/* $KAME: rtsold.h,v 1.11 2000/10/10 06:18:04 itojun Exp $ */ +/* $KAME: rtsold.h,v 1.19 2003/04/16 09:48:15 itojun Exp $ */ /* * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. @@ -36,6 +36,7 @@ struct ifinfo { struct sockaddr_dl *sdl; /* link-layer address */ char ifname[IF_NAMESIZE]; /* interface name */ + u_int32_t linkid; /* link ID of this interface */ int active; /* interface status */ int probeinterval; /* interval of probe timer (if necessary) */ int probetimer; /* rest of probe timer */ @@ -65,11 +66,15 @@ struct ifinfo { /* rtsold.c */ extern struct timeval tm_max; extern int dflag; +extern int aflag; extern char *otherconf_script; +extern int ifconfig __P((char *)); +extern void iflist_init __P((void)); struct ifinfo *find_ifinfo __P((int)); void rtsol_timer_update __P((struct ifinfo *)); extern void warnmsg __P((int, const char *, const char *, ...)) __attribute__((__format__(__printf__, 3, 4))); +extern char **autoifprobe __P((void)); /* if.c */ extern int ifinit __P((void)); @@ -87,7 +92,7 @@ extern void rtsol_input __P((int)); /* probe.c */ extern int probe_init __P((void)); -extern void defrouter_probe __P((int)); +extern void defrouter_probe __P((struct ifinfo *)); /* dump.c */ extern void rtsold_dump_file __P((char *)); |