]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Add interface_info structure
authorTed Lemon <source@isc.org>
Thu, 11 Apr 1996 06:47:50 +0000 (06:47 +0000)
committerTed Lemon <source@isc.org>
Thu, 11 Apr 1996 06:47:50 +0000 (06:47 +0000)
includes/inet.h
inet.h

index 8c8e67172660547d6c40d9e2c980575f18534804..ca87c4fb21593c29834ac76b42ce6f74c733718d 100644 (file)
  * Enterprises, see ``http://www.vix.com''.
  */
 
+/* An internet address of up to 128 bits. */
+
 struct iaddr {
        int len;
        unsigned char iabuf [16];
 };
 
+/* Information about each network interface. */
+
+struct interface_info {
+       struct interface_info *next;    /* Next interface in list... */
+       struct subnet *local_subnet;    /* This interface's subnet. */
+       struct iaddr address;           /* Its IP address. */
+       int rfdesc;                     /* Its read file descriptor. */
+       int wfdesc;                     /* Its write file descriptor, if
+                                          different. */
+};
diff --git a/inet.h b/inet.h
index 8c8e67172660547d6c40d9e2c980575f18534804..ca87c4fb21593c29834ac76b42ce6f74c733718d 100644 (file)
--- a/inet.h
+++ b/inet.h
  * Enterprises, see ``http://www.vix.com''.
  */
 
+/* An internet address of up to 128 bits. */
+
 struct iaddr {
        int len;
        unsigned char iabuf [16];
 };
 
+/* Information about each network interface. */
+
+struct interface_info {
+       struct interface_info *next;    /* Next interface in list... */
+       struct subnet *local_subnet;    /* This interface's subnet. */
+       struct iaddr address;           /* Its IP address. */
+       int rfdesc;                     /* Its read file descriptor. */
+       int wfdesc;                     /* Its write file descriptor, if
+                                          different. */
+};