summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2006-08-04 21:27:40 +0000
committerbrooks <brooks@FreeBSD.org>2006-08-04 21:27:40 +0000
commitbc6ab54808cf20a40cd7ba44043d40db1ec2e78e (patch)
tree8d2ec18b3dc5661b1a620411a3011fe06c385eb7 /sys/net/if_var.h
parenta27569a919b7f3495c9e7e4e943fce36d8380f7b (diff)
downloadFreeBSD-src-bc6ab54808cf20a40cd7ba44043d40db1ec2e78e.zip
FreeBSD-src-bc6ab54808cf20a40cd7ba44043d40db1ec2e78e.tar.gz
With exception of the if_name() macro, all definitions in net_osdep.h
were unused or already in if_var.h so add if_name() to if_var.h and remove net_osdep.h along with all references to it. Longer term we may want to kill off if_name() entierly since all modern BSDs have if_xname variables rendering it unnecessicary.
Diffstat (limited to 'sys/net/if_var.h')
-rw-r--r--sys/net/if_var.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index 84ac364..a73d781 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -222,6 +222,7 @@ typedef void if_init_f_t(void *);
/* for compatibility with other BSDs */
#define if_addrlist if_addrhead
#define if_list if_link
+#define if_name(ifp) ((ifp)->if_xname)
/*
* Locks for address lists on the network interface.
OpenPOWER on IntegriCloud