Page MenuHomeFreeBSD

D50065.diff
No OneTemporary

D50065.diff

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,7 @@
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 LLINDEX(s) ((s)->sdl_index)
#ifdef _KERNEL

File Metadata

Mime Type
text/plain
Expires
Thu, Feb 12, 9:47 AM (9 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28665720
Default Alt Text
D50065.diff (565 B)

Event Timeline