aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/dn.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2013-08-01 19:17:47 -0400
committerDavid S. Miller <davem@davemloft.net>2013-08-02 15:33:54 -0400
commite216975ad97cfcfc436789aa66d59a0e93f337f7 (patch)
tree663a82d6e67757a80f51d4e9dda1c714bb92d6a6 /include/uapi/linux/dn.h
parentbd3f5433255292d8d5080b532e729a577ec4912c (diff)
uapi: Convert some uses of 6 to ETH_ALEN
Use the #define where appropriate. Add #include <linux/if_ether.h> where appropriate too. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/dn.h')
-rw-r--r--include/uapi/linux/dn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/uapi/linux/dn.h b/include/uapi/linux/dn.h
index 9c50445462d9..5fbdd3d49eba 100644
--- a/include/uapi/linux/dn.h
+++ b/include/uapi/linux/dn.h
@@ -2,6 +2,7 @@
2#define _LINUX_DN_H 2#define _LINUX_DN_H
3 3
4#include <linux/types.h> 4#include <linux/types.h>
5#include <linux/if_ether.h>
5 6
6/* 7/*
7 8
@@ -120,7 +121,7 @@ struct linkinfo_dn {
120 * Ethernet address format (for DECnet) 121 * Ethernet address format (for DECnet)
121 */ 122 */
122union etheraddress { 123union etheraddress {
123 __u8 dne_addr[6]; /* Full ethernet address */ 124 __u8 dne_addr[ETH_ALEN]; /* Full ethernet address */
124 struct { 125 struct {
125 __u8 dne_hiord[4]; /* DECnet HIORD prefix */ 126 __u8 dne_hiord[4]; /* DECnet HIORD prefix */
126 __u8 dne_nodeaddr[2]; /* DECnet node address */ 127 __u8 dne_nodeaddr[2]; /* DECnet node address */