1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

can: cosmetic changes to can nodetype draft

This commit is contained in:
Niklas Eiling 2020-03-03 15:05:52 +01:00 committed by Steffen Vogel
parent 7a11654a92
commit 49ac1dbeaa

View file

@ -13,6 +13,7 @@
#include <stdint.h>
#include <sys/time.h>
/** An accurate timestamp can be obtained with an ioctl(2) call after reading
* a message from the socket:
*
@ -116,6 +117,8 @@ int can_send(char *ifn)
return -1;
}
printf("%d,%d\n", a.tv_sec, a.tv_usec);
strcpy(ifr.ifr_name, ifname);
ioctl(s, SIOCGIFINDEX, &ifr);