svn commit: r256522 - head/sys/net

Gleb Smirnoff glebius at FreeBSD.org
Tue Oct 15 10:43:27 UTC 2013


Author: glebius
Date: Tue Oct 15 10:43:26 2013
New Revision: 256522
URL: http://svnweb.freebsd.org/changeset/base/256522

Log:
  Push some defines under _KERNEL, improve styling and comments.

Modified:
  head/sys/net/if_var.h

Modified: head/sys/net/if_var.h
==============================================================================
--- head/sys/net/if_var.h	Tue Oct 15 10:41:22 2013	(r256521)
+++ head/sys/net/if_var.h	Tue Oct 15 10:43:26 2013	(r256522)
@@ -808,17 +808,17 @@ struct ifaddr {
 };
 #endif
 
+#ifdef _KERNEL
 #define	IFA_ROUTE	RTF_UP		/* route installed */
-#define IFA_RTSELF	RTF_HOST	/* loopback route to self installed */
+#define	IFA_RTSELF	RTF_HOST	/* loopback route to self installed */
 
-/* for compatibility with other BSDs */
+/* For compatibility with other BSDs. SCTP uses it. */
 #define	ifa_list	ifa_link
 
-#ifdef _KERNEL
 struct ifaddr *	ifa_alloc(size_t size, int flags);
 void	ifa_free(struct ifaddr *ifa);
 void	ifa_ref(struct ifaddr *ifa);
-#endif
+#endif /* _KERNEL */
 
 /*
  * Multicast address structure.  This is analogous to the ifaddr


More information about the svn-src-head mailing list