socket: Properly inherit AUTOLOWAT and AUTOSIZE from listen socket
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 16 Nov 2011 02:23:04 +0000 (10:23 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Wed, 16 Nov 2011 02:26:42 +0000 (10:26 +0800)
commit15d2bc79d633c676c76b686e21fa33036b5ebe69
tree146d423615262eaf58314aed9c8d141fd4a5add4
parent939c81e437fba5db85fb9d7fd41b12da3f5e3752
socket: Properly inherit AUTOLOWAT and AUTOSIZE from listen socket

The soreserve and pru_attach could set these two flags internally,
so the original code will only retain those two flags but not clear
them if the listen socket does not have them.  We now explicitly
check those two flags and then set or clear them accordingly.
sys/kern/uipc_socket2.c