Christian Gabriel
d66977868f
fix: Set CAN state to ERROR_ACTIVE, init supported
...
Signed-off-by: Christian Gabriel <ch_gabriel@web.de>
2024-07-23 15:22:00 -04:00
Christian Gabriel
9dd9a74b9e
Add support for bitrate setting
...
Allow userspace daemon to report currently set bitrates via ioctl.
Also allow setting bitrates via kernel interfaces and report the
new bitrates to userspace daemon
Signed-off-by: Christian Gabriel <ch_gabriel@web.de>
2024-07-23 15:22:00 -04:00
Christian Gabriel
760b9d8e34
Add compile-time size checks to neomessage sizes
...
All versions of the struct need to be the same size. Ensure they are.
Signed-off-by: Christian Gabriel <ch_gabriel@web.de>
2024-07-23 15:22:00 -04:00
Christian Gabriel
c888a206d9
Save client version
...
This allows to use old daemons with new versions of the driver
which do not support newer features yet
Signed-off-by: Christian Gabriel <ch_gabriel@web.de>
2024-07-23 15:21:43 -04:00
Christian Gabriel
b69aaf12ab
Add can_priv to intrepid_netdevice
...
For CAN network devices, the kernel expects struct can_priv as first
member of netdev_priv.
Signed-off-by: Christian Gabriel <ch_gabriel@web.de>
2024-07-23 15:21:43 -04:00
Kyle Schwarz
4841b2863c
3.0.4
...
- Update copyright
- Add Fedora package requirements to README
2024-01-02 10:24:49 -05:00
Kyle Schwarz
f92a946a08
Update copyright for 2024
2024-01-02 10:20:23 -05:00
kschwarz-intrepidcs
9caa973a5a
Merge pull request #16 from genrad/master
...
Fix for newer 6.4.x Kernel, class_create() sig changed
2023-09-08 10:08:29 -04:00
Kyle Schwarz
67c196ddfe
Update daemon version requirement
...
Bump to 3.1.*
2023-09-07 13:55:08 -04:00
Doug Potts
2ee6101ec2
Fix for newer 6.5 Kernel, class_create() sig changed
2023-09-01 17:00:47 -04:00
Kyle Schwarz
f67b4b3620
Bump maximum device count to 64
2023-07-11 22:37:06 -04:00
Kyle Schwarz
cd073b2019
3.0.1
...
Update copyright & changlog
2023-05-05 00:23:51 -04:00
Kyle Schwarz
198cc74e21
Fix usermode daemon version check
2022-09-01 14:29:43 -04:00
Kyle Schwarz
e455a8847c
Add missing brackets
2022-08-31 16:21:28 -04:00
Gary Chong
5d25e80c35
Added Functionality for Ethernet
2022-08-16 17:21:17 -04:00
Paul Hollinsky
6e9319c3f4
v2.1.1
...
Fix support for kernels <5.12
Tested on 5.4.0
2022-04-01 14:24:37 -04:00
Paul Hollinsky
7c2338125f
Support kernels before echo lengths were tracked
...
This applies to anything before 5.12.0
2022-04-01 14:24:02 -04:00
Paul Hollinsky
c515de3a25
Update copyright date to 2022
2022-03-31 18:22:54 -04:00
Paul Hollinsky
a46b3c62ed
Properly implement IFF_ECHO
...
Transmit receipts will now be properly reported as echos
upon successful transmission.
2022-03-31 15:39:03 -04:00
Paul Hollinsky
8a21b53cd1
v2.0.5
...
Add support for kernels 5.9+
Tested on 5.11.0-rc5
CAN frames with length > 8 from userspace are rejected rather
than truncated
2021-01-29 15:54:24 -05:00
Paul Hollinsky
9da27da69e
Use non-sensitive kfree function
...
This is not sensitive data, kzfree was just used for symmetry.
kzfree was actually renamed to kfree_sensitive to show that
the symmetry was unfounded.
This change will allow us to compile in kernels 5.10+
2021-01-29 15:50:05 -05:00
Paul Hollinsky
6bbcf1b527
Reject CAN frames with length > 8
...
Previously, they were just truncated.
In any case, this is only hit if the userspace daemon
gives us more than 8 bytes for CAN, which it shouldn't.
2021-01-29 15:47:43 -05:00
Paul Hollinsky
6025ea1349
v2.0.4
...
Ensure carrier is up on new kernels which require it
2019-11-13 22:49:35 -05:00
Paul Hollinsky
d75acfa8a5
v2.0.3
...
Add support for kernels 5.1+
Tested on 5.3.0 (Ubuntu 19.10)
2019-11-06 10:14:53 -05:00
Paul Hollinsky
96836cb186
v2.0.2
...
Add support for older kernels
Tested working properly back to 4.4
Disabled aliasing for kernels <4.15
Required, as these kernels do not have netdevice aliasing
Use the correct format specifier for (s)size_t
Resolves a compile-time warning on 32-bit
Check the return type of copy_from_user
Resolves a compile-time warning on ARM
Standardize kernel version checking
Requires icsscand >= v2.0.1
icsscand v2.0.0 will not work with older kernels, and would display an obscure error
2019-08-27 18:39:21 -04:00
Paul Hollinsky
03235819fc
Use the correct format specifier for (s)size_t
2019-08-27 18:20:34 -04:00
Paul Hollinsky
5031840429
Resolve warnings about unused variables when aliases are disabled
2019-08-27 18:19:31 -04:00
Paul Hollinsky
17569a82a9
Check the return type of copy_from_user
2019-08-27 18:16:50 -04:00
Paul Hollinsky
3a043ecedd
Standardize kernel version check defines
2019-08-27 13:59:47 -04:00
Paul Hollinsky
b5dfcee1e1
Support for kernels < 4.10.0
...
With 4.10.0 and later, the MTU bounds are checked by the kernel
We don't allow the client to set MTU yet so this is somewhat moot
2019-08-27 13:58:03 -04:00
Paul Hollinsky
6c061d771e
Tell the kernel our MAX_MTU rather than using CANFD_MTU directly
2019-08-27 13:54:34 -04:00
Paul Hollinsky
408459cbe2
Remove aliasing support for kernels < 4.15
2019-08-27 12:53:44 -04:00
Paul Hollinsky
a9233ab3a2
v2.0.1
...
Resolve warning on changing MTU
Reviewed our locking behavior, made tweaks where necessary
2019-08-14 11:37:46 -04:00
Paul Hollinsky
3bbef8679d
Initial commit of Version 2.0.0, with CAN FD support
2019-05-02 19:24:20 -04:00
Nick Brown
5e5f774e01
Fix compilation issues when compiling against Linux versions greater than 4.11
...
In Linux 4.11.0, the vma argument was removed from the
vm_operations_struct::fault function.
In Linux 4.11.9, the netdevice destructor function was renamed to
priv_destructor and a needs_free_netdev member was added to the structure,
which should be set to true if the kernel module does not free its own struct
net_device upon exit.
2017-12-01 12:41:00 -05:00
Jeffrey Quesnelle
e1c3f37c65
initial commit of socketcan ko
2016-07-28 09:03:28 -04:00