head	1.16;
access;
symbols
	netbsd-11-0-RC4:1.16
	netbsd-11-0-RC3:1.16
	netbsd-11-0-RC2:1.16
	netbsd-11-0-RC1:1.16
	perseant-exfatfs-base-20250801:1.16
	netbsd-11:1.16.0.12
	netbsd-11-base:1.16
	netbsd-10-1-RELEASE:1.16
	perseant-exfatfs-base-20240630:1.16
	perseant-exfatfs:1.16.0.10
	perseant-exfatfs-base:1.16
	netbsd-8-3-RELEASE:1.14
	netbsd-9-4-RELEASE:1.14
	netbsd-10-0-RELEASE:1.16
	netbsd-10-0-RC6:1.16
	netbsd-10-0-RC5:1.16
	netbsd-10-0-RC4:1.16
	netbsd-10-0-RC3:1.16
	netbsd-10-0-RC2:1.16
	thorpej-ifq:1.16.0.8
	thorpej-ifq-base:1.16
	thorpej-altq-separation:1.16.0.6
	thorpej-altq-separation-base:1.16
	netbsd-10-0-RC1:1.16
	netbsd-10:1.16.0.4
	netbsd-10-base:1.16
	bouyer-sunxi-drm:1.16.0.2
	bouyer-sunxi-drm-base:1.16
	netbsd-9-3-RELEASE:1.14
	thorpej-i2c-spi-conf2:1.15.0.14
	thorpej-i2c-spi-conf2-base:1.15
	thorpej-futex2:1.15.0.12
	thorpej-futex2-base:1.15
	thorpej-cfargs2:1.15.0.10
	thorpej-cfargs2-base:1.15
	cjep_sun2x-base1:1.15
	cjep_sun2x:1.15.0.8
	cjep_sun2x-base:1.15
	cjep_staticlib_x-base1:1.15
	netbsd-9-2-RELEASE:1.14
	cjep_staticlib_x:1.15.0.6
	cjep_staticlib_x-base:1.15
	thorpej-i2c-spi-conf:1.15.0.4
	thorpej-i2c-spi-conf-base:1.15
	thorpej-cfargs:1.15.0.2
	thorpej-cfargs-base:1.15
	thorpej-futex:1.14.0.24
	thorpej-futex-base:1.15
	netbsd-9-1-RELEASE:1.14
	bouyer-xenpvh-base2:1.14
	phil-wifi-20200421:1.14
	bouyer-xenpvh-base1:1.14
	phil-wifi-20200411:1.14
	bouyer-xenpvh:1.14.0.22
	bouyer-xenpvh-base:1.14
	is-mlppp:1.14.0.20
	is-mlppp-base:1.14
	phil-wifi-20200406:1.14
	netbsd-8-2-RELEASE:1.14
	ad-namecache-base3:1.14
	netbsd-9-0-RELEASE:1.14
	netbsd-9-0-RC2:1.14
	ad-namecache-base2:1.14
	ad-namecache-base1:1.14
	ad-namecache:1.14.0.18
	ad-namecache-base:1.14
	netbsd-9-0-RC1:1.14
	phil-wifi-20191119:1.14
	netbsd-9:1.14.0.16
	netbsd-9-base:1.14
	phil-wifi-20190609:1.14
	netbsd-8-1-RELEASE:1.14
	netbsd-8-1-RC1:1.14
	isaki-audio2:1.14.0.14
	isaki-audio2-base:1.14
	pgoyette-compat-merge-20190127:1.14
	pgoyette-compat-20190127:1.14
	pgoyette-compat-20190118:1.14
	pgoyette-compat-1226:1.14
	pgoyette-compat-1126:1.14
	pgoyette-compat-1020:1.14
	pgoyette-compat-0930:1.14
	pgoyette-compat-0906:1.14
	netbsd-7-2-RELEASE:1.11
	pgoyette-compat-0728:1.14
	netbsd-8-0-RELEASE:1.14
	phil-wifi:1.14.0.12
	phil-wifi-base:1.14
	pgoyette-compat-0625:1.14
	netbsd-8-0-RC2:1.14
	pgoyette-compat-0521:1.14
	pgoyette-compat-0502:1.14
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.14
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.11
	pgoyette-compat:1.14.0.10
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.11
	tls-maxphys-base-20171202:1.14
	matt-nb8-mediatek:1.14.0.8
	matt-nb8-mediatek-base:1.14
	nick-nhusb-base-20170825:1.14
	perseant-stdc-iso10646:1.14.0.6
	perseant-stdc-iso10646-base:1.14
	netbsd-8:1.14.0.4
	netbsd-8-base:1.14
	prg-localcount2-base3:1.14
	prg-localcount2-base2:1.14
	prg-localcount2-base1:1.14
	prg-localcount2:1.14.0.2
	prg-localcount2-base:1.14
	pgoyette-localcount-20170426:1.14
	bouyer-socketcan-base1:1.14
	jdolecek-ncq:1.13.0.6
	jdolecek-ncq-base:1.13
	pgoyette-localcount-20170320:1.13
	netbsd-7-1:1.11.0.12
	netbsd-7-1-RELEASE:1.11
	netbsd-7-1-RC2:1.11
	nick-nhusb-base-20170204:1.13
	netbsd-7-nhusb-base-20170116:1.11
	bouyer-socketcan:1.13.0.4
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	netbsd-7-1-RC1:1.11
	nick-nhusb-base-20161204:1.13
	pgoyette-localcount-20161104:1.13
	netbsd-7-0-2-RELEASE:1.11
	nick-nhusb-base-20161004:1.13
	localcount-20160914:1.13
	netbsd-7-nhusb:1.11.0.10
	netbsd-7-nhusb-base:1.11
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.2
	pgoyette-localcount-base:1.13
	nick-nhusb-base-20160907:1.13
	nick-nhusb-base-20160529:1.13
	netbsd-7-0-1-RELEASE:1.11
	nick-nhusb-base-20160422:1.13
	nick-nhusb-base-20160319:1.13
	nick-nhusb-base-20151226:1.13
	netbsd-7-0:1.11.0.8
	netbsd-7-0-RELEASE:1.11
	nick-nhusb-base-20150921:1.13
	netbsd-7-0-RC3:1.11
	netbsd-7-0-RC2:1.11
	netbsd-7-0-RC1:1.11
	nick-nhusb-base-20150606:1.12
	nick-nhusb-base-20150406:1.12
	nick-nhusb:1.11.0.6
	nick-nhusb-base:1.11
	netbsd-5-2-3-RELEASE:1.1
	netbsd-5-1-5-RELEASE:1.1
	netbsd-6-0-6-RELEASE:1.8
	netbsd-6-1-5-RELEASE:1.8
	netbsd-7:1.11.0.4
	netbsd-7-base:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.8
	netbsd-6-1-4-RELEASE:1.8
	netbsd-6-0-5-RELEASE:1.8
	tls-earlyentropy:1.11.0.2
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-6-1-3-RELEASE:1.8
	netbsd-6-0-4-RELEASE:1.8
	netbsd-5-2-2-RELEASE:1.1
	netbsd-5-1-4-RELEASE:1.1
	netbsd-6-1-2-RELEASE:1.8
	netbsd-6-0-3-RELEASE:1.8
	netbsd-5-2-1-RELEASE:1.1
	netbsd-5-1-3-RELEASE:1.1
	rmind-smpnet-nbase:1.11
	netbsd-6-1-1-RELEASE:1.8
	riastradh-drm2-base2:1.10
	riastradh-drm2-base1:1.10
	riastradh-drm2:1.10.0.4
	riastradh-drm2-base:1.10
	rmind-smpnet:1.10.0.2
	rmind-smpnet-base:1.11
	netbsd-6-1:1.8.0.24
	netbsd-6-0-2-RELEASE:1.8
	netbsd-6-1-RELEASE:1.8
	khorben-n900:1.8.0.22
	netbsd-6-1-RC4:1.8
	netbsd-6-1-RC3:1.8
	agc-symver:1.8.0.20
	agc-symver-base:1.8
	netbsd-6-1-RC2:1.8
	netbsd-6-1-RC1:1.8
	yamt-pagecache-base8:1.8
	netbsd-5-2:1.1.0.20
	netbsd-6-0-1-RELEASE:1.8
	yamt-pagecache-base7:1.8
	netbsd-5-2-RELEASE:1.1
	netbsd-5-2-RC1:1.1
	matt-nb6-plus-nbase:1.8
	yamt-pagecache-base6:1.8
	netbsd-6-0:1.8.0.16
	netbsd-6-0-RELEASE:1.8
	netbsd-6-0-RC2:1.8
	tls-maxphys:1.8.0.14
	tls-maxphys-base:1.11
	matt-nb6-plus:1.8.0.12
	matt-nb6-plus-base:1.8
	netbsd-6-0-RC1:1.8
	jmcneill-usbmp-base10:1.8
	yamt-pagecache-base5:1.8
	jmcneill-usbmp-base9:1.8
	yamt-pagecache-base4:1.8
	jmcneill-usbmp-base8:1.8
	jmcneill-usbmp-base7:1.8
	jmcneill-usbmp-base6:1.8
	jmcneill-usbmp-base5:1.8
	jmcneill-usbmp-base4:1.8
	jmcneill-usbmp-base3:1.8
	jmcneill-usbmp-pre-base2:1.8
	jmcneill-usbmp-base2:1.8
	netbsd-6:1.8.0.10
	netbsd-6-base:1.8
	netbsd-5-1-2-RELEASE:1.1
	netbsd-5-1-1-RELEASE:1.1
	jmcneill-usbmp:1.8.0.8
	jmcneill-usbmp-base:1.8
	jmcneill-audiomp3:1.8.0.6
	jmcneill-audiomp3-base:1.8
	yamt-pagecache-base3:1.8
	yamt-pagecache-base2:1.8
	yamt-pagecache:1.8.0.4
	yamt-pagecache-base:1.8
	rmind-uvmplock-nbase:1.8
	cherry-xenmp:1.8.0.2
	cherry-xenmp-base:1.8
	bouyer-quota2-nbase:1.7
	bouyer-quota2:1.7.0.4
	bouyer-quota2-base:1.7
	jruoho-x86intr:1.7.0.2
	jruoho-x86intr-base:1.7
	matt-mips64-premerge-20101231:1.7
	matt-nb5-mips64-premerge-20101231:1.1
	matt-nb5-pq3:1.1.0.18
	matt-nb5-pq3-base:1.1
	netbsd-5-1:1.1.0.16
	netbsd-5-1-RELEASE:1.1
	uebayasi-xip-base4:1.7
	uebayasi-xip-base3:1.7
	yamt-nfs-mp-base11:1.7
	netbsd-5-1-RC4:1.1
	matt-nb5-mips64-k15:1.1
	uebayasi-xip-base2:1.7
	yamt-nfs-mp-base10:1.7
	netbsd-5-1-RC3:1.1
	netbsd-5-1-RC2:1.1
	uebayasi-xip-base1:1.5
	netbsd-5-1-RC1:1.1
	rmind-uvmplock:1.5.0.2
	rmind-uvmplock-base:1.8
	yamt-nfs-mp-base9:1.5
	uebayasi-xip:1.4.0.2
	uebayasi-xip-base:1.4
	netbsd-5-0-2-RELEASE:1.1
	matt-nb5-mips64-premerge-20091211:1.1
	matt-premerge-20091211:1.4
	yamt-nfs-mp-base8:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.1
	matt-nb4-mips64-k7-u2a-k9b:1.1
	matt-nb5-mips64-u1-k1-k5:1.1
	yamt-nfs-mp-base7:1.4
	matt-nb5-mips64:1.1.0.14
	netbsd-5-0-1-RELEASE:1.1
	jymxensuspend-base:1.4
	yamt-nfs-mp-base6:1.4
	yamt-nfs-mp-base5:1.4
	yamt-nfs-mp-base4:1.3
	jym-xensuspend-nbase:1.4
	yamt-nfs-mp:1.3.0.4
	yamt-nfs-mp-base3:1.3
	nick-hppapmap-base4:1.3
	nick-hppapmap-base3:1.3
	netbsd-5-0:1.1.0.12
	netbsd-5-0-RELEASE:1.1
	netbsd-5-0-RC4:1.1
	netbsd-5-0-RC3:1.1
	nick-hppapmap-base2:1.3
	netbsd-5-0-RC2:1.1
	jym-xensuspend:1.3.0.2
	jym-xensuspend-base:1.3
	netbsd-5-0-RC1:1.1
	mjf-devfs2-base:1.1
	mjf-devfs2:1.1.0.10
	haad-dm-base:1.1
	haad-dm-base2:1.1
	haad-nbase2:1.1
	ad-audiomp2:1.1.0.8
	ad-audiomp2-base:1.1
	netbsd-5:1.1.0.6
	netbsd-5-base:1.1
	nick-hppapmap:1.1.0.4
	nick-hppapmap-base:1.3
	matt-mips64-base2:1.1
	haad-dm:1.1.0.2
	haad-dm-base1:1.1;
