iproute2: Support for CAN network devices
Subsystems (3)
PATCH 1/2 iproute2: Fixes an issue with cross-compilation
In reply to Wolfgang Grandegger--- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
@@ -1,4 +1,5 @@ DESTDIR=/usr/ +ROOTDIR=$(DESTDIR) LIBDIR=/usr/lib/ SBINDIR=/sbin CONFDIR=/etc/iproute2
@@ -7,7 +8,7 @@ MANDIR=/share/man ARPDDIR=/var/lib/arpd # Path to db_185.h include -DBM_INCLUDE:=/usr/include +DBM_INCLUDE:=$(ROOTDIR)/usr/include DEFINES= -DRESOLVE_HOSTNAMES -DLIBDIR=\"$(LIBDIR)\"
PATCH 2/2 iproute2: Support for the CAN netlink
In reply to Wolfgang Grandegger--- include/linux/can/netlink.h | 113 ++++++++++++++++++ ip/Makefile | 2 ip/iplink.c | 2 ip/iplink_can.c | 264 ++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 379 insertions(+), 2 deletions(-)
ip/Makefile +1 -1
@@ -2,7 +2,7 @@ IPOBJ=ip.o ipaddress.o ipaddrlabel.o ipr rtm_map.o iptunnel.o ip6tunnel.o tunnel.o ipneigh.o ipntable.o iplink.o \ ipmaddr.o ipmonitor.o ipmroute.o ipprefix.o \ ipxfrm.o xfrm_state.o xfrm_policy.o xfrm_monitor.o \ - iplink_vlan.o link_veth.o link_gre.o + iplink_vlan.o link_veth.o link_gre.o iplink_can.o RTMONOBJ=rtmon.o
ip/iplink_can.c new file +264 -0
264 lines not on this page · raw message
ip/iplink.c +1 -1
@@ -72,7 +72,7 @@ void iplink_usage(void)if (iplink_have_newlink ()) {fprintf (stderr,"\n" ); -fprintf (stderr,"TYPE := { vlan | veth | vcan | dummy | ifb | macvlan }\n" ); +fprintf (stderr,"TYPE := { vlan | veth | vcan | dummy | ifb | macvlan | can }\n" ); }exit (-1 ); }
include/linux/can/netlink.h new file +113 -0
113 lines not on this page · raw message
cover iproute2: Support for CAN network devices
Hello,
here are the patches for the "ip" program of the iproute2 utility suite adding support for CAN netlinks.
1/2) iproute2: Fixes an issue with cross-compilation 2/2) iproute2: Support for the CAN netlink
The first patch is required to get it cross-compiled.
The patches are based on v2 of the patch series for the Linux kernel with the subject:
[PATCH v2 0/7] can: CAN network device driver interface and drivers
posted a few minutes ago:
http://marc.info/?l=linux-netdev&m=124212048701347&w=2
Please consider these patches for inclusion when the Linux kernel patches have been accepted.
Thanks,
Wolfgang.
Quoted 13 lines · Wolfgang Grandegger
Hello,
here are the patches for the "ip" program of the iproute2 utility suite adding support for CAN netlinks.
1/2) iproute2: Fixes an issue with cross-compilation 2/2) iproute2: Support for the CAN netlink
The first patch is required to get it cross-compiled.
The patches are based on v2 of the patch series for the Linux kernel with the subject:
Quoted 8 lines
[PATCH v2 0/7] can: CAN network device driver interface and drivers
posted a few minutes ago:
http://marc.info/?l=linux-netdev&m=124212048701347&w=2
Please consider these patches for inclusion when the Linux kernel patches have been accepted.
The mentioned Socket-CAN kernel patches including netlink support have been accepted in the meantime, see:
http://marc.info/?l=linux-netdev&m=124268656617653&w=2
Thanks,
Wolfgang.