summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2018-03-25 03:45:02 +0000
committerae <ae@FreeBSD.org>2018-03-25 03:45:02 +0000
commit6573d8b17cbc2988ce47baec3fdcbc23b06a3a6d (patch)
tree5e3e2618c7c8dff8571206f74d8de11dcba00b8b /lib
parentc86b199b321d36d8fc24b6f5b2feb3d9f41233f8 (diff)
downloadFreeBSD-src-6573d8b17cbc2988ce47baec3fdcbc23b06a3a6d.zip
FreeBSD-src-6573d8b17cbc2988ce47baec3fdcbc23b06a3a6d.tar.gz
MFC r330779:
Rework key_sendup_mbuf() a bit: o count in_nomem counter when we have failed to allocate mbuf for promisc socket; o count in_msgtarget counter when we have secussfully sent data to socket; o Since we are sending messages in a loop, returning error on first fail interrupts the loop, and all remaining sockets will not receive this message. So, do not return error when we have failed to send data to ALL or REGISTERED target. Return error only for KEY_SENDUP_ONE case. Now, when some socket has overfilled its receive buffer, this will not break other sockets.
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud