]>
rtime.felk.cvut.cz Git - socketcan-devel.git/log
hartkopp [Mon, 25 Jun 2007 13:05:43 +0000 (13:05 +0000)]
Updated LDISC number to 17 (16 is occupied in the Kernel)
git-svn-id: svn://svn.berlios.de//socketcan/trunk@395
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 22 Jun 2007 08:33:18 +0000 (08:33 +0000)]
Added option '-x' to disable local loopback for sent CAN frames.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@394
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 22 Jun 2007 08:25:34 +0000 (08:25 +0000)]
Changed option name '-l' to '-x' as this option should also go into canplayer.
Cosmetics in print_help().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@393
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 22 Jun 2007 08:04:48 +0000 (08:04 +0000)]
Added option '-l' to disable local loopback for generated data.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@392
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Fri, 22 Jun 2007 03:39:34 +0000 (03:39 +0000)]
Update patch series to r390 and rebase it to linux-2.6.22-rc5-git5.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@391
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 21 Jun 2007 16:43:42 +0000 (16:43 +0000)]
Cosmetics: Making all multiline comments look equal.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@390
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Thu, 21 Jun 2007 13:33:03 +0000 (13:33 +0000)]
Remove wrong comment, cf. linux/net/core/dev.c:dev_queue_xmit_nit().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@389
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 21 Jun 2007 13:15:32 +0000 (13:15 +0000)]
Indeed in this context skb->input_dev could not be zero. So reverting my last
change.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@388
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 21 Jun 2007 13:11:17 +0000 (13:11 +0000)]
Added check for possible NULL pointer dereference.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@387
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Thu, 21 Jun 2007 13:02:24 +0000 (13:02 +0000)]
Add (untested) support for kernels before 2.6.21.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@386
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Thu, 21 Jun 2007 11:57:49 +0000 (11:57 +0000)]
Use skb->iif instead of skb->cb to pass the receiving interface
up the rx path.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@385
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Thu, 21 Jun 2007 10:29:54 +0000 (10:29 +0000)]
Remove struct raw_opt and bcm_opt and integrate them into
struct raw_scok resp. struct bcm_sock directly.
Add (untested) support for kernels < 2.6.12.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@384
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 20 Jun 2007 12:09:30 +0000 (12:09 +0000)]
Aargh, got trailing white-space wrong again. Fixed it.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@383
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 20 Jun 2007 12:03:49 +0000 (12:03 +0000)]
Change comments according to coding style document.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@382
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 20 Jun 2007 11:39:10 +0000 (11:39 +0000)]
Fix race condition in raw_getsockopt().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@381
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 20 Jun 2007 11:06:33 +0000 (11:06 +0000)]
Cosmetic changes only: white-space, line breaks, comments, etc.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@380
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 19 Jun 2007 19:15:00 +0000 (19:15 +0000)]
Updated to version
20070619 .
Removed '#' in kernel log banner at module startup.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@379
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 19 Jun 2007 18:48:40 +0000 (18:48 +0000)]
Moved sk_error_report() call outside lock_sock(sk) analogue to notifier
code in bcm.c and other kernel source.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@378
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Tue, 19 Jun 2007 18:26:21 +0000 (18:26 +0000)]
Move branch ha/locktest to trunk/kernel/2.6, making it the ne trunk version.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@377
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Tue, 19 Jun 2007 18:24:38 +0000 (18:24 +0000)]
Remove 2.6 kernel code to replace it with the version from
branch ha/locktest.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@376
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 18 Jun 2007 20:04:23 +0000 (20:04 +0000)]
Added program exit on SIOCGIFINDEX error.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@370
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 18 Jun 2007 19:59:20 +0000 (19:59 +0000)]
Disabled obsolte receive filter. Added error checking for SIOCGIFINDEX.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@369
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 14 Jun 2007 06:31:15 +0000 (06:31 +0000)]
Added option '-e' to hold the socket open even when errors like ENETDOWN or
ENODEV occur at runtime.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@354
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 11 Jun 2007 20:03:23 +0000 (20:03 +0000)]
Fix: Remove allocated filter, even when socket was not bound.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@339
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 11 Jun 2007 19:59:11 +0000 (19:59 +0000)]
Added error handling in raw_setsockopt().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@338
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 11 Jun 2007 19:28:56 +0000 (19:28 +0000)]
Added complete error handling in raw_bind().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@337
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 11 Jun 2007 16:51:54 +0000 (16:51 +0000)]
Introduced return value to raw_[add|remove]_filters() to communicate
can_rx_(un)register() problems.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@336
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 11 Jun 2007 16:15:42 +0000 (16:15 +0000)]
Fixed can_dev_register() to work even when the interface is not up.
Moved debug output to position, where *dev is valid.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@335
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Sun, 10 Jun 2007 18:21:58 +0000 (18:21 +0000)]
Changed prototypes for CAN core exported functions to use ifindex
instead of *dev to hold the dev-pointer only very local and to reduce
locking issues.
Removed some handling in the raw/bcm notifiers that caused the system to
crash, when removing the network driver under heavy load on the fly.
TODO:
Put notifier into protocol opt structure to make kmalloc/kfree obsolete.
Handle the notifiers with RCU lists.
Put notifier list 'device dependend' into dev_rcv_lists.
After that check for better notifier handling.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@334
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 8 Jun 2007 06:50:54 +0000 (06:50 +0000)]
Updated receive timestamp handling for Kernel Versions >= 2.6.22
git-svn-id: svn://svn.berlios.de//socketcan/trunk@333
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 6 Jun 2007 15:11:04 +0000 (15:11 +0000)]
Changes for new loopback handling analogue to CAN core.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@332
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 6 Jun 2007 15:04:24 +0000 (15:04 +0000)]
Added new skb->pkt_type in received skb's.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@331
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 6 Jun 2007 14:52:51 +0000 (14:52 +0000)]
Fixed missing sk reference in af_can.c / deliver().
Cosmetics.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@330
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 6 Jun 2007 13:55:23 +0000 (13:55 +0000)]
Use skb->pkt_type and skb->sk instead of skb->cb to pass loopback
flag and originating socket to netdevice drivers and back to raw_rcv().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@329
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 6 Jun 2007 13:40:05 +0000 (13:40 +0000)]
Set skb->pkt_type on CAN frames looped back from can_send().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@328
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 6 Jun 2007 13:14:37 +0000 (13:14 +0000)]
Set skb->pkt_type on received CAN frames.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@327
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Mon, 4 Jun 2007 20:30:56 +0000 (20:30 +0000)]
Set skb->protocol on CAN frames sent from can_send().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@326
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Mon, 4 Jun 2007 13:15:14 +0000 (13:15 +0000)]
Remove old & obsolete code.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@325
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 30 May 2007 19:17:21 +0000 (19:17 +0000)]
Added patch from Bjoern Riemer:
New Makefile target 'install' to simplify the installation process.
Thanks!
git-svn-id: svn://svn.berlios.de//socketcan/trunk@324
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 30 May 2007 10:58:47 +0000 (10:58 +0000)]
Add patch series for Linux-2.6.22-rc3.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@323
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 30 May 2007 07:20:18 +0000 (07:20 +0000)]
Added new commandline option '-B' which acts like the bridging option '-b' but
disables the local loopback functionality (for ECU analysis and MITM-attacks :)
Fixed missing fflush().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@322
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 24 May 2007 15:44:37 +0000 (15:44 +0000)]
Added hardware abstraction layer for low cost SJA1000 parallelport CAN adaptor.
CAN200 project homepage http://private.addcom.de/horo/can200
This hal is based on a patch from Uwe Bonnes. Tnx for that.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@321
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 23 May 2007 18:31:44 +0000 (18:31 +0000)]
Added MODULE_LICENSE, MODULE_DESCRIPTION and MODULE_AUTHOR.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@320
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 23 May 2007 14:13:31 +0000 (14:13 +0000)]
Reverted introduction of the irq_handler pointer as it didn't solve the
problem with parport support ... sorry.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@319
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 23 May 2007 13:56:13 +0000 (13:56 +0000)]
Reordered __init and __exit functions to the end of the driver code.
Added the possibility to make the pointer to the irq_handler available
in the hal e.g. for creating a hal that uses the parport subsystem.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@318
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 23 May 2007 09:38:53 +0000 (09:38 +0000)]
Update CAN version.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@317
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 23 May 2007 09:27:48 +0000 (09:27 +0000)]
Further cleanup: use "data" argument to can_proc_read_rcvlist() function.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@316
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 23 May 2007 08:37:09 +0000 (08:37 +0000)]
Eliminate some code duplication.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@315
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 22 May 2007 11:24:01 +0000 (11:24 +0000)]
Added hardware abstraction layer for the esd 3xCAN pc104 board provided by
Bjoern Riemer (after some beautifications ;-) Tnx.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@314
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 22 May 2007 07:48:51 +0000 (07:48 +0000)]
Added missing hw_detach() calls at device cleanup.
Added some debug output.
Thanks to Bjoern Riemer for the error report & feedback.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@313
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 18 May 2007 19:48:54 +0000 (19:48 +0000)]
Updated CAN version to
20070518
git-svn-id: svn://svn.berlios.de//socketcan/trunk@312
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 18 May 2007 19:47:14 +0000 (19:47 +0000)]
Updated RCU removal of dev_rcv_lists structures in the case of CAN-interfaces
going down (in can_notifier). Thanks to Paul E. McKenny (IBM) who gave this
hint on netdev kernel mailinglist.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@311
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 16 May 2007 09:03:21 +0000 (09:03 +0000)]
Remove trailing white-space at end of lines.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@310
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 16 May 2007 05:51:05 +0000 (05:51 +0000)]
Clarifying some SocketCAN behaviour in the documentation.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@309
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Sun, 13 May 2007 20:46:02 +0000 (20:46 +0000)]
Some more notable things in Wolfgangs Credit. Tnx.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@308
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Sun, 13 May 2007 20:40:03 +0000 (20:40 +0000)]
Changed can.txt Credits due to feedback.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@307
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Sun, 13 May 2007 20:36:27 +0000 (20:36 +0000)]
Added file that was missing in r304.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@306
030b6a49 -0b11-0410-94ab-
b0dab22257f2
wolf [Sun, 13 May 2007 19:49:57 +0000 (19:49 +0000)]
Fix problems with building Socket-CAN for MPC5200
This patch fixes some build issues with missing version.h and updates
the MSCAN Makefile for out-of-tree compilation.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@305
030b6a49 -0b11-0410-94ab-
b0dab22257f2
wolf [Sun, 13 May 2007 19:47:23 +0000 (19:47 +0000)]
Add support for creating a complete kernel patch
This patch permits to make a "full" Socket-CAN patch including all drivers
with "make patch26all". Furthermore, an error message is printed by mkpatch,
when the general diff file for the detected kernel version does not exist.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@304
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Sun, 13 May 2007 15:13:55 +0000 (15:13 +0000)]
Added CAN_RAW socket documetation (including sockopts).
git-svn-id: svn://svn.berlios.de//socketcan/trunk@303
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 11 May 2007 20:45:43 +0000 (20:45 +0000)]
ongoing documentation.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@302
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 11 May 2007 15:02:45 +0000 (15:02 +0000)]
Updated Credits due to given feedback.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@301
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 20:24:45 +0000 (20:24 +0000)]
Remove old unused code.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@300
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 20:05:51 +0000 (20:05 +0000)]
Reduce stack usage in can_create() to the minimum needed,
CAN_NPROTO must not (and never will) be greater than 1000.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@299
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 19:53:11 +0000 (19:53 +0000)]
Print KERN_ERR message if request_module() fails.
Add a comment how this causes can_create() to return with error.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@298
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 19:08:14 +0000 (19:08 +0000)]
Reorder #include directives.
Remove superfluous braces.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@297
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 9 May 2007 17:40:55 +0000 (17:40 +0000)]
cosmetic.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@296
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 07:36:43 +0000 (07:36 +0000)]
Remove trailing whitespace and blank lines.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@295
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 9 May 2007 07:33:34 +0000 (07:33 +0000)]
Added missing initialisation to prevent a gcc warning.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@294
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 9 May 2007 06:20:34 +0000 (06:20 +0000)]
Delete #include <linux/version.h> and $Id$ lines.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@293
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 8 May 2007 17:58:17 +0000 (17:58 +0000)]
Updated some copyright notices from 2005 to 2007.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@292
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 8 May 2007 17:53:10 +0000 (17:53 +0000)]
Changed SocketCAN Version from 2.0.0-pre7 to
20070508 .
git-svn-id: svn://svn.berlios.de//socketcan/trunk@291
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Tue, 8 May 2007 11:38:50 +0000 (11:38 +0000)]
Local variable initializiation to eliminate GCC warning.
Add spinlock to protect raw_opt to be accesses from raw_notifier().
Add lock_sock()/release_sock() to protect from cocurrent syscalls.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@290
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Tue, 8 May 2007 09:09:03 +0000 (09:09 +0000)]
ongoing ducumentation.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@289
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 20:08:46 +0000 (20:08 +0000)]
Continued documentation.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@288
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 17:03:00 +0000 (17:03 +0000)]
renamed obsolete dev_kfree_skb() to kfree_skb().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@287
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 16:49:06 +0000 (16:49 +0000)]
Fixed debug output.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@286
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 16:29:32 +0000 (16:29 +0000)]
Added skb orphan code to free the skb from it's former owner before the
loopback of the skb.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@285
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 16:12:11 +0000 (16:12 +0000)]
Made loopback depending on tx socket reference.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@284
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 14:14:46 +0000 (14:14 +0000)]
Added pending loopback checks in error cases.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@283
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 14:06:06 +0000 (14:06 +0000)]
fixed typo.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@282
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 14:03:08 +0000 (14:03 +0000)]
Added loopback functionality in SJA1000 driver. Default On.
See added comment or Documentation/networking/can.txt .
git-svn-id: svn://svn.berlios.de//socketcan/trunk@281
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Mon, 7 May 2007 11:56:27 +0000 (11:56 +0000)]
Removed linux/autoconf.h which is not needed, when compiling inside the
Kernel. It is also useless when compiling outside the Kernel. The
settings made by Kconfig have to be provided by the Makefile.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@280
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Fri, 4 May 2007 11:59:41 +0000 (11:59 +0000)]
Minor cosmetic changes.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@279
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Fri, 4 May 2007 11:58:06 +0000 (11:58 +0000)]
Clean up optlen checking and copying to user-space
in getsockopt() and setsockopt().
Note: For getsockopt, POSIX requires the optval to be truncated *silently*
if *optlen is too small.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@278
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 4 May 2007 11:25:44 +0000 (11:25 +0000)]
Added socket locking in broadcast manager sendmsg().
git-svn-id: svn://svn.berlios.de//socketcan/trunk@277
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Fri, 4 May 2007 06:04:53 +0000 (06:04 +0000)]
Added comment regarding kernel hrtimer. Low prio for now.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@276
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 3 May 2007 16:42:43 +0000 (16:42 +0000)]
Updated patch to vanilla 2.6.21.
Removed the ipv6 patch. This is another thread on the LKML ...
git-svn-id: svn://svn.berlios.de//socketcan/trunk@275
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 3 May 2007 15:37:10 +0000 (15:37 +0000)]
removed spinlocks for now as i got a dead lock on heavy CAN traffic with
heavy proc_fs reading. I assume a spinlock is really not needed here.
Checking again tomorrow.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@274
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 3 May 2007 13:24:10 +0000 (13:24 +0000)]
Added comment about cutting off the proc_fs output at PAGE_SIZE.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@273
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 3 May 2007 10:28:41 +0000 (10:28 +0000)]
Changed module param name from drv_loopback to loopback.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@272
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Thu, 3 May 2007 10:26:19 +0000 (10:26 +0000)]
Added locking to CAN core proc_fs output.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@271
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 15:58:17 +0000 (15:58 +0000)]
Added some blank lines.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@270
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 15:55:02 +0000 (15:55 +0000)]
Added comment regarding the currently local DBG macro.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@269
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 15:41:14 +0000 (15:41 +0000)]
Introduced the module param 'drv_loopback' to switch the vcan driver into
the appropriate loopback mode at loading time.
This makes tests of the CAN core more easy and can additionally be used as
a reference implementation hint.
Also added some comments.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@268
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 2 May 2007 14:50:53 +0000 (14:50 +0000)]
Allow sending and receiving of packets only on CAN interfaces.
Add notice to help text in Kconfig.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@267
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 14:05:23 +0000 (14:05 +0000)]
Using enum instead if multiple defines. Cosmetics.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@266
030b6a49 -0b11-0410-94ab-
b0dab22257f2
thuermann [Wed, 2 May 2007 13:51:38 +0000 (13:51 +0000)]
Reduce use of a somewhat ugly type-cast.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@265
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 13:09:41 +0000 (13:09 +0000)]
Updated configuration help for non-root CAN access.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@264
030b6a49 -0b11-0410-94ab-
b0dab22257f2
hartkopp [Wed, 2 May 2007 09:48:11 +0000 (09:48 +0000)]
Moved timeval2jiffies function from af_can.c to bcm.c and added a comment why
using the kernel function timeval_to_jiffies() is problematic here.
TODO: Check if this could be a hrtimer use-case here.
git-svn-id: svn://svn.berlios.de//socketcan/trunk@263
030b6a49 -0b11-0410-94ab-
b0dab22257f2