Advertisement
Guest User

Untitled

a guest
Sep 28th, 2015
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. From: Alexander Aring <alex.aring@gmail.com>
  2. Date: Mon, 28 Sep 2015 13:30:24 +0200
  3. Subject: [PATCH] fix
  4.  
  5. Signed-off-by: Alexander Aring <alex.aring@gmail.com>
  6. ---
  7. device-linux.c | 9 ++++++++-
  8. 1 file changed, 8 insertions(+), 1 deletion(-)
  9.  
  10. diff --git a/device-linux.c b/device-linux.c
  11. index fa7d9784314e..f125103eef1f 100644
  12. --- a/device-linux.c
  13. +++ b/device-linux.c
  14. @@ -22,6 +22,10 @@
  15. #define IPV6_ADDR_LINKLOCAL 0x0020U
  16. #endif
  17.  
  18. +#ifndef ARPHRD_6LOWPAN
  19. +#define ARPHRD_6LOWPAN 825
  20. +#endif
  21. +
  22. static char const *hwstr(unsigned short sa_family);
  23.  
  24. /*
  25. @@ -79,7 +83,7 @@ int update_device_info(int sock, struct Interface *iface)
  26. iface->sllao.if_maxmtu = -1;
  27. break;
  28. #endif /* ARPHDR_ARCNET */
  29. - case ARPHRD_IEEE802154:
  30. + case ARPHRD_6LOWPAN:
  31. iface->sllao.if_hwaddr_len = 64;
  32. iface->sllao.if_prefix_len = 64;
  33. break;
  34. @@ -377,6 +381,9 @@ static char const *hwstr(unsigned short sa_family)
  35. case ARPHRD_VOID:
  36. rc = "ARPHRD_VOID";
  37. break;
  38. + case ARPHRD_6LOWPAN:
  39. + rc = "ARPHRD_6LOWPAN";
  40. + break;
  41. case ARPHRD_NONE:
  42. rc = "ARPHRD_NONE";
  43. break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement