PERFORCE change 80798 for review

soc-anders soc-anders at FreeBSD.org
Fri Jul 22 22:09:48 GMT 2005


http://perforce.freebsd.org/chv.cgi?CH=80798

Change 80798 by soc-anders at soc-anders_gimli on 2005/07/22 22:09:10

	Moved in_aliasreq from in_var.h to in.h 

Affected files ...

.. //depot/projects/soc2005/ifcleanup/src/src/sys/netinet/in.h#2 edit

Differences ...

==== //depot/projects/soc2005/ifcleanup/src/src/sys/netinet/in.h#2 (text+ko) ====

@@ -37,6 +37,10 @@
 #include <sys/_types.h>
 #include <machine/endian.h>
 
+/* XXX Temporary solution to minimize changes to consumers */
+#include <sys/socket.h>
+#include <net/if.h> 
+
 /* Protocols common to RFC 1700, POSIX, and X/Open. */
 #define	IPPROTO_IP		0		/* dummy for IP */
 #define	IPPROTO_ICMP		1		/* control message protocol */
@@ -423,6 +427,14 @@
 #define	IP_DEFAULT_MULTICAST_LOOP 1	/* normally hear sends if a member  */
 #define	IP_MAX_MEMBERSHIPS	20	/* per socket */
 
+struct	in_aliasreq {
+	char	ifra_name[IFNAMSIZ];		/* if name, e.g. "en0" */
+	struct	sockaddr_in ifra_addr;
+	struct	sockaddr_in ifra_broadaddr;
+#define ifra_dstaddr ifra_broadaddr
+	struct	sockaddr_in ifra_mask;
+};
+
 /*
  * Argument structure for IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
  */


More information about the p4-projects mailing list