locks; strict;
comment	@# @;


1.16
date	2022.09.20.07.19.14;	author ozaki-r;	state Exp;
branches;
next	1.15;
commitid	WtoWqtU901LjvzUD;

1.15
date	2021.03.08.20.43.22;	author christos;	state Exp;
branches;
next	1.14;
commitid	UfNBMiTyYNZeZxKC;

1.14
date	2017.04.14.02.43.28;	author ozaki-r;	state Exp;
branches
	1.14.24.1;
next	1.13;
commitid	P2VtQnvTkRcGMrNz;

1.13
date	2015.08.24.23.04.43;	author pooka;	state Exp;
branches
	1.13.2.1
	1.13.4.1;
next	1.12;
commitid	FdKmgnAGiHFiNzyy;

1.12
date	2015.01.18.17.06.24;	author justin;	state Exp;
branches;
next	1.11;
commitid	OZOMbDoEnW93Ow6y;

1.11
date	2013.08.14.09.31.42;	author pooka;	state Exp;
branches
	1.11.6.1;
next	1.10;
commitid	AMiFLxOeIVNY4p1x;

1.10
date	2013.06.01.11.02.42;	author pooka;	state Exp;
branches
	1.10.2.1;
next	1.9;
commitid	M5PGxC0NYKRNXTRw;

