The NetBSD Project

CVS log for src/tests/net/can/t_can.c

[BACK] Up to [cvs.NetBSD.org] / src / tests / net / can

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 20 20:25:28 2021 UTC (2 years, 7 months ago) by andvar
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored)

fix various typos in comments and log messages.

Revision 1.6.6.1 / (download) - annotate - [select for diffs], Mon Apr 13 08:05:29 2020 UTC (4 years ago) by martin
Branch: phil-wifi
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored) next main 1.7 (colored)

Mostly merge changes from HEAD upto 20200411

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jun 24 06:26:29 2019 UTC (4 years, 9 months ago) by skrll
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.6: +3 -3 lines
Diff to previous 1.6 (colored)

Another spello of 'unknown'

Revision 1.5.2.1 / (download) - annotate - [select for diffs], Thu Jun 15 05:32:35 2017 UTC (6 years, 10 months ago) by snj
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek
Changes since 1.5: +28 -2 lines
Diff to previous 1.5 (colored) next main 1.6 (colored)

Pull up following revision(s) (requested by bouyer in ticket #34):
	sys/netcan/can_pcb.c: revision 1.6
	tests/net/can/t_can.c: revision 1.6
Refuse to bind to a non-CAN interface.
Also release the lock in the error branch.
--
Test bind()ing to a non-existent interface.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 9 08:23:45 2017 UTC (6 years, 10 months ago) by bouyer
Branch: MAIN
CVS Tags: phil-wifi-base, phil-wifi-20190609, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646
Branch point for: phil-wifi
Changes since 1.5: +28 -2 lines
Diff to previous 1.5 (colored)

Test bind()ing to a non-existent interface.

Revision 1.5 / (download) - annotate - [select for diffs], Sun May 28 14:53:13 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-8-base
Branch point for: netbsd-8
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

undo previous; we don't have any archs where socklen_t != uint32_t.

Revision 1.4 / (download) - annotate - [select for diffs], Sun May 28 14:49:00 2017 UTC (6 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.3: +4 -4 lines
Diff to previous 1.3 (colored)

fix format.

Revision 1.3 / (download) - annotate - [select for diffs], Sun May 28 09:35:01 2017 UTC (6 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.2: +4 -4 lines
Diff to previous 1.2 (colored)

Fix size_t format strings

Revision 1.2 / (download) - annotate - [select for diffs], Sat May 27 21:02:56 2017 UTC (6 years, 10 months ago) by bouyer
Branch: MAIN
Changes since 1.1: +734 -0 lines
Diff to previous 1.1 (colored)

merge the bouyer-socketcan branch to HEAD.

CAN stands for Controller Area Network, a broadcast network used
in automation and automotive fields. For example, the NMEA2000 standard
developped for marine devices uses a CAN network as the link layer.

This is an implementation of the linux socketcan API:
https://www.kernel.org/doc/Documentation/networking/can.txt
you can also see can(4).

This adds a new socket family (AF_CAN) and protocol (PF_CAN),
as well as the canconfig(8) utility, used to set timing parameter of
CAN hardware. Also inclued is a driver for the CAN controller
found in the allwinner A20 SoC (I tested it with an Olimex lime2 board,
connected with PIC18-based CAN devices).

There is also the canloop(4) pseudo-device, which allows to use
the socketcan API without CAN hardware.

At this time the CANFD part of the linux socketcan API is not implemented.
Error frames are not implemented either. But I could get the cansend and
canreceive utilities from the canutils package to build and run with minimal
changes. tcpudmp(8) can also be used to record frames, which can be
decoded with etherreal.

Revision 1.1.2.7 / (download) - annotate - [select for diffs], Mon Apr 17 20:41:26 2017 UTC (7 years ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.6: +12 -22 lines
Diff to previous 1.1.2.6 (colored) to branchpoint 1.1 (colored) next main 1.2 (colored)

Make it build from build.sh (fix warnings)

Revision 1.1.2.6 / (download) - annotate - [select for diffs], Sun Feb 5 12:18:20 2017 UTC (7 years, 2 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.5: +12 -95 lines
Diff to previous 1.1.2.5 (colored) to branchpoint 1.1 (colored)

Factor out creation of socket with CAN_RAW_RECV_OWN_MSGS

Revision 1.1.2.5 / (download) - annotate - [select for diffs], Sun Feb 5 12:03:23 2017 UTC (7 years, 2 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.4: +25 -112 lines
Diff to previous 1.1.2.4 (colored) to branchpoint 1.1 (colored)

factor out socket bind to interface

Revision 1.1.2.4 / (download) - annotate - [select for diffs], Sun Feb 5 11:44:17 2017 UTC (7 years, 2 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.3: +4 -4 lines
Diff to previous 1.1.2.3 (colored) to branchpoint 1.1 (colored)

Decrease timeout from 2 to 1 second. Speeds up the tests where timeout is
the expected case, and it should still be enough to get the looped back
packet.

Revision 1.1.2.3 / (download) - annotate - [select for diffs], Sat Feb 4 22:26:16 2017 UTC (7 years, 2 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.2: +27 -138 lines
Diff to previous 1.1.2.2 (colored) to branchpoint 1.1 (colored)

Factor out reading from a can socket, and move to a helper file.

Revision 1.1.2.2 / (download) - annotate - [select for diffs], Mon Jan 16 18:04:27 2017 UTC (7 years, 3 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1.2.1: +344 -7 lines
Diff to previous 1.1.2.1 (colored) to branchpoint 1.1 (colored)

Adapt to CAN_RAW_RECV_OWN_MSGS being off by default, and test
CAN_RAW_RECV_OWN_MSGS and CAN_RAW_LOOPBACK options.

Revision 1.1.2.1 / (download) - annotate - [select for diffs], Sun Jan 15 20:29:01 2017 UTC (7 years, 3 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.1: +688 -0 lines
Diff to previous 1.1 (colored)

Basic tests for our SocketCAN implementation (using rump)

Revision 1.1, Sun Jan 15 20:29:01 2017 UTC (7 years, 3 months ago) by bouyer
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, bouyer-socketcan-base1
Branch point for: bouyer-socketcan
FILE REMOVED

file t_can.c was initially added on branch bouyer-socketcan.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>