Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F138011182
D21968.id82441.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D21968.id82441.diff
View Options
diff --git a/share/man/man4/ng_source.4 b/share/man/man4/ng_source.4
--- a/share/man/man4/ng_source.4
+++ b/share/man/man4/ng_source.4
@@ -32,7 +32,7 @@
.\" Author: Dave Chapeskie
.\" $FreeBSD$
.\"
-.Dd March 1, 2007
+.Dd January 18, 2021
.Dt NG_SOURCE 4
.Os
.Sh NAME
@@ -91,7 +91,14 @@
.Xr ng_ether 4
node manually.
.Pp
-Once interface is configured, upon receipt of a
+If the node is connected to a netgraph network, which does not
+terminate in a real
+.Xr ng_ether 4
+interface, limit the packet injection rate explicitly with the
+.Va NGM_SOURCE_SETPPS
+control message.
+.Pp
+Upon receipt of a
.Dv NGM_SOURCE_START
control message the node starts sending
the previously queued packets out the
diff --git a/sys/netgraph/ng_source.c b/sys/netgraph/ng_source.c
--- a/sys/netgraph/ng_source.c
+++ b/sys/netgraph/ng_source.c
@@ -683,8 +683,8 @@
static int
ng_source_start(sc_p sc, uint64_t packets)
{
- if (sc->output_ifp == NULL) {
- printf("ng_source: start without iface configured\n");
+ if (sc->output_ifp == NULL && sc->stats.maxPps == 0) {
+ printf("ng_source: start without iface or pps configured\n");
return (ENXIO);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 29, 3:21 AM (17 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26315797
Default Alt Text
D21968.id82441.diff (1 KB)
Attached To
Mode
D21968: netgraph/ng_source: Allow ng_source to inject into any netgraph network
Attached
Detach File
Event Timeline
Log In to Comment