Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163281975
D50065.id154894.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
610 B
Referenced Files
None
Subscribers
None
D50065.id154894.diff
View Options
diff --git a/sys/net/if_dl.h b/sys/net/if_dl.h
--- a/sys/net/if_dl.h
+++ b/sys/net/if_dl.h
@@ -32,6 +32,8 @@
#ifndef _NET_IF_DL_H_
#define _NET_IF_DL_H_
+#include <sys/_types.h>
+
/*
* A Link-Level Sockaddr may specify the interface in one of two
* ways: either by means of a system-provided index number (computed
@@ -65,7 +67,8 @@
contains both if name and ll address */
};
-#define LLADDR(s) ((caddr_t)((s)->sdl_data + (s)->sdl_nlen))
+#define LLADDR(s) (&(s)->sdl_data[(s)->sdl_nlen])
+#define CLLADDR(s) ((const char *)LLADDR(s))
#define LLINDEX(s) ((s)->sdl_index)
struct ifnet;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 5:21 PM (4 h, 29 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35373650
Default Alt Text
D50065.id154894.diff (610 B)
Attached To
Mode
D50065: net/if_dl.h: make self-contained
Attached
Detach File
Event Timeline
Log In to Comment