History log of /freebsd-current/tests/sys/netgraph/util.h
Revision Date Author Comments
# 5554abd9 08-Jun-2021 Lutz Donnerhacke <donner@FreeBSD.org>

tests/netgraph: Factor out univeral data counter functions

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


# a664ade9 08-Jun-2021 Lutz Donnerhacke <donner@FreeBSD.org>

tests/netgraph: Fix style

Indent all files correctly

MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D30692


# 9021c466 08-Jun-2021 Lutz Donnerhacke <donner@FreeBSD.org>

tests/netgraph: Attribute errors to the caller

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


# 09307dbf 05-Jun-2021 Lutz Donnerhacke <donner@FreeBSD.org>

tests/netgraph: Allow receiving answers to messages

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


# 24ea1dbf 02-Jun-2021 Lutz Donnerhacke <donner@FreeBSD.org>

tests/netgraph: Inital framework for testing libnetgraph

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