summaryrefslogtreecommitdiff
path: root/net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 09:52:50 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2002-11-24 09:52:50 +0000
commit95984d4c265dfb5b770b261882d3d08f1cfc3420 (patch)
tree5e3322a0dc9e51db9d59784cd34d1b1685c5ea26 /net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c
parentmake graphics/tosvcd compile on -current again (diff)
Make net/netdude compiling on -current again.
PR: ports/45538 Submitted by: Paul Everlund <tdv94ped@cs.umu.se>
Notes
Notes: svn path=/head/; revision=70980
Diffstat (limited to 'net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c')
-rw-r--r--net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c b/net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c
new file mode 100644
index 000000000000..988c81609f4f
--- /dev/null
+++ b/net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c
@@ -0,0 +1,28 @@
+--- protocols/ether/nd_ether_callbacks.c.orig Sat Oct 12 00:20:26 2002
++++ protocols/ether/nd_ether_callbacks.c Sat Oct 12 00:23:48 2002
+@@ -22,6 +22,7 @@
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ */
++#include <sys/types.h>
+ #include <net/ethernet.h>
+ #include <netdude/nd.h>
+ #include <netdude/nd_debug.h>
+@@ -54,7 +55,7 @@
+ if (!eh)
+ continue;
+
+- memcpy(eh->ether_shost, address, ETH_ALEN);
++ memcpy(eh->ether_shost, address, ETHER_ADDR_LEN);
+ nd_packet_modified_at_index(nd_pit_get(&pit), nd_pit_get_index(&pit));
+ }
+
+@@ -84,7 +85,7 @@
+ if (!eh)
+ continue;
+
+- memcpy(eh->ether_dhost, address, ETH_ALEN);
++ memcpy(eh->ether_dhost, address, ETHER_ADDR_LEN);
+ nd_packet_modified_at_index(nd_pit_get(&pit), nd_pit_get_index(&pit));
+ }
+