Changeset View
Changeset View
Standalone View
Standalone View
head/usr.sbin/rtsold/rtsold.h
Show First 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | struct ifinfo { | ||||
struct sockaddr_dl *sdl; /* link-layer address */ | struct sockaddr_dl *sdl; /* link-layer address */ | ||||
char ifname[IFNAMSIZ]; /* interface name */ | char ifname[IFNAMSIZ]; /* interface name */ | ||||
uint32_t linkid; /* link ID of this interface */ | uint32_t linkid; /* link ID of this interface */ | ||||
int active; /* interface status */ | int active; /* interface status */ | ||||
int probeinterval; /* interval of probe timer (if necessary) */ | int probeinterval; /* interval of probe timer (if necessary) */ | ||||
int probetimer; /* rest of probe timer */ | int probetimer; /* rest of probe timer */ | ||||
int mediareqok; /* whether the IF supports SIOCGIFMEDIA */ | int mediareqok; /* whether the IF supports SIOCGIFMEDIA */ | ||||
int managedconfig; /* need a separate protocol for the "managed" | |||||
* configuration */ | |||||
int otherconfig; /* need a separate protocol for the "other" | int otherconfig; /* need a separate protocol for the "other" | ||||
* configuration */ | * configuration */ | ||||
int state; | int state; | ||||
int probes; | int probes; | ||||
int dadcount; | int dadcount; | ||||
struct timespec timer; | struct timespec timer; | ||||
struct timespec expire; | struct timespec expire; | ||||
#define IFI_DNSOPT_STATE_NOINFO 0 | #define IFI_DNSOPT_STATE_NOINFO 0 | ||||
▲ Show 20 Lines • Show All 69 Lines • ▼ Show 20 Lines | |||||
/* rtsold.c */ | /* rtsold.c */ | ||||
struct cap_channel; | struct cap_channel; | ||||
extern struct timespec tm_max; | extern struct timespec tm_max; | ||||
extern int dflag; | extern int dflag; | ||||
extern int aflag; | extern int aflag; | ||||
extern int Fflag; | extern int Fflag; | ||||
extern int uflag; | extern int uflag; | ||||
extern const char *managedconf_script; | |||||
extern const char *otherconf_script; | extern const char *otherconf_script; | ||||
extern const char *resolvconf_script; | extern const char *resolvconf_script; | ||||
extern struct cap_channel *capllflags, *capscript, *capsendmsg, *capsyslog; | extern struct cap_channel *capllflags, *capscript, *capsendmsg, *capsyslog; | ||||
struct ifinfo *find_ifinfo(int); | struct ifinfo *find_ifinfo(int); | ||||
struct rainfo *find_rainfo(struct ifinfo *, struct sockaddr_in6 *); | struct rainfo *find_rainfo(struct ifinfo *, struct sockaddr_in6 *); | ||||
void rtsol_timer_update(struct ifinfo *); | void rtsol_timer_update(struct ifinfo *); | ||||
extern void warnmsg(int, const char *, const char *, ...) | extern void warnmsg(int, const char *, const char *, ...) | ||||
Show All 35 Lines |