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:
parent
7a11654a92
commit
49ac1dbeaa
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue