Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From: Alexander Aring <alex.aring@gmail.com>
- Date: Mon, 28 Sep 2015 13:30:24 +0200
- Subject: [PATCH] fix
- Signed-off-by: Alexander Aring <alex.aring@gmail.com>
- ---
- device-linux.c | 9 ++++++++-
- 1 file changed, 8 insertions(+), 1 deletion(-)
- diff --git a/device-linux.c b/device-linux.c
- index fa7d9784314e..f125103eef1f 100644
- --- a/device-linux.c
- +++ b/device-linux.c
- @@ -22,6 +22,10 @@
- #define IPV6_ADDR_LINKLOCAL 0x0020U
- #endif
- +#ifndef ARPHRD_6LOWPAN
- +#define ARPHRD_6LOWPAN 825
- +#endif
- +
- static char const *hwstr(unsigned short sa_family);
- /*
- @@ -79,7 +83,7 @@ int update_device_info(int sock, struct Interface *iface)
- iface->sllao.if_maxmtu = -1;
- break;
- #endif /* ARPHDR_ARCNET */
- - case ARPHRD_IEEE802154:
- + case ARPHRD_6LOWPAN:
- iface->sllao.if_hwaddr_len = 64;
- iface->sllao.if_prefix_len = 64;
- break;
- @@ -377,6 +381,9 @@ static char const *hwstr(unsigned short sa_family)
- case ARPHRD_VOID:
- rc = "ARPHRD_VOID";
- break;
- + case ARPHRD_6LOWPAN:
- + rc = "ARPHRD_6LOWPAN";
- + break;
- case ARPHRD_NONE:
- rc = "ARPHRD_NONE";
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement