]> granicus.if.org Git - sudo/commitdiff
added interfaces global
authorTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Aug 1994 01:57:03 +0000 (01:57 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Fri, 12 Aug 1994 01:57:03 +0000 (01:57 +0000)
sudo.h

diff --git a/sudo.h b/sudo.h
index 6389deb6bf7fb7f0fcdc72a52ce1ca9e301e6239..a500eca1145a124c4af8548794ab3ec94714f845 100644 (file)
--- a/sudo.h
+++ b/sudo.h
@@ -218,6 +218,11 @@ typedef struct list {
     struct list *next;
 }   LIST, *LINK;
 
+struct interface {
+    struct in_addr addr;
+    struct in_addr netmask;
+};
+
 
 /*
  * Syslog(3) parameters
@@ -335,7 +340,6 @@ typedef struct list {
  * Prototypes
  */
 
-struct hostent;                                /* so gcc won't complain */
 
 /* These are the functions that are called in sudo(8) */
 
@@ -360,7 +364,6 @@ void be_root                __P((void));
 void be_user           __P((void));
 void be_full_user      __P((void));
 void remove_timestamp  __P((void));
-void load_ip_addrs     __P((struct hostent *));
 
 
 /*
@@ -371,7 +374,8 @@ void load_ip_addrs  __P((struct hostent *));
 extern uid_t uid;
 extern char host[];
 extern char cwd[];
-extern struct in_addr *ip_addrs;
+extern struct interface *interfaces;
+extern int num_interfaces;
 extern char *user;
 extern char *epasswd;
 extern char *cmnd;