Add support Controller Area Network

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.
This commit is contained in:
Oliver Hartkopp 2009-03-27 11:21:29 -07:00 committed by Stephen Hemminger
parent c3651bf476
commit 98f9a1d244
3 changed files with 3 additions and 1 deletions

View 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);

View 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" },

View 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)