Page MenuHomeFreeBSD

syslogd: Add host forwarding test
Needs ReviewPublic

Authored by jfree on Sun, Nov 17, 7:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Nov 20, 12:04 AM
Unknown Object (File)
Tue, Nov 19, 9:15 PM
Unknown Object (File)
Tue, Nov 19, 3:03 PM
Unknown Object (File)
Tue, Nov 19, 8:48 AM
Unknown Object (File)
Tue, Nov 19, 8:24 AM
Subscribers

Details

Reviewers
markj
Summary

Test communication between hosts by setting up two syslogd instances,
each binded to their own addresses, and sending a message from one to
the other. The tests passes if the message was delivered and logged
successfully.

This required some tweaking to the syslogd start and stop routines so
they could handle launching multiple syslogd instances with different
runtime files.

Run the tests in jails with an isolated VNET so they don't fail due to
an address bind collision in the host's VNET.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60647
Build 57531: arc lint + arc unit

Event Timeline

jfree requested review of this revision.Sun, Nov 17, 7:57 PM
usr.sbin/syslogd/tests/syslogd_test.sh
30

IMO it'd be a bit cleaner to just handle this with getopts.

311

Do these addresses get assigned to an interface anywhere?

319

-a isn't handled by syslogd_start, does it get passed to syslogd somehow?