Commit Graph

20 Commits

Author SHA1 Message Date
christos
bac8521a43 moved to tests/net/in_cksum. 2015-01-05 22:39:29 +00:00
pgoyette
ccb4fdff6f ether_aton test has been atf-ified 2011-11-01 23:07:34 +00:00
christos
531a87f792 Test all digits. 2011-11-01 13:59:00 +00:00
ws
ad730b8b4f Replace ed usage with awk script.
Fixes PR toolchain/45532, generating the exact same output as previously.
Note that it doesn't address Tsutsui's additional check request.
2011-11-01 12:52:28 +00:00
joerg
8e2b771d40 Use ${HOST_SH} 2010-12-20 16:13:44 +00:00
rmind
f72965d18d Don't overrun the buffer, when writing some payload. 2010-10-03 19:41:25 +00:00
rmind
29dd668442 Add a regression test for IPv4 reassembly. Cases:
- Normal (valid) fragments.
- Fragment with ip_off + hlen lower than IP_MINFRAGSIZE - 1.
- Different ip_tos values in fragments.
- Fragment data length which is not multiple of 8 bytes.
- Duplicate fragments (one covering previous).
- Packet larger than IP_MAXPACKET after reassembly.
- No last non-MF fragment (causing of timeout).
2010-07-13 22:13:18 +00:00
christos
95aad9cc1b verify hex digits. 2010-05-19 21:59:34 +00:00
christos
f65592ae19 regression test for ether_aton_r() 2010-05-19 21:55:35 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
yamt
90306066c9 remove an unused prototype. (rdtsc) 2008-02-05 10:00:17 +00:00
uwe
c2b2ccc344 Add -D_LOCORE to AFLAGS. 2008-02-02 18:18:14 +00:00
chris
e083edeb16 Force the last loop to always walk all the data in the mbuf chain.
It appears that randomness was against me when I updated the arm version
as it crashes when used for real.  By forcing one full walk of the mbuf
chain the regression tool crashes, hinting that something is wrong.
2008-01-27 16:49:13 +00:00
simonb
2c3f5b99b6 Add some aligned tests for the more "normal" cases. Even though this is
primarily a regression tool, it's still a useful benchmark tool so we
might as well try relatively real-world tests as well.

Ok joerg@.
2008-01-26 04:56:45 +00:00
chris
8184079c4d Fix typo, assum.h -> assym.h 2008-01-26 02:07:13 +00:00
joerg
c0e2333a0f Add regression test and benchmark for the upcoming cpu_in_cksum.
This is inspired by an older test case written by Charles Hannum.
cvs: ----------------------------------------------------------------------
2008-01-24 18:12:29 +00:00
pavel
02a38a5320 Regression test for reads past the end of a packet (out of bounds reads).
Those should abort the bpf program.

The test currently fails (out of bound reads silently return zeros), but
succeeds if lo0 is replaced by an Ethernet interface and 127.0.0.1 by an
address reachable through it.

A fix is being worked on.

Approved by martin.
2006-03-24 13:54:58 +00:00
rpaulo
9c7380b5d3 Moved to interface/interface.c 2005-12-25 22:24:57 +00:00
rpaulo
31e9b918de Change ioctls.c to interface/interface.c to accomodate further
addition of regressions tests.
2005-12-25 22:07:01 +00:00
rpaulo
5233f18e7f Add a simple program to test bpf ioctls. A more comprehensive test for
bpf filters will follow up shortly.
2005-12-14 23:55:02 +00:00