aboutsummaryrefslogtreecommitdiff
path: root/tests/sys/netgraph/util.c
Commit message (Collapse)AuthorAgeFilesLines
* tests/netgraph: Factor out univeral data counter functionsLutz Donnerhacke2021-06-091-0/+20
| | | | | | | | Factor out the data counter helpers for other tests to use. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30699
* tests/netgraph: Fix styleLutz Donnerhacke2021-06-091-46/+54
| | | | | | | Indent all files correctly MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30692
* tests/netgraph: Attribute errors to the callerLutz Donnerhacke2021-06-081-17/+26
| | | | | | | | | Errors raised in the common util functions should raise the location of their caller to be useful and include the errno description. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30671
* tests/netgraph: Allow receiving answers to messagesLutz Donnerhacke2021-06-081-5/+12
| | | | | | | | | Add msg_handler in order to receive messages from netgraph nodes to be tested. Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30657
* tests/netgraph: Inital framework for testing libnetgraphLutz Donnerhacke2021-06-041-0/+233
Provide a framework of functions to test various netgraph modules. Tests contain: - creating, renaming, and destroying nodes - connecting and removing hooks - sending and receiving data - sending ASCII messages - errors can be passed for indiviual inspection or fail the test Reviewed by: kp MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D30629