1.9
date	2013.06.01.10.54.24;	author pooka;	state Exp;
branches;
next	1.8;
commitid	D0Irv5DXSEVWUTRw;

1.8
date	2011.05.03.18.28.45;	author dyoung;	state Exp;
branches
	1.8.4.1
	1.8.14.1;
next	1.7;

1.7
date	2010.08.10.21.50.10;	author pooka;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2010.07.13.22.16.10;	author rmind;	state Exp;
branches;
next	1.5;

1.5
date	2010.02.16.20.42.47;	author pooka;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	2009.05.26.23.43.39;	author pooka;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2009.02.03.00.33.48;	author pooka;	state Exp;
branches
	1.3.2.1
	1.3.4.1;
next	1.2;

1.2
date	2009.02.01.17.05.26;	author pooka;	state Exp;
branches;
next	1.1;

1.1
date	2008.10.16.19.14.51;	author pooka;	state Exp;
branches
	1.1.2.1
	1.1.4.1
	1.1.10.1;
next	;

1.14.24.1
date	2021.04.03.22.29.02;	author thorpej;	state Exp;
branches;
next	;
commitid	1gqS07EfPjskJTNC;

1.13.2.1
date	2017.04.26.02.53.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	ojV02aOSdzvBqZOz;

1.13.4.1
date	2017.04.21.16.54.08;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.11.6.1
date	2015.04.06.15.18.31;	author skrll;	state Exp;
branches;
next	1.11.6.2;
commitid	pz01Zhy7RP6iGxgy;

