tcp_syncache.c (195699) | tcp_syncache.c (195727) |
---|---|
1/*- 2 * Copyright (c) 2001 McAfee, Inc. 3 * Copyright (c) 2006 Andre Oppermann, Internet Business Solutions AG 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Jonathan Lemon 7 * and McAfee Research, the Security Research Division of McAfee, Inc. under 8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2001 McAfee, Inc. 3 * Copyright (c) 2006 Andre Oppermann, Internet Business Solutions AG 4 * All rights reserved. 5 * 6 * This software was developed for the FreeBSD Project by Jonathan Lemon 7 * and McAfee Research, the Security Research Division of McAfee, Inc. under 8 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 195699 2009-07-14 22:48:30Z rwatson $"); | 34__FBSDID("$FreeBSD: head/sys/netinet/tcp_syncache.c 195727 2009-07-16 21:13:04Z rwatson $"); |
35 36#include "opt_inet.h" 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 55 unchanged lines hidden (view full) --- 98 99#include <security/mac/mac_framework.h> 100 101static VNET_DEFINE(struct tcp_syncache, tcp_syncache); 102static VNET_DEFINE(int, tcp_syncookies); 103static VNET_DEFINE(int, tcp_syncookiesonly); 104VNET_DEFINE(int, tcp_sc_rst_sock_fail); 105 | 35 36#include "opt_inet.h" 37#include "opt_inet6.h" 38#include "opt_ipsec.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 55 unchanged lines hidden (view full) --- 98 99#include <security/mac/mac_framework.h> 100 101static VNET_DEFINE(struct tcp_syncache, tcp_syncache); 102static VNET_DEFINE(int, tcp_syncookies); 103static VNET_DEFINE(int, tcp_syncookiesonly); 104VNET_DEFINE(int, tcp_sc_rst_sock_fail); 105 |
106#define V_tcp_syncache VNET_GET(tcp_syncache) 107#define V_tcp_syncookies VNET_GET(tcp_syncookies) 108#define V_tcp_syncookiesonly VNET_GET(tcp_syncookiesonly) | 106#define V_tcp_syncache VNET(tcp_syncache) 107#define V_tcp_syncookies VNET(tcp_syncookies) 108#define V_tcp_syncookiesonly VNET(tcp_syncookiesonly) |
109 110SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, syncookies, CTLFLAG_RW, 111 &VNET_NAME(tcp_syncookies), 0, 112 "Use TCP SYN cookies if the syncache overflows"); 113 114SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, syncookies_only, CTLFLAG_RW, 115 &VNET_NAME(tcp_syncookiesonly), 0, 116 "Use only TCP SYN cookies"); --- 1660 unchanged lines hidden --- | 109 110SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, syncookies, CTLFLAG_RW, 111 &VNET_NAME(tcp_syncookies), 0, 112 "Use TCP SYN cookies if the syncache overflows"); 113 114SYSCTL_VNET_INT(_net_inet_tcp, OID_AUTO, syncookies_only, CTLFLAG_RW, 115 &VNET_NAME(tcp_syncookiesonly), 0, 116 "Use only TCP SYN cookies"); --- 1660 unchanged lines hidden --- |