]> rtime.felk.cvut.cz Git - socketcan-devel.git/log
socketcan-devel.git
17 years agoupdated tst-raw.c to check RAW sockopt functionality on Kernel 2.6
hartkopp [Tue, 29 Aug 2006 12:31:50 +0000 (12:31 +0000)]
updated tst-raw.c to check RAW sockopt functionality on Kernel 2.6

git-svn-id: svn://svn.berlios.de//socketcan/trunk@60 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoupdated Kernel 2.4 includes to values from Kernel 2.6 (e.g. PF_CAN = 29)
hartkopp [Tue, 29 Aug 2006 12:09:55 +0000 (12:09 +0000)]
updated Kernel 2.4 includes to values from Kernel 2.6 (e.g. PF_CAN = 29)
to be able to compile the test tools and can-utils again.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@59 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agosupport calling init functions when creating a new socket.
thuermann [Tue, 29 Aug 2006 11:49:49 +0000 (11:49 +0000)]
support calling init functions when creating a new socket.
rename raw_{init,exit} functions to raw_module_{init,exit}.
add raw_init() function to initialize the raw_opt structure
of newly created CAN_RAW sockets.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@58 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded discussed sockopts() for RAW-sockets to control the CAN-frames loopback
hartkopp [Tue, 29 Aug 2006 08:57:05 +0000 (08:57 +0000)]
Added discussed sockopts() for RAW-sockets to control the CAN-frames loopback
and the receiption of self created CAN-frames.
Added Kconfig option for capabilities on BCM sockets.
TODO: Set loopback as default with sock_init-function (under construction).

git-svn-id: svn://svn.berlios.de//socketcan/trunk@57 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoadded sja1000_mem due to hint of Pavel Pisa.
hartkopp [Tue, 22 Aug 2006 12:27:04 +0000 (12:27 +0000)]
added sja1000_mem due to hint of Pavel Pisa.
fixed bcm.c handling of error frames.
added CAN_RAW_USER in Kconfig
added include of linux/config.h in most files and therefore
changed some local DEBUG-defines in CONFIG_CAN_DEBUG_*
removed MODULE_PARM-macros.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@56 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded CAN_ERR_BUSERROR and CAN_ERR_RESTARTED to can_error.h
hartkopp [Mon, 10 Jul 2006 13:09:52 +0000 (13:09 +0000)]
Added CAN_ERR_BUSERROR and CAN_ERR_RESTARTED to can_error.h
Sorted the CAN_ERR_* defines of the error class mask.
Introduced CAN_ERR_CRTL_[RT]X_PASSIVE defines due to discussion.
Changed the procfs-directory from /proc/sys/net/can back to /proc/net/can.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@55 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoRemove remnants of the projects VW history (Email addresses, Makefile targets).
thuermann [Fri, 7 Jul 2006 06:58:26 +0000 (06:58 +0000)]
Remove remnants of the projects VW history (Email addresses, Makefile targets).
Move version.h to include/linux/can.
Fix Makefiles to include raw.ko and bcm.ko in compilation and to make
vcan compile again.
Change ioctl names in SJA1000 driver to make it compile again.
Add parenthesis around assignment in vcan.c to eliminate gcc warning.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@54 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoMore whitespace fixes. mscan driver still needs some more.
thuermann [Wed, 28 Jun 2006 09:10:01 +0000 (09:10 +0000)]
More whitespace fixes.  mscan driver still needs some more.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@51 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agowhitespace fixes.
thuermann [Tue, 27 Jun 2006 19:23:38 +0000 (19:23 +0000)]
whitespace fixes.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@49 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years ago Fix "warning: suggest parentheses around assignment used
avolkov [Tue, 27 Jun 2006 17:28:31 +0000 (17:28 +0000)]
 Fix "warning: suggest parentheses around assignment used
      as truth value"

Signed-off-by: Andrey Volkov <avolkov@varma-el.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@48 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years ago mscan now library, but not needless kernel module,
avolkov [Tue, 27 Jun 2006 17:27:02 +0000 (17:27 +0000)]
 mscan now library, but not needless kernel module,
 due to nature of it (always onchip system).

Signed-off-by: Andrey Volkov <avolkov@varma-el.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@47 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years ago Fix Makefiles to support building process in(out) kernel tree.
avolkov [Tue, 27 Jun 2006 17:22:38 +0000 (17:22 +0000)]
 Fix Makefiles to support building process in(out) kernel tree.

 Move can_device.[ch] back into net/can, and include it into
 candev.ko kernel module.

Signed-off-by: Andrey Volkov <avolkov@varma-el.com>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@46 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFixed $Id$ keywords in mscan source files.
thuermann [Mon, 26 Jun 2006 11:40:50 +0000 (11:40 +0000)]
Fixed $Id$ keywords in mscan source files.
  - This caused annoying diffs and log when creating branches or tags.