1.11.6.2
date	2015.09.22.12.06.16;	author skrll;	state Exp;
branches;
next	1.11.6.3;
commitid	CpNWKp3ozVNTafCy;

1.11.6.3
date	2017.08.28.17.53.16;	author skrll;	state Exp;
branches;
next	;
commitid	UQQpnjvcNkUZn05A;

1.10.2.1
date	2013.08.28.23.59.37;	author rmind;	state Exp;
branches;
next	;
commitid	cbp9Ov2uYijlqh3x;

1.8.4.1
date	2014.05.22.11.41.17;	author yamt;	state Exp;
branches;
next	;
commitid	VUUXuyNWnt3AKwBx;

1.8.14.1
date	2013.06.23.06.20.28;	author tls;	state Exp;
branches;
next	1.8.14.2;
commitid	eVjr9caYRQbRGHUw;

1.8.14.2
date	2014.08.20.00.04.42;	author tls;	state Exp;
branches;
next	1.8.14.3;
commitid	jTnpym9Qu0o4R1Nx;

1.8.14.3
date	2017.12.03.11.39.18;	author jdolecek;	state Exp;
branches;
next	;
commitid	XcIYRZTAh1LmerhA;

1.7.2.1
date	2011.06.06.09.10.09;	author jruoho;	state Exp;
branches;
next	;

1.5.2.1
date	2011.03.05.20.56.21;	author rmind;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2011.05.31.03.05.11;	author rmind;	state Exp;
branches;
next	;

1.4.2.1
date	2010.04.30.14.44.31;	author uebayasi;	state Exp;
branches;
next	1.4.2.2;

1.4.2.2
date	2010.08.17.06.48.04;	author uebayasi;	state Exp;
branches;
next	;

1.3.2.1
date	2009.07.23.23.32.55;	author jym;	state Exp;
branches;
next	;

