diff options
author | rwatson <rwatson@FreeBSD.org> | 2008-12-25 11:32:38 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2008-12-25 11:32:38 +0000 |
commit | 13abb9545e8019d2493e6ad241827056ea4e67c6 (patch) | |
tree | 81ae5d5c4ba289a5168061ec21220f35674bec80 /etc/rc.resume | |
parent | 69460f7965c65bcb613097dd6715e3779420ec53 (diff) | |
download | FreeBSD-src-13abb9545e8019d2493e6ad241827056ea4e67c6.zip FreeBSD-src-13abb9545e8019d2493e6ad241827056ea4e67c6.tar.gz |
Following the recent security advisory, add a comment describing our
invariants and approach for protocol switch methods in protsw_init(),
and also some KASSERT's for non-domain init entries in protocol
switch tables: pru_abort and pru_send must both be implemented.
For now, leave those assertions #if 0'd, since there are a few
protocols that violate them in non-harmful ways. Whether or not we
should enforce pru_abort being implemented for non-stream protocols
is an interesting question: currently abort is only invoked on stream
sockets in situations where un-accepted sockets must be abruptly
closed (i.e., close() on a listen socket with pending connections),
but in principle it is useful for datagram sockets and most datagram
socket types implement it.
MFC after: 3 weeks
Diffstat (limited to 'etc/rc.resume')
0 files changed, 0 insertions, 0 deletions