Added $Id$ to Makefile.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@41 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agochanges compile but are untested. no functional changes.
thuermann [Fri, 23 Jun 2006 07:17:39 +0000 (07:17 +0000)]
changes compile but are untested.  no functional changes.
add some missing static declarations.
minor changes to improve readability, reduce indentation level,
improve performance and reduce code size.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@40 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agofix typo in property name.
thuermann [Fri, 16 Jun 2006 04:54:37 +0000 (04:54 +0000)]
fix typo in property name.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@39 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoset svn:kewwords property on kv.
thuermann [Fri, 16 Jun 2006 04:52:13 +0000 (04:52 +0000)]
set svn:kewwords property on kv.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@38 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoadd a tool kv to eliminate conditional compilation for kernel versions.
thuermann [Thu, 15 Jun 2006 23:28:01 +0000 (23:28 +0000)]
add a tool kv to eliminate conditional compilation for kernel versions.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@37 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix CAN_BAUD_UNCONFIGURED bug
avolkov [Thu, 15 Jun 2006 15:49:08 +0000 (15:49 +0000)]
Fix CAN_BAUD_UNCONFIGURED bug

git-svn-id: svn://svn.berlios.de//socketcan/trunk@36 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoFix missing CAN_BAUDRATE_UNCONFIGURED
avolkov [Thu, 15 Jun 2006 15:44:26 +0000 (15:44 +0000)]
Fix missing CAN_BAUDRATE_UNCONFIGURED

git-svn-id: svn://svn.berlios.de//socketcan/trunk@35 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded missing controller state: CAN_ERR_CRTL_PASSIVE
avolkov [Thu, 15 Jun 2006 15:32:40 +0000 (15:32 +0000)]
Added missing controller state: CAN_ERR_CRTL_PASSIVE

git-svn-id: svn://svn.berlios.de//socketcan/trunk@34 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoLittle cleanup. Added missing ioctls
avolkov [Thu, 15 Jun 2006 14:18:09 +0000 (14:18 +0000)]
Little cleanup. Added missing ioctls

git-svn-id: svn://svn.berlios.de//socketcan/trunk@33 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoAdded drivers of MSCAN based mpc52xx onchip CAN
avolkov [Thu, 15 Jun 2006 13:12:14 +0000 (13:12 +0000)]
Added drivers of MSCAN based mpc52xx onchip CAN

git-svn-id: svn://svn.berlios.de//socketcan/trunk@32 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoapply patches from Marc for the 2.6 kernel to the 2.4 kernel.
thuermann [Sun, 11 Jun 2006 18:41:06 +0000 (18:41 +0000)]
apply patches from Marc for the 2.6 kernel to the 2.4 kernel.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@31 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoreplace 0 by NULL for null pointers to ioctl() functions.
thuermann [Sun, 11 Jun 2006 18:32:16 +0000 (18:32 +0000)]
replace 0 by NULL for null pointers to ioctl() functions.
add comments about usage of null pointer.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@30 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThis patch fixes the error handling in raw_sendmsg().
bet-frogger [Sun, 11 Jun 2006 16:57:58 +0000 (16:57 +0000)]
This patch fixes the error handling in raw_sendmsg().

If the memcpy_fromiovec() fails the device refcount was not decreased
by a dev_put() call. This patch adds the missing dev_put().

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@29 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThis patch adds a missing kfree() to bcm_sendmsg(). First 'op' is
bet-frogger [Sun, 11 Jun 2006 16:57:10 +0000 (16:57 +0000)]
This patch adds a missing kfree() to bcm_sendmsg(). First 'op' is
allocated but in the error path not kfree()d.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@28 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThis patch fixes a return with held lock problem in the
bet-frogger [Sun, 11 Jun 2006 16:56:36 +0000 (16:56 +0000)]
This patch fixes a return with held lock problem in the
can_rx_register() function.

If the malloc fails, the function was left without giving back the
lock, the patch gotos to out (where the lock is dropped) instead of
returning.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@27 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThis patch fixes the kmalloc call in can_dev_register(), where the GFP
bet-frogger [Sun, 11 Jun 2006 16:55:36 +0000 (16:55 +0000)]
This patch fixes the kmalloc call in can_dev_register(), where the GFP
and the size argument were swapped.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@26 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoThis patch adds __user address space qualifiers to the dev_ioctl call
bet-frogger [Sun, 11 Jun 2006 16:53:29 +0000 (16:53 +0000)]
This patch adds __user address space qualifiers to the dev_ioctl call
in can_ioctl();

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@25 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agohis patch adds __user address space qualifiers to the
bet-frogger [Sun, 11 Jun 2006 16:52:16 +0000 (16:52 +0000)]
his patch adds __user address space qualifiers to the
raw_{s,g}etsockopt() functions as well as to thier prototypes.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
git-svn-id: svn://svn.berlios.de//socketcan/trunk@24 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agochanged indentation to 8, other white space changes.
thuermann [Fri, 9 Jun 2006 10:26:34 +0000 (10:26 +0000)]
changed indentation to 8, other white space changes.
removed a couple misplaced ';' after function bodies.
bcm.c stills needs some work to reduce line lengths.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@23 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years ago!!! Changed protocol order in af_can.h.
hartkopp [Wed, 7 Jun 2006 14:08:41 +0000 (14:08 +0000)]
!!! Changed protocol order in af_can.h.
Added comments to Kconfig. Cosmetics.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@22 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agore-introduced ARPHRD_CAN.
hartkopp [Fri, 2 Jun 2006 20:42:06 +0000 (20:42 +0000)]
re-introduced ARPHRD_CAN.
Changed PF_CAN value from 30 to 29 as 30 is already used in current socket.h in the kernel.
Added comments.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@21 030b6a49-0b11-0410-94ab-b0dab22257f2