1.3.4.1
date	2009.02.03.00.33.48;	author yamt;	state dead;
branches;
next	1.3.4.2;

1.3.4.2
date	2009.05.04.08.14.33;	author yamt;	state Exp;
branches;
next	1.3.4.3;

1.3.4.3
date	2009.06.20.07.20.37;	author yamt;	state Exp;
branches;
next	1.3.4.4;

1.3.4.4
date	2010.03.11.15.04.40;	author yamt;	state Exp;
branches;
next	1.3.4.5;

1.3.4.5
date	2010.08.11.22.55.09;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2008.10.16.19.14.51;	author haad;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2008.10.19.22.18.08;	author haad;	state Exp;
branches;
next	;

1.1.4.1
date	2009.03.03.18.34.30;	author skrll;	state Exp;
branches;
next	;

1.1.10.1
date	2008.10.16.19.14.51;	author mjf;	state dead;
branches;
next	1.1.10.2;

1.1.10.2
date	2009.01.17.13.29.39;	author mjf;	state Exp;
branches;
next	;


desc
@@


1.16
log
@tcp: separate syn cache stuffs into tcp_syncache.[ch] files

No functional change.
@
text
@#	$NetBSD: Makefile.inc,v 1.15 2021/03/08 20:43:22 christos Exp $
#

.PATH:	${.CURDIR}/../../../../netinet

CPPFLAGS+=	-DINET

# INET
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_carp.c ip_icmp.c\
	ip_flow.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c portalgo.c

# ARP
SRCS+=	if_arp.c

# TCP
SRCS+=	tcp_congctl.c tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c \
	tcp_syncache.c tcp_timer.c tcp_usrreq.c tcp_vtw.c

# UDP
SRCS+=	udp_usrreq.c

CPPFLAGS+=	-DPORTALGO_INET4_DEFAULT=PORTALGO_RANDOM_START

# TCP debugging
#SRCS+=		tcp_debug.c
#CPPFLAGS+=	-DTCP_DEBUG

# IPSEC
SRCS+=			ip_ecn.c
CPPFLAGS+=		-DIPSEC
# To write rump-specific wrappers
CPPFLAGS.in_proto.c+=	-DIPSEC_RUMPKERNEL
@


1.15
log
@remove ip{,6}_id.c
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2017/04/14 02:43:28 ozaki-r Exp $
d18 1
a18 1
	tcp_timer.c tcp_usrreq.c tcp_vtw.c
@


1.14
log
@Rumpify netipsec

Note that we should modularize netipsec and reduce reverse symbol references
(referencing symbols of netipsec from net, netinet and netinet6) though,
the task needs lots of code changes. Prior to doing so, rumpifying it and
having ATF tests should be useful.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2015/08/24 23:04:43 pooka Exp $
d10 1
a10 1
	ip_flow.c ip_id.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
@


1.14.24.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2021/03/08 20:43:22 christos Exp $
d10 1
a10 1
	ip_flow.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
@


1.13
log
@purge rump/net of component-specific opt directories
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2015/01/18 17:06:24 justin Exp $
d28 6
@


1.13.2.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2017/04/14 02:43:28 ozaki-r Exp $
a27 6

# IPSEC
SRCS+=			ip_ecn.c
CPPFLAGS+=		-DIPSEC
# To write rump-specific wrappers
CPPFLAGS.in_proto.c+=	-DIPSEC_RUMPKERNEL
@


1.13.4.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2017/04/14 02:43:28 ozaki-r Exp $
a27 6

# IPSEC
SRCS+=			ip_ecn.c
CPPFLAGS+=		-DIPSEC
# To write rump-specific wrappers
CPPFLAGS.in_proto.c+=	-DIPSEC_RUMPKERNEL
@


1.12
log
@Move defines of INET and INET6 from opt_inet.h to Makefile.inc

As discussed with pooka@@
fixes current issues with ipv6 on rump being broken
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2013/08/14 09:31:42 pooka Exp $
a22 2
CPPFLAGS+=	-I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt

@


1.11
log
@Separate inet and inet6, allows inet6-only rump kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 2013/06/01 11:02:42 pooka Exp $
d6 2
@


1.11.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2015/01/18 17:06:24 justin Exp $
a5 2
CPPFLAGS+=	-DINET

@


1.11.6.2
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11.6.1 2015/04/06 15:18:31 skrll Exp $
d23 2
@


1.11.6.3
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11.6.2 2015/09/22 12:06:16 skrll Exp $
a27 6

