Commit Graph

34 Commits

Author SHA1 Message Date
knakahara b8f54fc79b add ipsec(4) interface ATF. 2018-01-10 11:06:06 +00:00
bouyer 6e4cb2b9ab 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.
2017-05-27 21:02:54 +00:00
ozaki-r 0b5da45aff Add tests for ipsec
- Check if setkey correctly handles algorithms for AH/ESP
- Check IPsec of transport mode with AH/ESP over IPv4/IPv6
- Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6
2017-04-14 02:56:48 +00:00
knakahara abf7aa227e add l2tp(4) basic test. 2017-02-16 08:44:47 +00:00
ozaki-r 6d9a9bf113 Add basic tests for vlan(4) 2016-11-26 03:19:48 +00:00
ozaki-r 13445aedf0 Add very basic tests for tun devices 2016-09-05 02:26:48 +00:00
ozaki-r c73a69e593 Add a new test case for PPPoE using PAP
From s-yamaguchi@IIJ (with some tweaks by me)
2016-04-15 01:38:16 +00:00
ozaki-r be7deda7eb Add tests for tap(4) 2016-03-04 02:44:45 +00:00
knakahara 9875a0c6a0 add basic if_gif tests to ATF. 2015-11-05 00:02:59 +00:00
ozaki-r 2f55a7d3ed Add tests for NDP 2015-08-03 09:54:20 +00:00
ozaki-r 8fd2ad14ac Add tests for ARP
Forgot to commit this. Should fix the build.
2015-07-29 12:05:10 +00:00
matt b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
ozaki-r 8a6480b1eb Run mcast tests on rump kernels
The tests on anita qemus failed due to that the host network environment
didn't meet the tests.

The change makes the tests independent from host environments
and the tests will pass on any environments including anita qemus.

Discussed on tech-kern and tech-net.
2015-05-26 00:42:07 +00:00
christos f845fc8e2c MKRUMP=no fixes (Robert Swindells) 2015-05-20 17:39:04 +00:00
christos fca19cad2d Port the in_cksum test from regress. 2015-01-05 22:38:36 +00:00
christos dec90ca99d add a multicast test (what to do with v6?) 2014-10-11 23:04:42 +00:00
ozaki-r 5937935b47 Add net/if_bridge test 2014-09-18 15:13:27 +00:00
alnsn d32d6008b1 Add bpfjit kernel tests for loading from mbuf chain. 2014-06-30 21:30:51 +00:00
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
kefren ff6f2bd928 Add a couple of basic IP/MPLS forwarding tests 2013-07-19 04:00:40 +00:00
nakayama f7f884f97e Enable tests which does not require rump if MKRUMP=no.
Pointed out by christos on source-changes-d.
2013-07-03 14:01:29 +00:00
martin 001611b06f ATF wrapping of the npf tests 2012-09-12 14:06:31 +00:00
alnsn e7e64dcaa1 Build and install t_bpfilter. 2012-08-14 19:13:54 +00:00
christos e3b23739ec add fdpass tests 2012-08-13 11:15:05 +00:00
christos cb461c6808 Exclude tests that use rump 2012-08-08 13:57:05 +00:00
pooka 5e6b266d97 Time to start adding tests for the routing code to make that part
of the kernel more approachable.

Begin the task with an xfail test for PR kern/40455.
2011-02-08 10:11:28 +00:00
pooka 68e1e43ec7 add test for PR kern/44369 2011-01-11 10:51:45 +00:00
pooka 7119e5be14 convert program in PR kern/44054 to an atf test case 2010-11-07 19:53:42 +00:00
pooka 1a6a53bd1a Add a most elementary carp test: it forks off two processes,
configures carp in each of them, and after verifying that the shared
address responds to ping it brutally kills the master like a proper
carnivore (none of that ifconfig down sissy vegan nonsense).  Then
the test checks if the backup got its act together by pinging the
shared address and passes verdict.
2010-08-10 21:55:28 +00:00
pooka 3185d2a443 Add xfail test for kernel diagnostic panic described in PR kern/43664 2010-07-25 21:42:08 +00:00
jmmv 9d0b4b5bb8 Get rid of static Atffiles and let bsd.test.mk generate them on the fly. 2010-07-13 21:13:21 +00:00
pooka 369e70628a descend into icmp 2010-07-04 19:31:30 +00:00
pooka 513ca2875b Check that bpf doesn't accept programs with divide-by-zero in them.
Example filter from Guy Harris via PR kern/43185.
2010-04-21 11:07:34 +00:00
jmmv e44ee884d0 Add regression tests for low-port allocation in connect and listen, which
was broken and fixed recently in:
http://mail-index.netbsd.org/source-changes/2007/12/16/0011.html

Test-case code provided by elad@.
2007-12-23 13:50:22 +00:00