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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to