Page MenuHomeFreeBSD

dnctl: Support reading config from file like ipfw(8)
ClosedPublic

Authored by kp on Dec 23 2021, 2:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 1:12 AM
Unknown Object (File)
Jan 4 2026, 1:25 AM
Unknown Object (File)
Dec 24 2025, 1:33 PM
Unknown Object (File)
Dec 20 2025, 11:42 PM
Unknown Object (File)
Nov 9 2025, 7:40 AM
Unknown Object (File)
Nov 6 2025, 10:36 PM
Unknown Object (File)
Nov 4 2025, 10:56 AM
Unknown Object (File)
Oct 31 2025, 7:16 AM
Subscribers

Details

Summary

Extend the dnctl (dummynet config) tool to be able to read commands from
a file, just like ipfw already does.

Sponsored by: Rubicon Communications, LLC ("Netgate")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kp requested review of this revision.Dec 23 2021, 2:51 PM

Looks like there's some whitespace adjustment included too. Will that be a separate commit?

In D33627#760102, @cy wrote:

Looks like there's some whitespace adjustment included too. Will that be a separate commit?

I didn't intend for there to be any, other than increasing the indent level of the while ((c = getopt(ac, av, "cfNnp:qS")) != -1) loop, and as far as I can tell that's the only whitespace change.

This revision was not accepted when it landed; it landed in state Needs Review.Jan 3 2022, 12:56 PM
This revision was automatically updated to reflect the committed changes.