17 years agoconvert can_sys_clock in can_device to be Hz based
avolkov [Fri, 2 Jun 2006 10:49:55 +0000 (10:49 +0000)]
convert can_sys_clock in can_device to be Hz based

git-svn-id: svn://svn.berlios.de//socketcan/trunk@20 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoMoved can_device.* to a right place
avolkov [Wed, 31 May 2006 22:16:26 +0000 (22:16 +0000)]
Moved can_device.* to a right place

git-svn-id: svn://svn.berlios.de//socketcan/trunk@19 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agocleaned up can_ioctl.h / can.h
hartkopp [Wed, 31 May 2006 20:02:08 +0000 (20:02 +0000)]
cleaned up can_ioctl.h / can.h
removed ARPHRD_CAN with ARPHRD_NONE (CAN has no ARP!)

git-svn-id: svn://svn.berlios.de//socketcan/trunk@18 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoremove inclusion of version.h from header files.
thuermann [Wed, 31 May 2006 18:53:49 +0000 (18:53 +0000)]
remove inclusion of version.h from header files.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@17 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agofix formatting
avolkov [Wed, 31 May 2006 16:33:17 +0000 (16:33 +0000)]
fix formatting

git-svn-id: svn://svn.berlios.de//socketcan/trunk@16 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoAdded can_bittime type
avolkov [Wed, 31 May 2006 16:15:52 +0000 (16:15 +0000)]
Added can_bittime type

git-svn-id: svn://svn.berlios.de//socketcan/trunk@15 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agofix $ keyword
avolkov [Wed, 31 May 2006 13:58:16 +0000 (13:58 +0000)]
fix $ keyword

git-svn-id: svn://svn.berlios.de//socketcan/trunk@14 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoAdded can_device type
avolkov [Wed, 31 May 2006 13:39:37 +0000 (13:39 +0000)]
Added can_device type

git-svn-id: svn://svn.berlios.de//socketcan/trunk@13 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoNew files
avolkov [Tue, 30 May 2006 15:12:53 +0000 (15:12 +0000)]
New files

git-svn-id: svn://svn.berlios.de//socketcan/trunk@12 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agofix and complete rcv list locking.
thuermann [Mon, 29 May 2006 08:05:26 +0000 (08:05 +0000)]
fix and complete rcv list locking.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@11 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoSecurity fix:
thuermann [Fri, 12 May 2006 02:57:54 +0000 (02:57 +0000)]
Security fix:
- allow raw sockets only with CAP_NET_RAW.
- clear skbuff data before writing CAN frame to it in order to avoid passing
  random bytes to user space.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@10 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoadded CAN error frame support.
hartkopp [Thu, 11 May 2006 09:19:16 +0000 (09:19 +0000)]
added CAN error frame support.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@9 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoadd Id to svn:keywords property.
thuermann [Thu, 11 May 2006 07:59:37 +0000 (07:59 +0000)]
add Id to svn:keywords property.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@8 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agocopy version.h to sja1000 driver directory.
thuermann [Thu, 4 May 2006 19:21:26 +0000 (19:21 +0000)]
copy version.h to sja1000 driver directory.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@7 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agomove some include files.
thuermann [Thu, 4 May 2006 19:16:57 +0000 (19:16 +0000)]
move some include files.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@6 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agochanged to new directory structure.
thuermann [Thu, 4 May 2006 18:41:31 +0000 (18:41 +0000)]
changed to new directory structure.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@5 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years ago* Rearrange 2.6 subtree for a better compatibility with the vanilla kernel.
avolkov [Wed, 26 Apr 2006 10:43:33 +0000 (10:43 +0000)]
* Rearrange 2.6 subtree for a better compatibility with the vanilla kernel.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@4 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agofix version code.
thuermann [Tue, 25 Apr 2006 11:15:58 +0000 (11:15 +0000)]
fix version code.

git-svn-id: svn://svn.berlios.de//socketcan/trunk@3 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoPort kernel code to linux-2.6
thuermann [Mon, 24 Apr 2006 14:21:08 +0000 (14:21 +0000)]
Port kernel code to linux-2.6

git-svn-id: svn://svn.berlios.de//socketcan/trunk@2 030b6a49-0b11-0410-94ab-b0dab22257f2

18 years agoInitial import of llcf-2.0-pre2
thuermann [Mon, 24 Apr 2006 14:14:09 +0000 (14:14 +0000)]
Initial import of llcf-2.0-pre2

git-svn-id: svn://svn.berlios.de//socketcan/trunk@1 030b6a49-0b11-0410-94ab-b0dab22257f2