# IPSEC
SRCS+=			ip_ecn.c
CPPFLAGS+=		-DIPSEC
# To write rump-specific wrappers
CPPFLAGS.in_proto.c+=	-DIPSEC_RUMPKERNEL
@


1.10
log
@default portalgo to random_start, for less connections from port 65535
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 2013/06/01 10:54:24 pooka Exp $
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet ${.CURDIR}/../../../../netinet6
a10 7
# INET6
SRCS+=	dest6.c frag6.c icmp6.c in6.c in6_cksum.c in6_ifattach.c	\
	in6_offload.c in6_pcb.c in6_proto.c in6_src.c ip6_flow.c	\
	ip6_forward.c ip6_id.c ip6_input.c ip6_mroute.c ip6_output.c	\
	mld6.c nd6.c nd6_nbr.c nd6_rtr.c raw_ip6.c route6.c scope6.c	\
	udp6_output.c udp6_usrreq.c

a23 1
CPPFLAGS+=	-DPORTALGO_INET6_DEFAULT=PORTALGO_RANDOM_START
@


1.10.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet
d11 7
d31 1
@


1.9
log
@cosmetic: put portalgo.c in the conceptually right place
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2011/05/03 18:28:45 dyoung Exp $
d30 3
@


1.8
log
@Reduces the resources demanded by TCP sessions in TIME_WAIT-state using
methods called Vestigial Time-Wait (VTW) and Maximum Segment Lifetime
Truncation (MSLT).

MSLT and VTW were contributed by Coyote Point Systems, Inc.

Even after a TCP session enters the TIME_WAIT state, its corresponding
socket and protocol control blocks (PCBs) stick around until the TCP
Maximum Segment Lifetime (MSL) expires.  On a host whose workload
necessarily creates and closes down many TCP sockets, the sockets & PCBs
for TCP sessions in TIME_WAIT state amount to many megabytes of dead
weight in RAM.

Maximum Segment Lifetimes Truncation (MSLT) assigns each TCP session to
a class based on the nearness of the peer.  Corresponding to each class
is an MSL, and a session uses the MSL of its class.  The classes are
loopback (local host equals remote host), local (local host and remote
host are on the same link/subnet), and remote (local host and remote
host communicate via one or more gateways).  Classes corresponding to
nearer peers have lower MSLs by default: 2 seconds for loopback, 10
seconds for local, 60 seconds for remote.  Loopback and local sessions
expire more quickly when MSLT is used.

Vestigial Time-Wait (VTW) replaces a TIME_WAIT session's PCB/socket
dead weight with a compact representation of the session, called a
"vestigial PCB".  VTW data structures are designed to be very fast and
memory-efficient: for fast insertion and lookup of vestigial PCBs,
the PCBs are stored in a hash table that is designed to minimize the
number of cacheline visits per lookup/insertion.  The memory both
for vestigial PCBs and for elements of the PCB hashtable come from
fixed-size pools, and linked data structures exploit this to conserve
memory by representing references with a narrow index/offset from the
start of a pool instead of a pointer.  When space for new vestigial PCBs
runs out, VTW makes room by discarding old vestigial PCBs, oldest first.
VTW cooperates with MSLT.

It may help to think of VTW as a "FIN cache" by analogy to the SYN
cache.

A 2.8-GHz Pentium 4 running a test workload that creates TIME_WAIT
sessions as fast as it can is approximately 17% idle when VTW is active
versus 0% idle when VTW is inactive.  It has 103 megabytes more free RAM
when VTW is active (approximately 64k vestigial PCBs are created) than
when it is inactive.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 2010/08/10 21:50:10 pooka Exp $
d9 1
a9 1
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.8.4.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2011/05/03 18:28:45 dyoung Exp $
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet
d9 8
a16 1
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c portalgo.c
a29 2
CPPFLAGS+=	-DPORTALGO_INET4_DEFAULT=PORTALGO_RANDOM_START

@


1.8.14.1
log
@resync from head
@
text
@d1 1
a1 1
#	$NetBSD$
d9 1
a9 1
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c portalgo.c
a29 3
CPPFLAGS+=	-DPORTALGO_INET4_DEFAULT=PORTALGO_RANDOM_START
CPPFLAGS+=	-DPORTALGO_INET6_DEFAULT=PORTALGO_RANDOM_START

@


1.8.14.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet
d11 7
d31 1
@


1.8.14.3
log
@update from HEAD
@
text
@a5 2
CPPFLAGS+=	-DINET

