update Debian standards version
[debian/sudo] / interfaces.h
index b32e29337b782d0cf5a0568a66d3fa2f5aed2768..d4d4dd0d204ba81aca3d6f6019f4428a823ad3ea 100644 (file)
@@ -1,5 +1,6 @@
 /*
- * Copyright (c) 1996,1998-2001,2003 Todd C. Miller <Todd.Miller@courtesan.com>
+ * Copyright (c) 1996, 1998-2005, 2007
+ *     Todd C. Miller <Todd.Miller@courtesan.com>
  *
  * Permission to use, copy, modify, and distribute this software for any
  * purpose with or without fee is hereby granted, provided that the above
@@ -17,7 +18,7 @@
  * Agency (DARPA) and Air Force Research Laboratory, Air Force
  * Materiel Command, USAF, under agreement number F39502-99-1-0512.
  *
- * $Sudo: interfaces.h,v 1.8 2004/02/13 21:36:43 millert Exp $
+ * $Sudo: interfaces.h,v 1.12 2008/11/09 14:13:12 millert Exp $
  */
 
 #ifndef _SUDO_INTERFACES_H
  * IP address and netmask pairs for checking against local interfaces.
  */
 struct interface {
-    struct in_addr addr;
-    struct in_addr netmask;
+    int family;        /* AF_INET or AF_INET6 */
+    union {
+       struct in_addr ip4;
+#ifdef HAVE_IN6_ADDR
+       struct in6_addr ip6;
+#endif
+    } addr;
+    union {
+       struct in_addr ip4;
+#ifdef HAVE_IN6_ADDR
+       struct in6_addr ip6;
+#endif
+    } netmask;
 };
 
 /*