summaryrefslogtreecommitdiff
path: root/net/netdude/files/patch-protocols-ether::nd_ether_callbacks.c
blob: 988c81609f4f057cc2484c9e976d121f459119ec (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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));
     }