d21 2
a27 6

# IPSEC
SRCS+=			ip_ecn.c
CPPFLAGS+=		-DIPSEC
# To write rump-specific wrappers
CPPFLAGS.in_proto.c+=	-DIPSEC_RUMPKERNEL
@


1.7
log
@Support carp.  It would be nice to support this as its own component,
but there's about 1000 lines of #ifdef which disagree with my wish.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 2010/07/13 22:16:10 rmind Exp $
d22 2
a23 2
SRCS+=	tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c	\
	tcp_usrreq.c tcp_congctl.c
@


1.7.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2011/05/03 18:28:45 dyoung Exp $
d22 2
a23 2
SRCS+=	tcp_congctl.c tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c \
	tcp_timer.c tcp_usrreq.c tcp_vtw.c
@


1.6
log
@Split-off IPv4 re-assembly mechanism into a separate module.  Abstract
into ip_reass_init(), ip_reass_lookup(), etc (note: abstraction is not
yet complete).  No functional changes to the actual mechanism.

OK matt@@
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 2010/02/16 20:42:47 pooka Exp $
d7 1
a7 1
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c		\
@


1.5
log
@Globally define -Wno-pointer-sign, as it has become a pointless
exercise of "add it to every Makefile individually".

XXX: should autosynchronize with the rest of the kernel buildflags
in sys/conf/Makefile.kern.inc.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2009/05/26 23:43:39 pooka Exp $
d8 2
a9 2
	ip_flow.c ip_id.c ip_input.c ip_output.c raw_ip.c in_cksum.c	\
	cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.5.2.1
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD$
d7 3
a9 3
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_carp.c ip_icmp.c\
	ip_flow.c ip_id.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.5.2.2
log
@sync with head
@
text
@d22 2
a23 2
SRCS+=	tcp_congctl.c tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c \
	tcp_timer.c tcp_usrreq.c tcp_vtw.c
@


1.4
log
@Support IPv6 in rump.  I'd have liked to introduce a netinet6
component, but due to ifdef happiness permeating the sources, it's
a compile decision for now, so netinet pulls in both inet and inet6.

One issue, one single issue: the loopback interface still needs to
be created for IPv6 to work.  I have patches to take care of it
automatically if the appropriate component (net) is present, but
they require a bit more testing before commit.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2009/02/03 00:33:48 pooka Exp $
a27 1
CFLAGS+=	-Wno-pointer-sign
@


1.4.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d28 1
@


1.4.2.2
log
@Sync with HEAD.
@
text
@d7 3
a9 3
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_carp.c ip_icmp.c\
	ip_flow.c ip_id.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.3
log
@Better define GATEWAY in opt_gateway.h instead of the Makefile so
UPDATE builds don't go all coocoo.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 2009/02/01 17:05:26 pooka Exp $
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet
d6 1
a6 1
# IP
d11 7
@


1.3.2.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 2009/05/26 23:43:39 pooka Exp $
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet ${.CURDIR}/../../../../netinet6
d6 1
a6 1
# INET
a10 7
# INET6
SRCS+=	dest6.c frag6.c icmp6.c in6.c in6_cksum.c in6_ifattach.c	\
	in6_offload.c in6_pcb.c in6_proto.c in6_src.c ip6_flow.c	\
	ip6_forward.c ip6_id.c ip6_input.c ip6_mroute.c ip6_output.c	\
	mld6.c nd6.c nd6_nbr.c nd6_rtr.c raw_ip6.c route6.c scope6.c	\
	udp6_output.c udp6_usrreq.c

@


1.3.4.1
log
@file Makefile.inc was added on branch yamt-nfs-mp on 2009-05-04 08:14:33 +0000
@
text
@d1 26
@


1.3.4.2
log
@sync with head.
@
text
@a0 26
#	$NetBSD$
#

.PATH:	${.CURDIR}/../../../../netinet

# IP
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c		\
	ip_flow.c ip_id.c ip_input.c ip_output.c raw_ip.c in_cksum.c	\
	cpu_in_cksum.c in4_cksum.c ip_encap.c

# ARP
SRCS+=	if_arp.c

# TCP
SRCS+=	tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c	\
	tcp_usrreq.c tcp_congctl.c

# UDP
SRCS+=	udp_usrreq.c

CFLAGS+=	-Wno-pointer-sign
CPPFLAGS+=	-I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt

# TCP debugging
#SRCS+=		tcp_debug.c
#CPPFLAGS+=	-DTCP_DEBUG
@


