]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
Add support Controller Area Network
authorOliver Hartkopp <oliver@hartkopp.net>
Fri, 27 Mar 2009 18:21:29 +0000 (11:21 -0700)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Fri, 27 Mar 2009 18:21:29 +0000 (11:21 -0700)
t's not a big problem, but it makes a better show in 'ip link show' on
CAN interfaces :-)

I also moved __PF(CAN,can) in ll_proto.c to the same position where it
can be found in if_ether.h .

The only thing i did not know if the __PF(CAN,can) in ll_types.c needs
to be put in #ifdef ARPHDR_CAN like __PF(HWX25,hwx25) is or not. You
definitely know that better than me.

ip/ipaddress.c
lib/ll_proto.c
lib/ll_types.c

index b055b68b8314ba9d7285d01d7bd4c31c06e972b8..267ecb36ac3a5844426d006a52a911af7fa16d06 100644 (file)
@@ -109,6 +109,7 @@ void print_link_flags(FILE *fp, unsigned flags, unsigned mdown)
        _PF(UP);
        _PF(LOWER_UP);
        _PF(DORMANT);
+       _PF(ECHO);
 #undef _PF
         if (flags)
                fprintf(fp, "%x", flags);
index 1057ee3f18e8711c18641d4f7c8f997543966373..cdd1602e35f99a2916a46d817cce2991a07b0869 100644 (file)
@@ -84,6 +84,7 @@ __PF(DDCMP,ddcmp)
 __PF(WAN_PPP,wan_ppp)
 __PF(PPP_MP,ppp_mp)
 __PF(LOCALTALK,localtalk)
+__PF(CAN,can)
 __PF(PPPTALK,ppptalk)
 __PF(TR_802_2,tr_802_2)
 __PF(MOBITEX,mobitex)
@@ -94,7 +95,6 @@ __PF(ECONET,econet)
 #endif
 __PF(TIPC,tipc)
 __PF(AOE,aoe)
-__PF(CAN,can)
 
 { 0x8100, "802.1Q" },
 { ETH_P_IP, "ipv4" },
index d47dee7d2fc5fdd1a5a730520b228ca3d13cd09d..9d75bd26032a766e3a863ada70062333f120bb43 100644 (file)
@@ -70,6 +70,7 @@ __PF(X25,x25)
 #ifdef ARPHRD_HWX25
 __PF(HWX25,hwx25)
 #endif
+__PF(CAN,can)
 __PF(PPP,ppp)
 __PF(HDLC,hdlc)
 __PF(LAPB,lapb)