Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146569272
D23477.id67680.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
526 B
Referenced Files
None
Subscribers
None
D23477.id67680.diff
View Options
Index: sys/netgraph/ng_source.c
===================================================================
--- sys/netgraph/ng_source.c
+++ sys/netgraph/ng_source.c
@@ -567,8 +567,11 @@
}
KASSERT(hook == sc->input, ("%s: no hook!", __func__));
- /* Enqueue packet. */
- /* XXX should we check IF_QFULL() ? */
+ /* Enqueue packet if the queue isn't full. */
+ if (_IF_QFULL(&sc->snd_queue)) {
+ NG_FREE_M(m);
+ return (error);
+ }
_IF_ENQUEUE(&sc->snd_queue, m);
sc->queueOctets += m->m_pkthdr.len;
sc->last_packet = m;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Mar 4, 5:47 PM (9 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29232125
Default Alt Text
D23477.id67680.diff (526 B)
Attached To
Mode
D23477: netgraph: If queue is full, don't enqueue in ng_source_rcvdata()
Attached
Detach File
Event Timeline
Log In to Comment