Patchwork ip: correctly report 802.15.4 link type

login
register
mail settings
Submitter Jan Engelhardt
Date July 25, 2010, 8:28 p.m.
Message ID <1280089683-12020-2-git-send-email-jengelh@medozas.de>
Download mbox | patch
Permalink /patch/59879/
State Superseded
Delegated to: stephen hemminger
Headers show

Comments

Jan Engelhardt - July 25, 2010, 8:28 p.m.
Up until now, the "hardwpan" devices were displayed as link/[804].

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
---
 lib/ll_types.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
stephen hemminger - July 26, 2010, 4:35 p.m.
On Sun, 25 Jul 2010 22:28:02 +0200
Jan Engelhardt <jengelh@medozas.de> wrote:

> Up until now, the "hardwpan" devices were displayed as link/[804].
> 
> Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
> ---
>  lib/ll_types.c |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
> 
> diff --git a/lib/ll_types.c b/lib/ll_types.c
> index 846cdb0..1cc46b6 100644
> --- a/lib/ll_types.c
> +++ b/lib/ll_types.c
> @@ -125,6 +125,9 @@ __PF(IEEE80211_PRISM,ieee802.11/prism)
>  #ifdef ARPHRD_IEEE80211_RADIOTAP
>  __PF(IEEE80211_RADIOTAP,ieee802.11/radiotap)
>  #endif
> +#ifdef ARPHRD_IEEE802154
> +__PF(IEEE802154, ieee802.15.4)
> +#endif
>  #ifdef ARPHRD_NONE
>  __PF(NONE, none)
>  #endif

Already fixed.

Patch

diff --git a/lib/ll_types.c b/lib/ll_types.c
index 846cdb0..1cc46b6 100644
--- a/lib/ll_types.c
+++ b/lib/ll_types.c
@@ -125,6 +125,9 @@  __PF(IEEE80211_PRISM,ieee802.11/prism)
 #ifdef ARPHRD_IEEE80211_RADIOTAP
 __PF(IEEE80211_RADIOTAP,ieee802.11/radiotap)
 #endif
+#ifdef ARPHRD_IEEE802154
+__PF(IEEE802154, ieee802.15.4)
+#endif
 #ifdef ARPHRD_NONE
 __PF(NONE, none)
 #endif