Commit Graph

23 Commits (3881e6f673ab9d6353f7fe345c3a85e8dc0521fa)

Author SHA1 Message Date
Marc Kleine-Budde 3881e6f673 Makefile: add install stage
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2016-10-04 14:27:13 +02:00
Marc Kleine-Budde 0a1372cc22 userspace headers: import userspace headers to simplify compilation
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2016-10-04 14:26:48 +02:00
Marc Kleine-Budde 07daafc825 testj1939: fix warning on 32 bit systems
testj1939.c: In function 'main':
testj1939.c:201:3: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=]
   fprintf(stderr, "- bind(, %s, %li);\n", canaddr2str(&sockname), sizeof(sockname));
   ^
testj1939.c:210:4: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=]
    fprintf(stderr, "- connect(, %s, %li);\n", canaddr2str(&peername), sizeof(peername));
    ^
testj1939.c:228:5: warning: format '%li' expects argument of type 'long int', but argument 5 has type 'unsigned int' [-Wformat=]
     fprintf(stderr, "- sendto(, <dat>, %i, 0, %s, %li);\n", todo_send, canaddr2str(&peername), sizeof(peername));
     ^
testj1939.c:254:4: warning: format '%li' expects argument of type 'long int', but argument 3 has type 'unsigned int' [-Wformat=]
    fprintf(stderr, "- recvfrom(, <dat>, %li, 0, &<peername>, %li);\n", sizeof(peername), sizeof(peername));
    ^
testj1939.c:254:4: warning: format '%li' expects argument of type 'long int', but argument 4 has type 'unsigned int' [-Wformat=]

Use 'z' as correct modifier to print sizeof().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
2016-10-04 14:24:49 +02:00
Kurt Van Dijck 0e3611464b use -w option for transport protocol examples 2016-02-23 11:01:38 +01:00
Kurt Van Dijck 1ffa9a16a4 testj1939: add -w option to keep program open 2016-02-23 09:51:16 +01:00
Kurt Van Dijck 215ca91d26 Makefile: remove .html's with make clean 2016-02-23 09:38:13 +01:00
Kurt Van Dijck 6d717b8a40 update for obsolete enable/disable using netlink 2016-02-23 09:37:46 +01:00
Kurt Van Dijck 047356608b update for dropped rtnetlink 2015-12-11 04:45:54 +01:00
Kurt Van Dijck 61b18e7ff1 fix link 2015-12-11 04:23:58 +01:00
Kurt Van Dijck bbb2f9af04 fix link 2015-12-11 04:23:18 +01:00
Kurt Van Dijck 7644a013cd split in Readme+Kickstart guide 2015-12-11 04:22:19 +01:00
Kurt Van Dijck 4f1026e9ff prepare for github 2015-12-11 04:16:41 +01:00
Kurt Van Dijck a79c16b1d2 Merge branch 'rtnetlink'
* rtnetlink:
  Revert "j1939.page: add relevant API calls"
  testj1939: print API calls
  j1939.page: add relevant API calls
  j1939.page: restructure
  testj1939: use send() when connect()ed
  testj1939: remember if peername was provided
  add .gitignore
  import sample program & help page
  initial
2015-12-11 04:12:18 +01:00
Kurt Van Dijck a14f4448ee Initial commit 2015-12-11 04:09:40 +01:00
Kurt Van Dijck 8e199945be Revert "j1939.page: add relevant API calls"
This reverts commit 234729507e.
2015-12-11 03:31:32 +01:00
Kurt Van Dijck 75dfd666c4 testj1939: print API calls 2013-11-28 10:58:59 +01:00
Kurt Van Dijck 234729507e j1939.page: add relevant API calls 2013-11-28 09:56:54 +01:00
Kurt Van Dijck 7fb5f009fd j1939.page: restructure 2013-11-28 09:56:37 +01:00
Kurt Van Dijck 854f47fa84 testj1939: use send() when connect()ed
When using connect(), don't re-use the peername but use send() without
destination information
2013-11-20 11:21:07 +01:00
Kurt Van Dijck d66e6ce4ee testj1939: remember if peername was provided
When peername was not provided, the program uses send() rather than
sendto() so the API calls are better demonstrated
2013-11-20 11:21:07 +01:00
Kurt Van Dijck 77c08edead add .gitignore 2013-11-20 11:21:07 +01:00
Kurt Van Dijck 198c5801ec import sample program & help page 2013-11-20 11:14:44 +01:00
Kurt Van Dijck fe748b1c2c initial 2013-11-18 23:30:03 +01:00