summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2012-05-19 02:39:43 +0000
committermarcel <marcel@FreeBSD.org>2012-05-19 02:39:43 +0000
commit434c53cbc31ab5ad90ba5119cb80f658a52345a1 (patch)
tree07ca34fb7f517054627aaba05428f1a326f84c4c /sys/net
parent5374cd448cdcfb007709e244eeb204d8d1644807 (diff)
downloadFreeBSD-src-434c53cbc31ab5ad90ba5119cb80f658a52345a1.zip
FreeBSD-src-434c53cbc31ab5ad90ba5119cb80f658a52345a1.tar.gz
Use the LLINDEX macro to access the link-level I/F index. This makes
it possible to work with a different type for the sdl_index field -- it only requires a recompile. Obtained from: Juniper Networks, Inc.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_dl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if_dl.h b/sys/net/if_dl.h
index 8d88623..64f4b56 100644
--- a/sys/net/if_dl.h
+++ b/sys/net/if_dl.h
@@ -67,6 +67,7 @@ struct sockaddr_dl {
};
#define LLADDR(s) ((caddr_t)((s)->sdl_data + (s)->sdl_nlen))
+#define LLINDEX(s) ((s)->sdl_index)
#ifndef _KERNEL
OpenPOWER on IntegriCloud