Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   roy
Date:           Mon Mar 19 16:26:26 UTC 2018

Modified Files:
        src/lib/libc/sys: recv.2
        src/sys/kern: uipc_socket2.c uipc_usrreq.c
        src/sys/net: raw_usrreq.c
        src/sys/netinet: udp_usrreq.c
        src/sys/netinet6: udp6_usrreq.c
        src/sys/netipsec: keysock.c
        src/sys/sys: socketvar.h

Log Message:
socket: report receive buffer overflows

Add soroverflow() which increments the overflow counter, sets so_error
to ENOBUFS and wakes the receive socket up.
Replace all code that manually increments this counter with soroverflow().
Add soroverflow() to raw_input().

This allows userland to detect route(4) overflows so it can re-sync
with the current state.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/lib/libc/sys/recv.2
cvs rdiff -u -r1.127 -r1.128 src/sys/kern/uipc_socket2.c
cvs rdiff -u -r1.183 -r1.184 src/sys/kern/uipc_usrreq.c
cvs rdiff -u -r1.58 -r1.59 src/sys/net/raw_usrreq.c
cvs rdiff -u -r1.245 -r1.246 src/sys/netinet/udp_usrreq.c
cvs rdiff -u -r1.137 -r1.138 src/sys/netinet6/udp6_usrreq.c
cvs rdiff -u -r1.62 -r1.63 src/sys/netipsec/keysock.c
cvs rdiff -u -r1.150 -r1.151 src/sys/sys/socketvar.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index