1.3.4.3
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3.4.2 2009/05/04 08:14:33 yamt Exp $
d4 1
a4 1
.PATH:	${.CURDIR}/../../../../netinet ${.CURDIR}/../../../../netinet6
d6 1
a6 1
# INET
a10 7
# INET6
SRCS+=	dest6.c frag6.c icmp6.c in6.c in6_cksum.c in6_ifattach.c	\
	in6_offload.c in6_pcb.c in6_proto.c in6_src.c ip6_flow.c	\
	ip6_forward.c ip6_id.c ip6_input.c ip6_mroute.c ip6_output.c	\
	mld6.c nd6.c nd6_nbr.c nd6_rtr.c raw_ip6.c route6.c scope6.c	\
	udp6_output.c udp6_usrreq.c

@


1.3.4.4
log
@sync with head
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3.4.3 2009/06/20 07:20:37 yamt Exp $
d28 1
@


1.3.4.5
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3.4.4 2010/03/11 15:04:40 yamt Exp $
d7 3
a9 3
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_carp.c ip_icmp.c\
	ip_flow.c ip_id.c ip_input.c ip_reass.c ip_output.c raw_ip.c	\
	in_cksum.c cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.2
log
@enable GATEWAY
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 2008/10/16 19:14:51 pooka Exp $
a22 1
CPPFLAGS+=	-DGATEWAY
@


1.1
log
@Deal with the ld.so/linkset brokenness and compile all of libnet
and libnetinet into a big bunch for now.  If they were separate
libraries, the DOMAIN_DEFINE() in the latter on the linkline would
not get noticed at "boot" time because of the abovementioned
brokenness.  One of these days I'll add code to dlopen() the
libraries and resplit them, but this will allow things to work
until then.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2008/10/13 22:24:06 pooka Exp $
d7 3
a9 3
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c ip_id.c	\
	ip_input.c ip_output.c raw_ip.c in_cksum.c cpu_in_cksum.c	\
	in4_cksum.c ip_encap.c
d23 1
@


1.1.4.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 2009/02/03 00:33:48 pooka Exp $
d7 3
a9 3
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c		\
	ip_flow.c ip_id.c ip_input.c ip_output.c raw_ip.c in_cksum.c	\
	cpu_in_cksum.c in4_cksum.c ip_encap.c
@


1.1.10.1
log
@file Makefile.inc was added on branch mjf-devfs2 on 2009-01-17 13:29:39 +0000
@
text
@d1 26
@


1.1.10.2
log
@Sync with HEAD.
@
text
@a0 26
#	$NetBSD$
#

.PATH:	${.CURDIR}/../../../../netinet

# IP
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c ip_id.c	\
	ip_input.c ip_output.c raw_ip.c in_cksum.c cpu_in_cksum.c	\
	in4_cksum.c ip_encap.c

# ARP
SRCS+=	if_arp.c

# TCP
SRCS+=	tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c	\
	tcp_usrreq.c tcp_congctl.c

# UDP
SRCS+=	udp_usrreq.c

CFLAGS+=	-Wno-pointer-sign
CPPFLAGS+=	-I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt

# TCP debugging
#SRCS+=		tcp_debug.c
#CPPFLAGS+=	-DTCP_DEBUG
@


1.1.2.1
log
@file Makefile.inc was added on branch haad-dm on 2008-10-19 22:18:08 +0000
@
text
@d1 26
@


1.1.2.2
log
@Sync with HEAD.
@
text
@a0 26
#	$NetBSD: Makefile.inc,v 1.1 2008/10/16 19:14:51 pooka Exp $
#

.PATH:	${.CURDIR}/../../../../netinet

# IP
SRCS+=	in_proto.c igmp.c in.c in_offload.c in_pcb.c ip_icmp.c ip_id.c	\
	ip_input.c ip_output.c raw_ip.c in_cksum.c cpu_in_cksum.c	\
	in4_cksum.c ip_encap.c

# ARP
SRCS+=	if_arp.c

# TCP
SRCS+=	tcp_input.c tcp_output.c tcp_sack.c tcp_subr.c tcp_timer.c	\
	tcp_usrreq.c tcp_congctl.c

# UDP
SRCS+=	udp_usrreq.c

CFLAGS+=	-Wno-pointer-sign
CPPFLAGS+=	-I${.CURDIR}/opt -I${.CURDIR}/../libnet/opt

# TCP debugging
#SRCS+=		tcp_debug.c
#CPPFLAGS+=	-DTCP_DEBUG
@


