head 1.37; access; symbols netbsd-10-0-RELEASE:1.37 netbsd-10-0-RC6:1.37 netbsd-10-0-RC5:1.37 netbsd-10-0-RC4:1.37 netbsd-10-0-RC3:1.37 netbsd-10-0-RC2:1.37 thorpej-ifq:1.37.0.22 thorpej-ifq-base:1.37 thorpej-altq-separation:1.37.0.20 thorpej-altq-separation-base:1.37 netbsd-10-0-RC1:1.37 netbsd-10:1.37.0.18 netbsd-10-base:1.37 bouyer-sunxi-drm:1.37.0.16 bouyer-sunxi-drm-base:1.37 netbsd-9-3-RELEASE:1.33 thorpej-i2c-spi-conf2:1.37.0.14 thorpej-i2c-spi-conf2-base:1.37 thorpej-futex2:1.37.0.12 thorpej-futex2-base:1.37 thorpej-cfargs2:1.37.0.10 thorpej-cfargs2-base:1.37 cjep_sun2x-base1:1.37 cjep_sun2x:1.37.0.8 cjep_sun2x-base:1.37 cjep_staticlib_x-base1:1.37 netbsd-9-2-RELEASE:1.33 cjep_staticlib_x:1.37.0.6 cjep_staticlib_x-base:1.37 thorpej-i2c-spi-conf:1.37.0.4 thorpej-i2c-spi-conf-base:1.37 thorpej-cfargs:1.37.0.2 thorpej-cfargs-base:1.37 thorpej-futex:1.34.0.8 thorpej-futex-base:1.37 netbsd-9-1-RELEASE:1.33 bouyer-xenpvh-base2:1.34 phil-wifi-20200421:1.34 bouyer-xenpvh-base1:1.34 phil-wifi-20200411:1.34 bouyer-xenpvh:1.34.0.6 bouyer-xenpvh-base:1.34 is-mlppp:1.34.0.4 is-mlppp-base:1.34 phil-wifi-20200406:1.34 netbsd-8-2-RELEASE:1.33 ad-namecache-base3:1.34 netbsd-9-0-RELEASE:1.33 netbsd-9-0-RC2:1.33 ad-namecache-base2:1.34 ad-namecache-base1:1.34 ad-namecache:1.34.0.2 ad-namecache-base:1.34 netbsd-9-0-RC1:1.33 phil-wifi-20191119:1.34 netbsd-9:1.33.0.20 netbsd-9-base:1.33 phil-wifi-20190609:1.33 netbsd-8-1-RELEASE:1.33 netbsd-8-1-RC1:1.33 isaki-audio2:1.33.0.18 isaki-audio2-base:1.33 pgoyette-compat-merge-20190127:1.33 pgoyette-compat-20190127:1.33 pgoyette-compat-20190118:1.33 pgoyette-compat-1226:1.33 pgoyette-compat-1126:1.33 pgoyette-compat-1020:1.33 pgoyette-compat-0930:1.33 pgoyette-compat-0906:1.33 netbsd-7-2-RELEASE:1.30.22.1 pgoyette-compat-0728:1.33 netbsd-8-0-RELEASE:1.33 phil-wifi:1.33.0.16 phil-wifi-base:1.33 pgoyette-compat-0625:1.33 netbsd-8-0-RC2:1.33 pgoyette-compat-0521:1.33 pgoyette-compat-0502:1.33 pgoyette-compat-0422:1.33 netbsd-8-0-RC1:1.33 pgoyette-compat-0415:1.33 pgoyette-compat-0407:1.33 pgoyette-compat-0330:1.33 pgoyette-compat-0322:1.33 pgoyette-compat-0315:1.33 netbsd-7-1-2-RELEASE:1.30.22.1 pgoyette-compat:1.33.0.14 pgoyette-compat-base:1.33 netbsd-7-1-1-RELEASE:1.30.22.1 tls-maxphys-base-20171202:1.33 matt-nb8-mediatek:1.33.0.12 matt-nb8-mediatek-base:1.33 nick-nhusb-base-20170825:1.33 perseant-stdc-iso10646:1.33.0.10 perseant-stdc-iso10646-base:1.33 netbsd-8:1.33.0.8 netbsd-8-base:1.33 prg-localcount2-base3:1.33 prg-localcount2-base2:1.33 prg-localcount2-base1:1.33 prg-localcount2:1.33.0.6 prg-localcount2-base:1.33 pgoyette-localcount-20170426:1.33 bouyer-socketcan-base1:1.33 jdolecek-ncq:1.33.0.4 jdolecek-ncq-base:1.33 pgoyette-localcount-20170320:1.33 netbsd-7-1:1.30.22.1.0.6 netbsd-7-1-RELEASE:1.30.22.1 netbsd-7-1-RC2:1.30.22.1 nick-nhusb-base-20170204:1.33 netbsd-7-nhusb-base-20170116:1.30.22.1 bouyer-socketcan:1.33.0.2 bouyer-socketcan-base:1.33 pgoyette-localcount-20170107:1.32 netbsd-7-1-RC1:1.30.22.1 nick-nhusb-base-20161204:1.31 pgoyette-localcount-20161104:1.31 netbsd-7-0-2-RELEASE:1.30.22.1 nick-nhusb-base-20161004:1.31 localcount-20160914:1.31 netbsd-7-nhusb:1.30.22.1.0.4 netbsd-7-nhusb-base:1.30.22.1 pgoyette-localcount-20160806:1.31 pgoyette-localcount-20160726:1.31 pgoyette-localcount:1.31.0.2 pgoyette-localcount-base:1.31 nick-nhusb-base-20160907:1.31 nick-nhusb-base-20160529:1.31 netbsd-7-0-1-RELEASE:1.30.22.1 nick-nhusb-base-20160422:1.31 nick-nhusb-base-20160319:1.31 nick-nhusb-base-20151226:1.31 netbsd-7-0:1.30.22.1.0.2 netbsd-7-0-RELEASE:1.30.22.1 nick-nhusb-base-20150921:1.31 netbsd-7-0-RC3:1.30.22.1 netbsd-7-0-RC2:1.30.22.1 netbsd-7-0-RC1:1.30.22.1 nick-nhusb-base-20150606:1.31 nick-nhusb-base-20150406:1.31 nick-nhusb:1.30.0.24 nick-nhusb-base:1.30 netbsd-5-2-3-RELEASE:1.28 netbsd-5-1-5-RELEASE:1.28 netbsd-6-0-6-RELEASE:1.30 netbsd-6-1-5-RELEASE:1.30 netbsd-7:1.30.0.22 netbsd-7-base:1.30 yamt-pagecache-base9:1.30 yamt-pagecache-tag8:1.28.44.1 netbsd-6-1-4-RELEASE:1.30 netbsd-6-0-5-RELEASE:1.30 tls-earlyentropy:1.30.0.20 tls-earlyentropy-base:1.30 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.30 riastradh-drm2-base3:1.30 netbsd-6-1-3-RELEASE:1.30 netbsd-6-0-4-RELEASE:1.30 netbsd-5-2-2-RELEASE:1.28 netbsd-5-1-4-RELEASE:1.28 netbsd-6-1-2-RELEASE:1.30 netbsd-6-0-3-RELEASE:1.30 netbsd-5-2-1-RELEASE:1.28 netbsd-5-1-3-RELEASE:1.28 rmind-smpnet-nbase:1.30 netbsd-6-1-1-RELEASE:1.30 riastradh-drm2-base2:1.30 riastradh-drm2-base1:1.30 riastradh-drm2:1.30.0.18 riastradh-drm2-base:1.30 rmind-smpnet:1.30.0.10 rmind-smpnet-base:1.30 netbsd-6-1:1.30.0.16 netbsd-6-0-2-RELEASE:1.30 netbsd-6-1-RELEASE:1.30 khorben-n900:1.30.0.14 netbsd-6-1-RC4:1.30 netbsd-6-1-RC3:1.30 agc-symver:1.30.0.12 agc-symver-base:1.30 netbsd-6-1-RC2:1.30 netbsd-6-1-RC1:1.30 yamt-pagecache-base8:1.30 netbsd-5-2:1.28.0.50 netbsd-6-0-1-RELEASE:1.30 yamt-pagecache-base7:1.30 netbsd-5-2-RELEASE:1.28 netbsd-5-2-RC1:1.28 matt-nb6-plus-nbase:1.30 yamt-pagecache-base6:1.30 netbsd-6-0:1.30.0.8 netbsd-6-0-RELEASE:1.30 netbsd-6-0-RC2:1.30 tls-maxphys:1.30.0.6 tls-maxphys-base:1.30 matt-nb6-plus:1.30.0.4 matt-nb6-plus-base:1.30 netbsd-6-0-RC1:1.30 jmcneill-usbmp-base10:1.30 yamt-pagecache-base5:1.30 jmcneill-usbmp-base9:1.30 yamt-pagecache-base4:1.30 jmcneill-usbmp-base8:1.30 jmcneill-usbmp-base7:1.30 jmcneill-usbmp-base6:1.30 jmcneill-usbmp-base5:1.30 jmcneill-usbmp-base4:1.30 jmcneill-usbmp-base3:1.30 jmcneill-usbmp-pre-base2:1.28 jmcneill-usbmp-base2:1.30 netbsd-6:1.30.0.2 netbsd-6-base:1.30 netbsd-5-1-2-RELEASE:1.28 netbsd-5-1-1-RELEASE:1.28 jmcneill-usbmp:1.28.0.48 jmcneill-usbmp-base:1.28 jmcneill-audiomp3:1.28.0.46 jmcneill-audiomp3-base:1.28 yamt-pagecache-base3:1.28 yamt-pagecache-base2:1.28 yamt-pagecache:1.28.0.44 yamt-pagecache-base:1.28 rmind-uvmplock-nbase:1.28 cherry-xenmp:1.28.0.42 cherry-xenmp-base:1.28 bouyer-quota2-nbase:1.28 bouyer-quota2:1.28.0.40 bouyer-quota2-base:1.28 jruoho-x86intr:1.28.0.38 jruoho-x86intr-base:1.28 matt-mips64-premerge-20101231:1.28 matt-nb5-mips64-premerge-20101231:1.28 matt-nb5-pq3:1.28.0.36 matt-nb5-pq3-base:1.28 netbsd-5-1:1.28.0.34 netbsd-5-1-RELEASE:1.28 uebayasi-xip-base4:1.28 uebayasi-xip-base3:1.28 yamt-nfs-mp-base11:1.28 netbsd-5-1-RC4:1.28 matt-nb5-mips64-k15:1.28 uebayasi-xip-base2:1.28 yamt-nfs-mp-base10:1.28 netbsd-5-1-RC3:1.28 netbsd-5-1-RC2:1.28 uebayasi-xip-base1:1.28 netbsd-5-1-RC1:1.28 rmind-uvmplock:1.28.0.32 rmind-uvmplock-base:1.28 yamt-nfs-mp-base9:1.28 uebayasi-xip:1.28.0.30 uebayasi-xip-base:1.28 netbsd-5-0-2-RELEASE:1.28 matt-nb5-mips64-premerge-20091211:1.28 matt-premerge-20091211:1.28 yamt-nfs-mp-base8:1.28 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.28 matt-nb4-mips64-k7-u2a-k9b:1.28 matt-nb5-mips64-u1-k1-k5:1.28 yamt-nfs-mp-base7:1.28 matt-nb5-mips64:1.28.0.28 netbsd-5-0-1-RELEASE:1.28 jymxensuspend-base:1.28 yamt-nfs-mp-base6:1.28 yamt-nfs-mp-base5:1.28 yamt-nfs-mp-base4:1.28 jym-xensuspend-nbase:1.28 yamt-nfs-mp-base3:1.28 nick-hppapmap-base4:1.28 nick-hppapmap-base3:1.28 netbsd-5-0:1.28.0.26 netbsd-5-0-RELEASE:1.28 netbsd-5-0-RC4:1.28 netbsd-5-0-RC3:1.28 nick-hppapmap-base2:1.28 netbsd-5-0-RC2:1.28 jym-xensuspend:1.28.0.24 jym-xensuspend-base:1.28 netbsd-5-0-RC1:1.28 haad-dm-base2:1.28 haad-nbase2:1.28 ad-audiomp2:1.28.0.22 ad-audiomp2-base:1.28 netbsd-5:1.28.0.20 netbsd-5-base:1.28 nick-hppapmap:1.28.0.18 nick-hppapmap-base:1.28 matt-mips64-base2:1.28 matt-mips64:1.27.0.20 haad-dm-base1:1.28 wrstuden-revivesa-base-4:1.28 netbsd-4-0-1-RELEASE:1.25 wrstuden-revivesa-base-3:1.28 wrstuden-revivesa-base-2:1.28 wrstuden-fixsa-newbase:1.25 nick-csl-alignment-base5:1.27 haad-dm:1.28.0.16 haad-dm-base:1.28 wrstuden-revivesa-base-1:1.28 simonb-wapbl-nbase:1.28 yamt-pf42-base4:1.28 simonb-wapbl:1.28.0.14 simonb-wapbl-base:1.28 yamt-pf42-base3:1.28 hpcarm-cleanup-nbase:1.28 yamt-pf42-baseX:1.28 yamt-pf42-base2:1.28 yamt-nfs-mp-base2:1.28 wrstuden-revivesa:1.28.0.12 wrstuden-revivesa-base:1.28 yamt-nfs-mp:1.28.0.10 yamt-nfs-mp-base:1.28 yamt-pf42:1.28.0.8 yamt-pf42-base:1.28 ad-socklock-base1:1.28 yamt-lazymbuf-base15:1.28 yamt-lazymbuf-base14:1.28 keiichi-mipv6-nbase:1.28 mjf-devfs2:1.28.0.6 mjf-devfs2-base:1.28 nick-net80211-sync:1.28.0.4 nick-net80211-sync-base:1.28 keiichi-mipv6:1.28.0.2 keiichi-mipv6-base:1.28 bouyer-xeni386-merge1:1.27.16.1 matt-armv6-prevmlocking:1.27 wrstuden-fixsa-base-1:1.25 vmlocking2-base3:1.28 netbsd-4-0:1.25.0.20 netbsd-4-0-RELEASE:1.25 bouyer-xeni386-nbase:1.28 yamt-kmem-base3:1.27 cube-autoconf:1.27.0.18 cube-autoconf-base:1.27 yamt-kmem-base2:1.27 bouyer-xeni386:1.27.0.16 bouyer-xeni386-base:1.28 yamt-kmem:1.27.0.14 yamt-kmem-base:1.27 vmlocking2-base2:1.27 reinoud-bufcleanup-nbase:1.27 vmlocking2:1.27.0.12 vmlocking2-base1:1.27 netbsd-4-0-RC5:1.25 matt-nb4-arm:1.25.0.18 matt-nb4-arm-base:1.25 matt-armv6-nbase:1.28 jmcneill-base:1.27 netbsd-4-0-RC4:1.25 mjf-devfs:1.27.0.10 mjf-devfs-base:1.28 bouyer-xenamd64-base2:1.27 vmlocking-nbase:1.27 yamt-x86pmap-base4:1.27 bouyer-xenamd64:1.27.0.8 bouyer-xenamd64-base:1.27 netbsd-4-0-RC3:1.25 yamt-x86pmap-base3:1.27 yamt-x86pmap-base2:1.27 netbsd-4-0-RC2:1.25 yamt-x86pmap:1.27.0.6 yamt-x86pmap-base:1.27 netbsd-4-0-RC1:1.25 matt-armv6:1.27.0.4 matt-armv6-base:1.28 matt-mips64-base:1.27 jmcneill-pm:1.27.0.2 jmcneill-pm-base:1.27 hpcarm-cleanup:1.26.0.4 hpcarm-cleanup-base:1.28 nick-csl-alignment:1.26.0.2 nick-csl-alignment-base:1.26 netbsd-3-1-1-RELEASE:1.19 netbsd-3-0-3-RELEASE:1.19 yamt-idlelwp-base8:1.25 wrstuden-fixsa:1.25.0.16 wrstuden-fixsa-base:1.25 thorpej-atomic:1.25.0.14 thorpej-atomic-base:1.25 reinoud-bufcleanup:1.25.0.12 reinoud-bufcleanup-base:1.27 mjf-ufs-trans:1.25.0.10 mjf-ufs-trans-base:1.26 vmlocking:1.25.0.8 vmlocking-base:1.27 ad-audiomp:1.25.0.6 ad-audiomp-base:1.25 yamt-idlelwp:1.25.0.4 post-newlock2-merge:1.25 newlock2-nbase:1.25 yamt-splraiseipl-base5:1.25 yamt-splraiseipl-base4:1.25 yamt-splraiseipl-base3:1.25 abandoned-netbsd-4-base:1.21 abandoned-netbsd-4:1.21.0.18 netbsd-3-1:1.19.0.8 netbsd-3-1-RELEASE:1.19 netbsd-3-0-2-RELEASE:1.19 yamt-splraiseipl-base2:1.25 netbsd-3-1-RC4:1.19 yamt-splraiseipl:1.22.0.4 yamt-splraiseipl-base:1.22 netbsd-3-1-RC3:1.19 yamt-pdpolicy-base9:1.22 newlock2:1.22.0.2 newlock2-base:1.25 yamt-pdpolicy-base8:1.21 netbsd-3-1-RC2:1.19 netbsd-3-1-RC1:1.19 yamt-pdpolicy-base7:1.21 netbsd-4:1.25.0.2 netbsd-4-base:1.25 yamt-pdpolicy-base6:1.21 chap-midi-nbase:1.21 netbsd-3-0-1-RELEASE:1.19 gdamore-uart:1.21.0.16 gdamore-uart-base:1.21 simonb-timcounters-final:1.21 yamt-pdpolicy-base5:1.21 chap-midi:1.21.0.14 chap-midi-base:1.21 yamt-pdpolicy-base4:1.21 yamt-pdpolicy-base3:1.21 peter-altq-base:1.21 peter-altq:1.21.0.12 yamt-pdpolicy-base2:1.21 elad-kernelauth-base:1.21 elad-kernelauth:1.21.0.10 yamt-pdpolicy:1.21.0.8 yamt-pdpolicy-base:1.21 yamt-uio_vmspace-base5:1.21 simonb-timecounters:1.21.0.6 simonb-timecounters-base:1.21 rpaulo-netinet-merge-pcb:1.21.0.4 rpaulo-netinet-merge-pcb-base:1.22 yamt-uio_vmspace:1.21.0.2 netbsd-3-0:1.19.0.6 netbsd-3-0-RELEASE:1.19 netbsd-3-0-RC6:1.19 yamt-readahead-base3:1.20 netbsd-3-0-RC5:1.19 netbsd-3-0-RC4:1.19 netbsd-3-0-RC3:1.19 yamt-readahead-base2:1.20 netbsd-3-0-RC2:1.19 yamt-readahead-pervnode:1.20 yamt-readahead-perfile:1.20 yamt-readahead:1.20.0.6 yamt-readahead-base:1.20 netbsd-3-0-RC1:1.19 yamt-vop-base3:1.20 netbsd-2-0-3-RELEASE:1.15 netbsd-2-1:1.15.0.6 yamt-vop-base2:1.20 thorpej-vnode-attr:1.20.0.4 thorpej-vnode-attr-base:1.20 netbsd-2-1-RELEASE:1.15 yamt-vop:1.20.0.2 yamt-vop-base:1.20 netbsd-2-1-RC6:1.15 netbsd-2-1-RC5:1.15 netbsd-2-1-RC4:1.15 netbsd-2-1-RC3:1.15 netbsd-2-1-RC2:1.15 netbsd-2-1-RC1:1.15 yamt-lazymbuf:1.19.0.4 yamt-km-base4:1.19 netbsd-2-0-2-RELEASE:1.15 yamt-km-base3:1.19 netbsd-3:1.19.0.2 netbsd-3-base:1.19 yamt-km-base2:1.18 yamt-km:1.18.0.6 yamt-km-base:1.18 kent-audio2:1.18.0.4 kent-audio2-base:1.19 netbsd-2-0-1-RELEASE:1.15 kent-audio1-beforemerge:1.18 netbsd-2:1.15.0.4 netbsd-2-base:1.15 kent-audio1:1.18.0.2 kent-audio1-base:1.18 netbsd-2-0-RELEASE:1.15 netbsd-2-0-RC5:1.15 netbsd-2-0-RC4:1.15 netbsd-2-0-RC3:1.15 netbsd-2-0-RC2:1.15 netbsd-2-0-RC1:1.15 BEFORE-IPF413:1.17 netbsd-2-0:1.15.0.2 netbsd-2-0-base:1.15 BEFORE-IPF411:1.15 netbsd-1-6-PATCH002-RELEASE:1.13 netbsd-1-6-PATCH002:1.13 netbsd-1-6-PATCH002-RC4:1.13 netbsd-1-6-PATCH002-RC3:1.13 netbsd-1-6-PATCH002-RC2:1.13 netbsd-1-6-PATCH002-RC1:1.13 ktrace-lwp:1.14.0.2 ktrace-lwp-base:1.21 netbsd-1-6-PATCH001:1.13 netbsd-1-6-PATCH001-RELEASE:1.13 netbsd-1-6-PATCH001-RC3:1.13 netbsd-1-6-PATCH001-RC2:1.13 netbsd-1-6-PATCH001-RC1:1.13 nathanw_sa_end:1.12.2.1 nathanw_sa_before_merge:1.13 fvdl_fs64_base:1.13 gmcgarry_ctxsw:1.13.0.20 gmcgarry_ctxsw_base:1.13 gmcgarry_ucred:1.13.0.18 gmcgarry_ucred_base:1.13 nathanw_sa_base:1.13 kqueue-aftermerge:1.13 kqueue-beforemerge:1.13 netbsd-1-6-RELEASE:1.13 netbsd-1-6-RC3:1.13 netbsd-1-6-RC2:1.13 netbsd-1-6-RC1:1.13 netbsd-1-6:1.13.0.16 netbsd-1-6-base:1.13 gehenna-devsw:1.13.0.14 gehenna-devsw-base:1.13 netbsd-1-5-PATCH003:1.11 eeh-devprop:1.13.0.12 eeh-devprop-base:1.13 newlock:1.13.0.10 newlock-base:1.13 ifpoll-base:1.13 thorpej-mips-cache:1.13.0.6 thorpej-mips-cache-base:1.13 thorpej-devvp-base3:1.13 thorpej-devvp-base2:1.13 post-chs-ubcperf:1.13 pre-chs-ubcperf:1.13 thorpej-devvp:1.13.0.4 thorpej-devvp-base:1.13 netbsd-1-5-PATCH002:1.11 kqueue:1.13.0.2 kqueue-base:1.13 netbsd-1-5-PATCH001:1.11 thorpej_scsipi_beforemerge:1.12 nathanw_sa:1.12.0.2 thorpej_scsipi_nbase:1.12 netbsd-1-5-RELEASE:1.11 netbsd-1-5-BETA2:1.11 netbsd-1-5-BETA:1.11 netbsd-1-4-PATCH003:1.10 netbsd-1-5-ALPHA2:1.11 netbsd-1-5:1.11.0.4 netbsd-1-5-base:1.11 minoura-xpg4dl-base:1.11 minoura-xpg4dl:1.11.0.2 netbsd-1-4-PATCH002:1.10 chs-ubc2-newbase:1.11 wrstuden-devbsize-19991221:1.11 wrstuden-devbsize:1.10.0.18 wrstuden-devbsize-base:1.11 kame_141_19991130:1.10 comdex-fall-1999:1.10.0.16 comdex-fall-1999-base:1.10 fvdl-softdep:1.10.0.14 fvdl-softdep-base:1.10 thorpej_scsipi:1.10.0.12 thorpej_scsipi_base:1.12 netbsd-1-4-PATCH001:1.10 kame_14_19990705:1.10 kame_14_19990628:1.10 kame:1.10.0.10 chs-ubc2:1.10.0.8 chs-ubc2-base:1.10 netbsd-1-4-RELEASE:1.10 netbsd-1-4:1.10.0.6 netbsd-1-4-base:1.10 netbsd-1-3-PATCH003:1.8 netbsd-1-3-PATCH003-CANDIDATE2:1.8 kenh-if-detach:1.10.0.4 kenh-if-detach-base:1.10 netbsd-1-3-PATCH003-CANDIDATE1:1.8 netbsd-1-3-PATCH003-CANDIDATE0:1.8 chs-ubc:1.10.0.2 chs-ubc-base:1.10 eeh-paddr_t:1.9.0.2 eeh-paddr_t-base:1.9 netbsd-1-3-PATCH002:1.8 netbsd-1-3-PATCH001:1.8 lite-2:1.1.1.2 lite-1:1.1.1.2 CSRG:1.1.1 netbsd-1-3-RELEASE:1.8 netbsd-1-3-BETA:1.8 netbsd-1-3:1.8.0.18 netbsd-1-3-base:1.8 thorpej-signal:1.8.0.16 thorpej-signal-base:1.8 marc-pcmcia:1.8.0.14 marc-pcmcia-bp:1.8 marc-pcmcia-base:1.8 bouyer-scsipi:1.8.0.12 is-newarp-before-merge:1.8 netbsd-1-2-PATCH001:1.8 mrg-vm-swap:1.8.0.10 is-newarp:1.8.0.8 is-newarp-base:1.8 thorpej-setroot:1.8.0.4 netbsd-1-2-RELEASE:1.8 netbsd-1-2-BETA:1.8 netbsd-1-2:1.8.0.6 netbsd-1-2-base:1.8 date-03-may-96:1.1.1.2 netbsd-1-1-PATCH001:1.8 netbsd-1-1-RELEASE:1.8 netbsd-1-1:1.8.0.2 netbsd-1-1-base:1.8 netbsd-1-0-PATCH06:1.6 netbsd-1-0-PATCH05:1.6 netbsd-1-0-PATCH04:1.6 netbsd-1-0-PATCH03:1.6 netbsd-1-0-PATCH02:1.6 netbsd-1-0-PATCH1:1.6 netbsd-1-0-PATCH0:1.6 netbsd-1-0-RELEASE:1.6 netbsd-1-0:1.6.0.2 netbsd-1-0-base:1.6 magnum-base:1.3 magnum:1.3.0.4 netbsd-0-9-patch-001:1.3 netbsd-0-9-RELEASE:1.3 netbsd-0-9-BETA:1.3 netbsd-0-9-ALPHA2:1.3 netbsd-0-9-ALPHA:1.3 netbsd-0-9:1.3.0.2 netbsd-0-9-base:1.3 netbsd-0-8:1.1.1.1 netbsd-alpha-1:1.1.1.1 patchkit-0-2-2:1.1.1.1 WFJ-386bsd-01:1.1.1.1 WFJ-920714:1.1.1; locks; strict; comment @ * @; 1.37 date 2021.02.03.18.13.13; author roy; state Exp; branches; next 1.36; commitid W26lRWt1lztgdiGC; 1.36 date 2021.02.03.11.53.43; author roy; state Exp; branches; next 1.35; commitid 7irZkizDUb3Z6gGC; 1.35 date 2021.02.03.05.51.40; author roy; state Exp; branches; next 1.34; commitid Ejsas7gYBOHG6eGC; 1.34 date 2019.11.01.13.54.59; author christos; state Exp; branches 1.34.8.1; next 1.33; commitid VmGFjf7dwKGCz9JB; 1.33 date 2017.01.10.20.32.27; author christos; state Exp; branches 1.33.16.1; next 1.32; 1.32 date 2017.01.02.01.18.42; author christos; state Exp; branches; next 1.31; 1.31 date 2015.02.14.12.57.53; author he; state Exp; branches 1.31.2.1; next 1.30; 1.30 date 2012.01.07.20.20.22; author christos; state Exp; branches 1.30.6.1 1.30.22.1 1.30.24.1; next 1.29; 1.29 date 2011.12.11.23.56.10; author christos; state Exp; branches; next 1.28; 1.28 date 2007.12.25.18.33.47; author perry; state Exp; branches 1.28.44.1 1.28.48.1; next 1.27; 1.27 date 2007.08.02.02.42.40; author rmind; state Exp; branches 1.27.4.1 1.27.10.1 1.27.12.1 1.27.16.1 1.27.20.1; next 1.26; 1.26 date 2007.06.20.15.29.18; author christos; state Exp; branches 1.26.2.1; next 1.25; 1.25 date 2006.10.09.16.27.07; author rpaulo; state Exp; branches 1.25.8.1 1.25.10.1; next 1.24; 1.24 date 2006.09.25.13.21.53; author rpaulo; state Exp; branches; next 1.23; 1.23 date 2006.09.25.13.20.20; author rpaulo; state Exp; branches; next 1.22; 1.22 date 2006.09.05.00.29.36; author rpaulo; state Exp; branches 1.22.2.1 1.22.4.1; next 1.21; 1.21 date 2005.12.10.23.36.23; author elad; state Exp; branches 1.21.4.1 1.21.8.1; next 1.20; 1.20 date 2005.07.21.17.32.11; author riz; state Exp; branches; next 1.19; 1.19 date 2005.03.07.09.32.51; author yamt; state Exp; branches 1.19.4.1; next 1.18; 1.18 date 2004.12.07.14.24.04; author yamt; state Exp; branches 1.18.4.1 1.18.6.1; next 1.17; 1.17 date 2004.05.07.20.11.52; author kleink; state Exp; branches; next 1.16; 1.16 date 2004.04.25.22.25.03; author jonathan; state Exp; branches; next 1.15; 1.15 date 2003.08.07.16.33.15; author agc; state Exp; branches; next 1.14; 1.14 date 2003.05.05.14.36.13; author bjh21; state Exp; branches 1.14.2.1; next 1.13; 1.13 date 2001.05.26.21.40.55; author matt; state Exp; branches; next 1.12; 1.12 date 2000.07.05.02.45.03; author christos; state Exp; branches 1.12.2.1; next 1.11; 1.11 date 99.11.20.00.38.00; author thorpej; state Exp; branches; next 1.10; 1.10 date 98.10.04.21.33.52; author matt; state Exp; branches 1.10.12.1 1.10.18.1; next 1.9; 1.9 date 98.02.10.01.27.07; author perry; state Exp; branches; next 1.8; 1.8 date 95.04.17.05.32.58; author cgd; state Exp; branches; next 1.7; 1.7 date 95.04.13.06.36.30; author cgd; state Exp; branches; next 1.6; 1.6 date 94.06.29.06.38.34; author cgd; state Exp; branches; next 1.5; 1.5 date 94.05.13.06.06.32; author mycroft; state Exp; branches; next 1.4; 1.4 date 94.01.08.21.21.56; author mycroft; state Exp; branches; next 1.3; 1.3 date 93.05.20.03.50.31; author cgd; state Exp; branches; next 1.2; 1.2 date 93.04.19.03.48.38; author mycroft; state Exp; branches; next 1.1; 1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches 1.1.1.1; next ; 1.34.8.1 date 2021.04.03.22.29.01; author thorpej; state Exp; branches; next ; commitid 1gqS07EfPjskJTNC; 1.33.16.1 date 2020.04.13.08.05.16; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.31.2.1 date 2017.01.07.08.56.51; author pgoyette; state Exp; branches; next 1.31.2.2; 1.31.2.2 date 2017.03.20.06.57.51; author pgoyette; state Exp; branches; next ; 1.30.6.1 date 2017.12.03.11.39.04; author jdolecek; state Exp; branches; next ; commitid XcIYRZTAh1LmerhA; 1.30.22.1 date 2015.02.21.13.40.19; author martin; state Exp; branches; next ; 1.30.24.1 date 2015.04.06.15.18.23; author skrll; state Exp; branches; next 1.30.24.2; 1.30.24.2 date 2017.02.05.13.40.59; author skrll; state Exp; branches; next ; 1.28.44.1 date 2012.04.17.00.08.41; author yamt; state Exp; branches; next ; 1.28.48.1 date 2012.02.18.07.35.40; author mrg; state Exp; branches; next ; 1.27.4.1 date 2008.01.09.01.57.29; author matt; state Exp; branches; next ; 1.27.10.1 date 2008.02.18.21.07.08; author mjf; state Exp; branches; next ; 1.27.12.1 date 2007.12.26.19.57.41; author ad; state Exp; branches; next ; 1.27.16.1 date 2008.01.02.21.57.23; author bouyer; state Exp; branches; next ; 1.27.20.1 date 2007.08.02.02.42.40; author rmind; state dead; branches; next 1.27.20.2; 1.27.20.2 date 2007.08.02.02.42.41; author rmind; state Exp; branches; next ; 1.26.2.1 date 2007.08.15.13.49.46; author skrll; state Exp; branches; next ; 1.25.8.1 date 2007.07.15.13.27.57; author ad; state Exp; branches; next 1.25.8.2; 1.25.8.2 date 2007.08.20.21.28.00; author ad; state Exp; branches; next ; 1.25.10.1 date 2007.07.11.20.11.26; author mjf; state Exp; branches; next ; 1.22.2.1 date 2006.11.18.21.39.36; author ad; state Exp; branches; next ; 1.22.4.1 date 2006.10.22.06.07.28; author yamt; state Exp; branches; next ; 1.21.4.1 date 2006.09.09.02.58.47; author rpaulo; state Exp; branches; next ; 1.21.8.1 date 2006.09.14.12.31.55; author yamt; state Exp; branches; next ; 1.19.4.1 date 2006.06.21.15.11.01; author yamt; state Exp; branches; next 1.19.4.2; 1.19.4.2 date 2006.12.30.20.50.33; author yamt; state Exp; branches; next 1.19.4.3; 1.19.4.3 date 2007.09.03.14.43.00; author yamt; state Exp; branches; next 1.19.4.4; 1.19.4.4 date 2008.01.21.09.47.17; author yamt; state Exp; branches; next ; 1.18.4.1 date 2005.04.29.11.29.33; author kent; state Exp; branches; next ; 1.18.6.1 date 2005.03.19.08.36.38; author yamt; state Exp; branches; next ; 1.14.2.1 date 2004.08.03.10.54.44; author skrll; state Exp; branches; next 1.14.2.2; 1.14.2.2 date 2004.09.18.14.54.54; author skrll; state Exp; branches; next 1.14.2.3; 1.14.2.3 date 2004.09.21.13.37.13; author skrll; state Exp; branches; next 1.14.2.4; 1.14.2.4 date 2004.12.18.09.33.05; author skrll; state Exp; branches; next 1.14.2.5; 1.14.2.5 date 2005.03.08.13.53.12; author skrll; state Exp; branches; next 1.14.2.6; 1.14.2.6 date 2005.11.10.14.11.07; author skrll; state Exp; branches; next 1.14.2.7; 1.14.2.7 date 2005.12.11.10.29.24; author christos; state Exp; branches; next ; 1.12.2.1 date 2001.06.21.20.08.42; author nathanw; state Exp; branches; next ; 1.10.12.1 date 2000.11.20.18.10.34; author bouyer; state Exp; branches; next ; 1.10.18.1 date 99.12.27.18.36.19; author wrstuden; state Exp; branches; next ; 1.1.1.1 date 93.03.21.09.45.37; author cgd; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 98.01.05.09.54.16; author thorpej; state Exp; branches; next ; desc @@ 1.37 log @CTASSERT -> __CTASSERT to unbreak userland build. While here move __packed in tcp_debug.h back to where it was and note removal warrants more investigation. @ text @/* $NetBSD: tcp.h,v 1.36 2021/02/03 11:53:43 roy Exp $ */ /* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @@(#)tcp.h 8.1 (Berkeley) 6/10/93 */ #ifndef _NETINET_TCP_H_ #define _NETINET_TCP_H_ #include #if defined(_NETBSD_SOURCE) #include typedef uint32_t tcp_seq; /* * TCP header. * Per RFC 793, September, 1981. * Updated by RFC 3168, September, 2001. */ struct tcphdr { uint16_t th_sport; /* source port */ uint16_t th_dport; /* destination port */ tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; /* acknowledgement number */ #if BYTE_ORDER == LITTLE_ENDIAN /*LINTED non-portable bitfields*/ uint8_t th_x2:4, /* (unused) */ th_off:4; /* data offset */ #endif #if BYTE_ORDER == BIG_ENDIAN /*LINTED non-portable bitfields*/ uint8_t th_off:4, /* data offset */ th_x2:4; /* (unused) */ #endif uint8_t th_flags; #define TH_FIN 0x01 /* Final: Set on the last segment */ #define TH_SYN 0x02 /* Synchronization: New conn with dst port */ #define TH_RST 0x04 /* Reset: Announce to peer conn terminated */ #define TH_PUSH 0x08 /* Push: Immediately send, don't buffer seg */ #define TH_ACK 0x10 /* Acknowledge: Part of connection establish */ #define TH_URG 0x20 /* Urgent: send special marked segment now */ #define TH_ECE 0x40 /* ECN Echo */ #define TH_CWR 0x80 /* Congestion Window Reduced */ uint16_t th_win; /* window */ uint16_t th_sum; /* checksum */ uint16_t th_urp; /* urgent pointer */ }; #ifdef __CTASSERT __CTASSERT(sizeof(struct tcphdr) == 20); #endif #define TCPOPT_EOL 0 #define TCPOLEN_EOL 1 #define TCPOPT_PAD 0 #define TCPOLEN_PAD 1 #define TCPOPT_NOP 1 #define TCPOLEN_NOP 1 #define TCPOPT_MAXSEG 2 #define TCPOLEN_MAXSEG 4 #define TCPOPT_WINDOW 3 #define TCPOLEN_WINDOW 3 #define TCPOPT_SACK_PERMITTED 4 /* Experimental */ #define TCPOLEN_SACK_PERMITTED 2 #define TCPOPT_SACK 5 /* Experimental */ #define TCPOPT_TIMESTAMP 8 #define TCPOLEN_TIMESTAMP 10 #define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */ #define TCPOPT_TSTAMP_HDR \ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP) #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ #define TCPOLEN_SIGNATURE 18 #define TCPOLEN_SIGLEN (TCPOLEN_SIGNATURE+2) /* padding */ #define MAX_TCPOPTLEN 40 /* max # bytes that go in options */ /* * Default maximum segment size for TCP. * This is defined by RFC 1112 Sec 4.2.2.6. */ #define TCP_MSS 536 #define TCP_MINMSS 216 #define TCP_MAXWIN 65535 /* largest value for (unscaled) window */ #define TCP_MAX_WINSHIFT 14 /* maximum window shift */ #define TCP_MAXBURST 4 /* maximum segments in a burst */ #endif /* _NETBSD_SOURCE */ /* * User-settable options (used with setsockopt). */ #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 2 /* set maximum segment size */ #define TCP_KEEPIDLE 3 #ifdef notyet #define TCP_NOPUSH 4 /* reserved for FreeBSD compat */ #endif #define TCP_KEEPINTVL 5 #define TCP_KEEPCNT 6 #define TCP_KEEPINIT 7 #ifdef notyet #define TCP_NOOPT 8 /* reserved for FreeBSD compat */ #endif #define TCP_INFO 9 /* retrieve tcp_info structure */ #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ #define TCP_CONGCTL 0x20 /* selected congestion control */ #define TCPI_OPT_TIMESTAMPS 0x01 #define TCPI_OPT_SACK 0x02 #define TCPI_OPT_WSCALE 0x04 #define TCPI_OPT_ECN 0x08 #define TCPI_OPT_TOE 0x10 /* * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits * the caller to query certain information about the state of a TCP * connection. We provide an overlapping set of fields with the Linux * implementation, but since this is a fixed size structure, room has been * left for growth. In order to maximize potential future compatibility with * the Linux API, the same variable names and order have been adopted, and * padding left to make room for omitted fields in case they are added later. * * XXX: This is currently an unstable ABI/API, in that it is expected to * change. */ struct tcp_info { uint8_t tcpi_state; /* TCP FSM state. */ uint8_t __tcpi_ca_state; uint8_t __tcpi_retransmits; uint8_t __tcpi_probes; uint8_t __tcpi_backoff; uint8_t tcpi_options; /* Options enabled on conn. */ /*LINTED: non-portable bitfield*/ uint8_t tcpi_snd_wscale:4, /* RFC1323 send shift value. */ /*LINTED: non-portable bitfield*/ tcpi_rcv_wscale:4; /* RFC1323 recv shift value. */ uint32_t tcpi_rto; /* Retransmission timeout (usec). */ uint32_t __tcpi_ato; uint32_t tcpi_snd_mss; /* Max segment size for send. */ uint32_t tcpi_rcv_mss; /* Max segment size for receive. */ uint32_t __tcpi_unacked; uint32_t __tcpi_sacked; uint32_t __tcpi_lost; uint32_t __tcpi_retrans; uint32_t __tcpi_fackets; /* Times; measurements in usecs. */ uint32_t __tcpi_last_data_sent; uint32_t __tcpi_last_ack_sent; /* Also unimpl. on Linux? */ uint32_t tcpi_last_data_recv; /* Time since last recv data. */ uint32_t __tcpi_last_ack_recv; /* Metrics; variable units. */ uint32_t __tcpi_pmtu; uint32_t __tcpi_rcv_ssthresh; uint32_t tcpi_rtt; /* Smoothed RTT in usecs. */ uint32_t tcpi_rttvar; /* RTT variance in usecs. */ uint32_t tcpi_snd_ssthresh; /* Slow start threshold. */ uint32_t tcpi_snd_cwnd; /* Send congestion window. */ uint32_t __tcpi_advmss; uint32_t __tcpi_reordering; uint32_t __tcpi_rcv_rtt; uint32_t tcpi_rcv_space; /* Advertised recv window. */ /* FreeBSD/NetBSD extensions to tcp_info. */ uint32_t tcpi_snd_wnd; /* Advertised send window. */ uint32_t tcpi_snd_bwnd; /* No longer used. */ uint32_t tcpi_snd_nxt; /* Next egress seqno */ uint32_t tcpi_rcv_nxt; /* Next ingress seqno */ uint32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ uint32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ uint32_t tcpi_rcv_ooopack; /* Out-of-order packets */ uint32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ /* Padding to grow without breaking ABI. */ uint32_t __tcpi_pad[26]; /* Padding. */ }; #endif /* !_NETINET_TCP_H_ */ @ 1.36 log @Sprinkle CTASSERT to enforce on-wire layout without __packed @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.35 2021/02/03 05:51:40 roy Exp $ */ d76 2 a77 2 #ifdef CTASSERT CTASSERT(sizeof(struct tcphdr) == 20); @ 1.35 log @Remove __packed from various network structures They are already network aligned and adding the __packed attribute just causes needless compiler warnings about accssing members of packed objects. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.34 2019/11/01 13:54:59 christos Exp $ */ d76 3 @ 1.34 log @Add comments to the tcp flags. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.33 2017/01/10 20:32:27 christos Exp $ */ d75 1 a75 1 } __packed; @ 1.34.8.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.37 2021/02/03 18:13:13 roy Exp $ */ d75 1 a75 4 }; #ifdef __CTASSERT __CTASSERT(sizeof(struct tcphdr) == 20); #endif @ 1.33 log @add a couple of lint comments. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.32 2017/01/02 01:18:42 christos Exp $ */ d64 8 a71 8 #define TH_FIN 0x01 #define TH_SYN 0x02 #define TH_RST 0x04 #define TH_PUSH 0x08 #define TH_ACK 0x10 #define TH_URG 0x20 #define TH_ECE 0x40 #define TH_CWR 0x80 @ 1.33.16.1 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 1 a1 1 /* $NetBSD$ */ d64 8 a71 8 #define TH_FIN 0x01 /* Final: Set on the last segment */ #define TH_SYN 0x02 /* Synchronization: New conn with dst port */ #define TH_RST 0x04 /* Reset: Announce to peer conn terminated */ #define TH_PUSH 0x08 /* Push: Immediately send, don't buffer seg */ #define TH_ACK 0x10 /* Acknowledge: Part of connection establish */ #define TH_URG 0x20 /* Urgent: send special marked segment now */ #define TH_ECE 0x40 /* ECN Echo */ #define TH_CWR 0x80 /* Congestion Window Reduced */ @ 1.32 log @Fix TCP signature code: 1. pack options more tightly instead of being generous with no/op 2. put TCP_SIGNATURE option before SACK 3. fix computation of options length, by deferring it XXX: Really we should move the options setting code in one place instead of having two copies one for input and one for output. XXX: tcp_optlen/tcp_hdrsiz need to be fixed; they were wrong before too. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.31 2015/02/14 12:57:53 he Exp $ */ d163 1 d165 1 @ 1.31 log @Port over the TCP_INFO socket option from FreeBSD, originally from the Linux 2.6 TCP API. This permits the caller to query certain information about a TCP connection, and is used by pkgsrc's net/iperf3 test program if available. This extends struct tcbcb with three fields to count retransmits, out-of-sequence receives and zero window announcements, and will therefore warrant a kernel revision bump (done separately). @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.30 2012/01/07 20:20:22 christos Exp $ */ d78 3 d82 1 @ 1.31.2.1 log @Sync with HEAD. (Note that most of these changes are simply $NetBSD$ tag issues.) @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.32 2017/01/02 01:18:42 christos Exp $ */ a77 3 #define TCPOLEN_EOL 1 #define TCPOPT_PAD 0 #define TCPOLEN_PAD 1 a78 1 #define TCPOLEN_NOP 1 @ 1.31.2.2 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.33 2017/01/10 20:32:27 christos Exp $ */ a162 1 /*LINTED: non-portable bitfield*/ a163 1 /*LINTED: non-portable bitfield*/ @ 1.30 log @make standalone @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.29 2011/12/11 23:56:10 christos Exp $ */ d130 1 d134 72 @ 1.30.6.1 log @update from HEAD @ text @d1 1 a1 1 /* $NetBSD$ */ a77 3 #define TCPOLEN_EOL 1 #define TCPOPT_PAD 0 #define TCPOLEN_PAD 1 a78 1 #define TCPOLEN_NOP 1 a129 1 #define TCP_INFO 9 /* retrieve tcp_info structure */ a132 74 #define TCPI_OPT_TIMESTAMPS 0x01 #define TCPI_OPT_SACK 0x02 #define TCPI_OPT_WSCALE 0x04 #define TCPI_OPT_ECN 0x08 #define TCPI_OPT_TOE 0x10 /* * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits * the caller to query certain information about the state of a TCP * connection. We provide an overlapping set of fields with the Linux * implementation, but since this is a fixed size structure, room has been * left for growth. In order to maximize potential future compatibility with * the Linux API, the same variable names and order have been adopted, and * padding left to make room for omitted fields in case they are added later. * * XXX: This is currently an unstable ABI/API, in that it is expected to * change. */ struct tcp_info { uint8_t tcpi_state; /* TCP FSM state. */ uint8_t __tcpi_ca_state; uint8_t __tcpi_retransmits; uint8_t __tcpi_probes; uint8_t __tcpi_backoff; uint8_t tcpi_options; /* Options enabled on conn. */ /*LINTED: non-portable bitfield*/ uint8_t tcpi_snd_wscale:4, /* RFC1323 send shift value. */ /*LINTED: non-portable bitfield*/ tcpi_rcv_wscale:4; /* RFC1323 recv shift value. */ uint32_t tcpi_rto; /* Retransmission timeout (usec). */ uint32_t __tcpi_ato; uint32_t tcpi_snd_mss; /* Max segment size for send. */ uint32_t tcpi_rcv_mss; /* Max segment size for receive. */ uint32_t __tcpi_unacked; uint32_t __tcpi_sacked; uint32_t __tcpi_lost; uint32_t __tcpi_retrans; uint32_t __tcpi_fackets; /* Times; measurements in usecs. */ uint32_t __tcpi_last_data_sent; uint32_t __tcpi_last_ack_sent; /* Also unimpl. on Linux? */ uint32_t tcpi_last_data_recv; /* Time since last recv data. */ uint32_t __tcpi_last_ack_recv; /* Metrics; variable units. */ uint32_t __tcpi_pmtu; uint32_t __tcpi_rcv_ssthresh; uint32_t tcpi_rtt; /* Smoothed RTT in usecs. */ uint32_t tcpi_rttvar; /* RTT variance in usecs. */ uint32_t tcpi_snd_ssthresh; /* Slow start threshold. */ uint32_t tcpi_snd_cwnd; /* Send congestion window. */ uint32_t __tcpi_advmss; uint32_t __tcpi_reordering; uint32_t __tcpi_rcv_rtt; uint32_t tcpi_rcv_space; /* Advertised recv window. */ /* FreeBSD/NetBSD extensions to tcp_info. */ uint32_t tcpi_snd_wnd; /* Advertised send window. */ uint32_t tcpi_snd_bwnd; /* No longer used. */ uint32_t tcpi_snd_nxt; /* Next egress seqno */ uint32_t tcpi_rcv_nxt; /* Next ingress seqno */ uint32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ uint32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ uint32_t tcpi_rcv_ooopack; /* Out-of-order packets */ uint32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ /* Padding to grow without breaking ABI. */ uint32_t __tcpi_pad[26]; /* Padding. */ }; @ 1.30.24.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.31 2015/02/14 12:57:53 he Exp $ */ a129 1 #define TCP_INFO 9 /* retrieve tcp_info structure */ a132 72 #define TCPI_OPT_TIMESTAMPS 0x01 #define TCPI_OPT_SACK 0x02 #define TCPI_OPT_WSCALE 0x04 #define TCPI_OPT_ECN 0x08 #define TCPI_OPT_TOE 0x10 /* * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits * the caller to query certain information about the state of a TCP * connection. We provide an overlapping set of fields with the Linux * implementation, but since this is a fixed size structure, room has been * left for growth. In order to maximize potential future compatibility with * the Linux API, the same variable names and order have been adopted, and * padding left to make room for omitted fields in case they are added later. * * XXX: This is currently an unstable ABI/API, in that it is expected to * change. */ struct tcp_info { uint8_t tcpi_state; /* TCP FSM state. */ uint8_t __tcpi_ca_state; uint8_t __tcpi_retransmits; uint8_t __tcpi_probes; uint8_t __tcpi_backoff; uint8_t tcpi_options; /* Options enabled on conn. */ uint8_t tcpi_snd_wscale:4, /* RFC1323 send shift value. */ tcpi_rcv_wscale:4; /* RFC1323 recv shift value. */ uint32_t tcpi_rto; /* Retransmission timeout (usec). */ uint32_t __tcpi_ato; uint32_t tcpi_snd_mss; /* Max segment size for send. */ uint32_t tcpi_rcv_mss; /* Max segment size for receive. */ uint32_t __tcpi_unacked; uint32_t __tcpi_sacked; uint32_t __tcpi_lost; uint32_t __tcpi_retrans; uint32_t __tcpi_fackets; /* Times; measurements in usecs. */ uint32_t __tcpi_last_data_sent; uint32_t __tcpi_last_ack_sent; /* Also unimpl. on Linux? */ uint32_t tcpi_last_data_recv; /* Time since last recv data. */ uint32_t __tcpi_last_ack_recv; /* Metrics; variable units. */ uint32_t __tcpi_pmtu; uint32_t __tcpi_rcv_ssthresh; uint32_t tcpi_rtt; /* Smoothed RTT in usecs. */ uint32_t tcpi_rttvar; /* RTT variance in usecs. */ uint32_t tcpi_snd_ssthresh; /* Slow start threshold. */ uint32_t tcpi_snd_cwnd; /* Send congestion window. */ uint32_t __tcpi_advmss; uint32_t __tcpi_reordering; uint32_t __tcpi_rcv_rtt; uint32_t tcpi_rcv_space; /* Advertised recv window. */ /* FreeBSD/NetBSD extensions to tcp_info. */ uint32_t tcpi_snd_wnd; /* Advertised send window. */ uint32_t tcpi_snd_bwnd; /* No longer used. */ uint32_t tcpi_snd_nxt; /* Next egress seqno */ uint32_t tcpi_rcv_nxt; /* Next ingress seqno */ uint32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ uint32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ uint32_t tcpi_rcv_ooopack; /* Out-of-order packets */ uint32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ /* Padding to grow without breaking ABI. */ uint32_t __tcpi_pad[26]; /* Padding. */ }; @ 1.30.24.2 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.30.24.1 2015/04/06 15:18:23 skrll Exp $ */ a77 3 #define TCPOLEN_EOL 1 #define TCPOPT_PAD 0 #define TCPOLEN_PAD 1 a78 1 #define TCPOLEN_NOP 1 a158 1 /*LINTED: non-portable bitfield*/ a159 1 /*LINTED: non-portable bitfield*/ @ 1.30.22.1 log @Pull up following revision(s) (requested by he in ticket #530): sys/netinet/tcp_output.c: revision 1.180 sys/netinet/tcp_input.c: revision 1.336 sys/netinet/tcp_usrreq.c: revision 1.203 share/man/man4/tcp.4: revision 1.30 sys/netinet/tcp.h: revision 1.31 sys/netinet/tcp_subr.c: revision 1.258 sys/netinet/tcp_var.h: revision 1.176 sys/netinet/tcp_var.h: revision 1.177 sys/sys/param.h: bump revision Port over the TCP_INFO socket option from FreeBSD, originally from the Linux 2.6 TCP API. This permits the caller to query certain information about a TCP connection, and is used by pkgsrc's net/iperf3 test program if available. This extends struct tcbcb with three fields to count retransmits, out-of-sequence receives and zero window announcements, and will therefore warrant a kernel revision bump (done separately). Change the new counter variables in struct tcpcb to uint32_t, as per christos' comments. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.30 2012/01/07 20:20:22 christos Exp $ */ a129 1 #define TCP_INFO 9 /* retrieve tcp_info structure */ a132 72 #define TCPI_OPT_TIMESTAMPS 0x01 #define TCPI_OPT_SACK 0x02 #define TCPI_OPT_WSCALE 0x04 #define TCPI_OPT_ECN 0x08 #define TCPI_OPT_TOE 0x10 /* * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits * the caller to query certain information about the state of a TCP * connection. We provide an overlapping set of fields with the Linux * implementation, but since this is a fixed size structure, room has been * left for growth. In order to maximize potential future compatibility with * the Linux API, the same variable names and order have been adopted, and * padding left to make room for omitted fields in case they are added later. * * XXX: This is currently an unstable ABI/API, in that it is expected to * change. */ struct tcp_info { uint8_t tcpi_state; /* TCP FSM state. */ uint8_t __tcpi_ca_state; uint8_t __tcpi_retransmits; uint8_t __tcpi_probes; uint8_t __tcpi_backoff; uint8_t tcpi_options; /* Options enabled on conn. */ uint8_t tcpi_snd_wscale:4, /* RFC1323 send shift value. */ tcpi_rcv_wscale:4; /* RFC1323 recv shift value. */ uint32_t tcpi_rto; /* Retransmission timeout (usec). */ uint32_t __tcpi_ato; uint32_t tcpi_snd_mss; /* Max segment size for send. */ uint32_t tcpi_rcv_mss; /* Max segment size for receive. */ uint32_t __tcpi_unacked; uint32_t __tcpi_sacked; uint32_t __tcpi_lost; uint32_t __tcpi_retrans; uint32_t __tcpi_fackets; /* Times; measurements in usecs. */ uint32_t __tcpi_last_data_sent; uint32_t __tcpi_last_ack_sent; /* Also unimpl. on Linux? */ uint32_t tcpi_last_data_recv; /* Time since last recv data. */ uint32_t __tcpi_last_ack_recv; /* Metrics; variable units. */ uint32_t __tcpi_pmtu; uint32_t __tcpi_rcv_ssthresh; uint32_t tcpi_rtt; /* Smoothed RTT in usecs. */ uint32_t tcpi_rttvar; /* RTT variance in usecs. */ uint32_t tcpi_snd_ssthresh; /* Slow start threshold. */ uint32_t tcpi_snd_cwnd; /* Send congestion window. */ uint32_t __tcpi_advmss; uint32_t __tcpi_reordering; uint32_t __tcpi_rcv_rtt; uint32_t tcpi_rcv_space; /* Advertised recv window. */ /* FreeBSD/NetBSD extensions to tcp_info. */ uint32_t tcpi_snd_wnd; /* Advertised send window. */ uint32_t tcpi_snd_bwnd; /* No longer used. */ uint32_t tcpi_snd_nxt; /* Next egress seqno */ uint32_t tcpi_rcv_nxt; /* Next ingress seqno */ uint32_t tcpi_toe_tid; /* HWTID for TOE endpoints */ uint32_t tcpi_snd_rexmitpack; /* Retransmitted packets */ uint32_t tcpi_rcv_ooopack; /* Out-of-order packets */ uint32_t tcpi_snd_zerowin; /* Zero-sized windows sent */ /* Padding to grow without breaking ABI. */ uint32_t __tcpi_pad[26]; /* Padding. */ }; @ 1.29 log @u_int -> uint @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.28 2007/12/25 18:33:47 perry Exp $ */ d40 1 @ 1.28 log @Convert many of the uses of __attribute__ to equivalent __packed, __unused and __dead macros from cdefs.h @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.27 2007/08/02 02:42:40 rmind Exp $ */ d41 1 a41 1 typedef u_int32_t tcp_seq; d48 2 a49 2 u_int16_t th_sport; /* source port */ u_int16_t th_dport; /* destination port */ d54 1 a54 1 u_int8_t th_x2:4, /* (unused) */ d59 1 a59 1 u_int8_t th_off:4, /* data offset */ d62 1 a62 1 u_int8_t th_flags; d71 3 a73 3 u_int16_t th_win; /* window */ u_int16_t th_sum; /* checksum */ u_int16_t th_urp; /* urgent pointer */ @ 1.28.44.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD$ */ a39 1 #include d41 1 a41 1 typedef uint32_t tcp_seq; d48 2 a49 2 uint16_t th_sport; /* source port */ uint16_t th_dport; /* destination port */ d54 1 a54 1 uint8_t th_x2:4, /* (unused) */ d59 1 a59 1 uint8_t th_off:4, /* data offset */ d62 1 a62 1 uint8_t th_flags; d71 3 a73 3 uint16_t th_win; /* window */ uint16_t th_sum; /* checksum */ uint16_t th_urp; /* urgent pointer */ @ 1.28.48.1 log @merge to -current. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.30 2012/01/07 20:20:22 christos Exp $ */ a39 1 #include d41 1 a41 1 typedef uint32_t tcp_seq; d48 2 a49 2 uint16_t th_sport; /* source port */ uint16_t th_dport; /* destination port */ d54 1 a54 1 uint8_t th_x2:4, /* (unused) */ d59 1 a59 1 uint8_t th_off:4, /* data offset */ d62 1 a62 1 uint8_t th_flags; d71 3 a73 3 uint16_t th_win; /* window */ uint16_t th_sum; /* checksum */ uint16_t th_urp; /* urgent pointer */ @ 1.27 log @TCP socket buffers automatic sizing - ported from FreeBSD. http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html ! Disabled by default, marked as experimental. Testers are very needed. ! Someone should thoroughly test this, and improve if possible. Discussed on : http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html Thanks Greg Troxel for comments. OK by the long silence on . @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.26 2007/06/20 15:29:18 christos Exp $ */ d74 1 a74 1 } __attribute__((__packed__)); @ 1.27.20.1 log @file tcp.h was added on branch matt-mips64 on 2007-08-02 02:42:41 +0000 @ text @d1 132 @ 1.27.20.2 log @TCP socket buffers automatic sizing - ported from FreeBSD. http://mail-index.netbsd.org/tech-net/2007/02/04/0006.html ! Disabled by default, marked as experimental. Testers are very needed. ! Someone should thoroughly test this, and improve if possible. Discussed on : http://mail-index.netbsd.org/tech-net/2007/07/12/0002.html Thanks Greg Troxel for comments. OK by the long silence on . @ text @a0 132 /* $NetBSD: tcp.h,v 1.27 2007/08/02 02:42:40 rmind Exp $ */ /* * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. Neither the name of the University nor the names of its contributors * may be used to endorse or promote products derived from this software * without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * @@(#)tcp.h 8.1 (Berkeley) 6/10/93 */ #ifndef _NETINET_TCP_H_ #define _NETINET_TCP_H_ #include #if defined(_NETBSD_SOURCE) typedef u_int32_t tcp_seq; /* * TCP header. * Per RFC 793, September, 1981. * Updated by RFC 3168, September, 2001. */ struct tcphdr { u_int16_t th_sport; /* source port */ u_int16_t th_dport; /* destination port */ tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; /* acknowledgement number */ #if BYTE_ORDER == LITTLE_ENDIAN /*LINTED non-portable bitfields*/ u_int8_t th_x2:4, /* (unused) */ th_off:4; /* data offset */ #endif #if BYTE_ORDER == BIG_ENDIAN /*LINTED non-portable bitfields*/ u_int8_t th_off:4, /* data offset */ th_x2:4; /* (unused) */ #endif u_int8_t th_flags; #define TH_FIN 0x01 #define TH_SYN 0x02 #define TH_RST 0x04 #define TH_PUSH 0x08 #define TH_ACK 0x10 #define TH_URG 0x20 #define TH_ECE 0x40 #define TH_CWR 0x80 u_int16_t th_win; /* window */ u_int16_t th_sum; /* checksum */ u_int16_t th_urp; /* urgent pointer */ } __attribute__((__packed__)); #define TCPOPT_EOL 0 #define TCPOPT_NOP 1 #define TCPOPT_MAXSEG 2 #define TCPOLEN_MAXSEG 4 #define TCPOPT_WINDOW 3 #define TCPOLEN_WINDOW 3 #define TCPOPT_SACK_PERMITTED 4 /* Experimental */ #define TCPOLEN_SACK_PERMITTED 2 #define TCPOPT_SACK 5 /* Experimental */ #define TCPOPT_TIMESTAMP 8 #define TCPOLEN_TIMESTAMP 10 #define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */ #define TCPOPT_TSTAMP_HDR \ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP) #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ #define TCPOLEN_SIGNATURE 18 #define TCPOLEN_SIGLEN (TCPOLEN_SIGNATURE+2) /* padding */ #define MAX_TCPOPTLEN 40 /* max # bytes that go in options */ /* * Default maximum segment size for TCP. * This is defined by RFC 1112 Sec 4.2.2.6. */ #define TCP_MSS 536 #define TCP_MINMSS 216 #define TCP_MAXWIN 65535 /* largest value for (unscaled) window */ #define TCP_MAX_WINSHIFT 14 /* maximum window shift */ #define TCP_MAXBURST 4 /* maximum segments in a burst */ #endif /* _NETBSD_SOURCE */ /* * User-settable options (used with setsockopt). */ #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 2 /* set maximum segment size */ #define TCP_KEEPIDLE 3 #ifdef notyet #define TCP_NOPUSH 4 /* reserved for FreeBSD compat */ #endif #define TCP_KEEPINTVL 5 #define TCP_KEEPCNT 6 #define TCP_KEEPINIT 7 #ifdef notyet #define TCP_NOOPT 8 /* reserved for FreeBSD compat */ #endif #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ #define TCP_CONGCTL 0x20 /* selected congestion control */ #endif /* !_NETINET_TCP_H_ */ @ 1.27.10.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.28 2007/12/25 18:33:47 perry Exp $ */ d74 1 a74 1 } __packed; @ 1.27.4.1 log @sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.27 2007/08/02 02:42:40 rmind Exp $ */ d74 1 a74 1 } __packed; @ 1.27.16.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD$ */ d74 1 a74 1 } __packed; @ 1.27.12.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.28 2007/12/25 18:33:47 perry Exp $ */ d74 1 a74 1 } __packed; @ 1.26 log @- per socket keepalive settings - settable connection establishment timeout @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.25 2006/10/09 16:27:07 rpaulo Exp $ */ d104 2 @ 1.26.2.1 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.27 2007/08/02 02:42:40 rmind Exp $ */ a103 2 #define TCP_MINMSS 216 @ 1.25 log @Modular (I tried ;-) TCP congestion control API. Whenever certain conditions happen in the TCP stack, this interface calls the specified callback to handle the situation according to the currently selected congestion control algorithm. A new sysctl node was created: net.inet.tcp.congctl.{available,selected} with obvious meanings. The old net.inet.tcp.newreno MIB was removed. The API is discussed in tcp_congctl(9). In the near future, it will be possible to selected a congestion control algorithm on a per-socket basis. Discussed on tech-net and reviewed by . @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.23 2006/09/25 13:20:20 rpaulo Exp $ */ d115 13 a127 4 #define TCP_NODELAY 0x01 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 0x02 /* set maximum segment size */ /* Bits 0x04, 0x08 reserved for FreeBSD compatibility: TCP_NOPUSH, TCP_NOOPT */ #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ @ 1.25.8.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.25 2006/10/09 16:27:07 rpaulo Exp $ */ d115 4 a118 13 #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 2 /* set maximum segment size */ #define TCP_KEEPIDLE 3 #ifdef notyet #define TCP_NOPUSH 4 /* reserved for FreeBSD compat */ #endif #define TCP_KEEPINTVL 5 #define TCP_KEEPCNT 6 #define TCP_KEEPINIT 7 #ifdef notyet #define TCP_NOOPT 8 /* reserved for FreeBSD compat */ #endif #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ @ 1.25.8.2 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.25.8.1 2007/07/15 13:27:57 ad Exp $ */ a103 2 #define TCP_MINMSS 216 @ 1.25.10.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.26 2007/06/20 15:29:18 christos Exp $ */ d115 4 a118 13 #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 2 /* set maximum segment size */ #define TCP_KEEPIDLE 3 #ifdef notyet #define TCP_NOPUSH 4 /* reserved for FreeBSD compat */ #endif #define TCP_KEEPINTVL 5 #define TCP_KEEPCNT 6 #define TCP_KEEPINIT 7 #ifdef notyet #define TCP_NOOPT 8 /* reserved for FreeBSD compat */ #endif #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ @ 1.24 log @Remove line that shouldn't have been committed. @ text @d119 1 @ 1.23 log @PR/14806: NetBSD uses the wrong default TCP MSS. No objections in tech-net. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.22 2006/09/05 00:29:36 rpaulo Exp $ */ a118 1 #define TCP_CONGCTL 0x20 /* selected congestion control */ @ 1.22 log @Import of TCP ECN algorithm for congestion control. Both available for IPv4 and IPv6. Basic implementation test results are available at http://netbsd-soc.sourceforge.net/projects/ecn/testresults.html. Work sponsored by the Google Summer of Code project 2006. Special thanks to Kentaro Kurahone, Allen Briggs and Matt Thomas for their help, comments and support during the project. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.21 2005/12/10 23:36:23 elad Exp $ */ d100 1 a100 3 * With an IP MSS of 576, this is 536, * but 512 is probably more convenient. * This should be defined as min(512, IP_MSS - sizeof (struct tcpiphdr)). d102 1 a102 1 #define TCP_MSS 512 d119 1 @ 1.22.2.1 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.25 2006/10/09 16:27:07 rpaulo Exp $ */ d100 3 a102 1 * This is defined by RFC 1112 Sec 4.2.2.6. d104 1 a104 1 #define TCP_MSS 536 a120 1 #define TCP_CONGCTL 0x20 /* selected congestion control */ @ 1.22.4.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.22 2006/09/05 00:29:36 rpaulo Exp $ */ d100 3 a102 1 * This is defined by RFC 1112 Sec 4.2.2.6. d104 1 a104 1 #define TCP_MSS 536 a120 1 #define TCP_CONGCTL 0x20 /* selected congestion control */ @ 1.21 log @Multiple inclusion protection, as suggested by christos@@ on tech-kern@@ few days ago. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.20 2005/07/21 17:32:11 riz Exp $ */ d69 2 a70 2 #define TH_ECE 0x40 /* (unimplemented) */ #define TH_CWR 0x80 /* (unimplemented) */ @ 1.21.8.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.21 2005/12/10 23:36:23 elad Exp $ */ d69 2 a70 2 #define TH_ECE 0x40 #define TH_CWR 0x80 @ 1.21.4.1 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.22 2006/09/05 00:29:36 rpaulo Exp $ */ d69 2 a70 2 #define TH_ECE 0x40 #define TH_CWR 0x80 @ 1.20 log @Add a definition for TCPOLEN_SIGLEN from OpenBSD, so a kernel with options TCP_SIGNATURE will compile again after the new PMTU checks were brought in from OpenBSD. Approved by christos. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19 2005/03/07 09:32:51 yamt Exp $ */ d121 2 a122 1 #endif /* _NETINET_TCP_H_ */ @ 1.19 log @tcp_sack_option: the max number of sack blocks in a packet is 4, not 3. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.18 2004/12/07 14:24:04 yamt Exp $ */ d94 1 @ 1.19.4.1 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19 2005/03/07 09:32:51 yamt Exp $ */ a93 1 #define TCPOLEN_SIGLEN (TCPOLEN_SIGNATURE+2) /* padding */ d120 1 a120 2 #endif /* !_NETINET_TCP_H_ */ @ 1.19.4.2 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19.4.1 2006/06/21 15:11:01 yamt Exp $ */ d69 2 a70 2 #define TH_ECE 0x40 #define TH_CWR 0x80 d100 3 a102 1 * This is defined by RFC 1112 Sec 4.2.2.6. d104 1 a104 1 #define TCP_MSS 536 a120 1 #define TCP_CONGCTL 0x20 /* selected congestion control */ @ 1.19.4.3 log @sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19.4.2 2006/12/30 20:50:33 yamt Exp $ */ a103 2 #define TCP_MINMSS 216 d115 4 a118 13 #define TCP_NODELAY 1 /* don't delay send to coalesce packets */ #define TCP_MAXSEG 2 /* set maximum segment size */ #define TCP_KEEPIDLE 3 #ifdef notyet #define TCP_NOPUSH 4 /* reserved for FreeBSD compat */ #endif #define TCP_KEEPINTVL 5 #define TCP_KEEPCNT 6 #define TCP_KEEPINIT 7 #ifdef notyet #define TCP_NOOPT 8 /* reserved for FreeBSD compat */ #endif #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ @ 1.19.4.4 log @sync with head @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19.4.3 2007/09/03 14:43:00 yamt Exp $ */ d74 1 a74 1 } __packed; @ 1.18 log @remove TCPOPT_MD5SIGNATURE because no one in our tree uses it and it's duplicated with TCPOPT_SIGNATURE. i preferred TCPOPT_SIGNATURE because it's used by FreeBSD and OpenBSD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.17 2004/05/07 20:11:52 kleink Exp $ */ d95 2 @ 1.18.4.1 log @sync with -current @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.19 2005/03/07 09:32:51 yamt Exp $ */ a94 2 #define MAX_TCPOPTLEN 40 /* max # bytes that go in options */ @ 1.18.6.1 log @sync with head. xen and whitespace. xen part is not finished. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.18 2004/12/07 14:24:04 yamt Exp $ */ a94 2 #define MAX_TCPOPTLEN 40 /* max # bytes that go in options */ @ 1.17 log @Add definitions for the (currently unimplemented) ECN TCP flags; from Chuck Swiger in PR standards/25058. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.16 2004/04/25 22:25:03 jonathan Exp $ */ a87 2 #define TCPOPT_MD5SIGNATURE 19 /* RFC 2385 */ #define TCPOLEN_MD5SIGNATURE 18 d92 1 a92 1 #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ @ 1.16 log @Initial commit of a port of the FreeBSD implementation of RFC 2385 (MD5 signatures for TCP, as used with BGP). Credit for original FreeBSD code goes to Bruce M. Simpson, with FreeBSD sponsorship credited to sentex.net. Shortening of the setsockopt() name attributed to Vincent Jardin. This commit is a minimal, working version of the FreeBSD code, as MFC'ed to FreeBSD-4. It has received minimal testing with a ttcp modified to set the TCP-MD5 option; BMS's additions to tcpdump-current (tcpdump -M) confirm that the MD5 signatures are correct. Committed as-is for further testing between a NetBSD BGP speaker (e.g., quagga) and industry-standard BGP speakers (e.g., Cisco, Juniper). NOTE: This version has two potential flaws. First, I do see any code that verifies recieved TCP-MD5 signatures. Second, the TCP-MD5 options are internally padded and assumed to be 32-bit aligned. A more space-efficient scheme is to pack all TCP options densely (and possibly unaligned) into the TCP header ; then do one final padding to a 4-byte boundary. Pre-existing comments note that accounting for TCP-option space when we add SACK is yet to be done. For now, I'm punting on that; we can solve it properly, in a way that will handle SACK blocks, as a separate exercise. In case a pullup to NetBSD-2 is requested, this adds sys/netipsec/xform_tcp.c ,and modifies: sys/net/pfkeyv2.h,v 1.15 sys/netinet/files.netinet,v 1.5 sys/netinet/ip.h,v 1.25 sys/netinet/tcp.h,v 1.15 sys/netinet/tcp_input.c,v 1.200 sys/netinet/tcp_output.c,v 1.109 sys/netinet/tcp_subr.c,v 1.165 sys/netinet/tcp_usrreq.c,v 1.89 sys/netinet/tcp_var.h,v 1.109 sys/netipsec/files.netipsec,v 1.3 sys/netipsec/ipsec.c,v 1.11 sys/netipsec/ipsec.h,v 1.7 sys/netipsec/key.c,v 1.11 share/man/man4/tcp.4,v 1.16 lib/libipsec/pfkey.c,v 1.20 lib/libipsec/pfkey_dump.c,v 1.17 lib/libipsec/policy_token.l,v 1.8 sbin/setkey/parse.y,v 1.14 sbin/setkey/setkey.8,v 1.27 sbin/setkey/token.l,v 1.15 Note that the preceding two revisions to tcp.4 will be required to cleanly apply this diff. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.15 2003/08/07 16:33:15 agc Exp $ */ d45 1 d69 2 @ 1.15 log @Move UCB-licensed code from 4-clause to 3-clause licence. Patches provided by Joel Baker in PR 22364, verified by myself. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.14 2003/05/05 14:36:13 bjh21 Exp $ */ d91 3 d115 2 a116 1 @ 1.14 log @Header cleanup: Hide all of this file apart from the socket options from POSIX/XNS applications. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.13 2001/05/26 21:40:55 matt Exp $ */ d15 1 a15 5 * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * This product includes software developed by the University of * California, Berkeley and its contributors. * 4. Neither the name of the University nor the names of its contributors @ 1.14.2.1 log @Sync with HEAD @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.17 2004/05/07 20:11:52 kleink Exp $ */ d15 5 a19 1 * 3. Neither the name of the University nor the names of its contributors a48 1 * Updated by RFC 3168, September, 2001. a71 2 #define TH_ECE 0x40 /* (unimplemented) */ #define TH_CWR 0x80 /* (unimplemented) */ a94 3 #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ #define TCPOLEN_SIGNATURE 18 d116 1 a116 2 /* Bits 0x04, 0x08 reserved for FreeBSD compatibility: TCP_NOPUSH, TCP_NOOPT */ #define TCP_MD5SIG 0x10 /* use MD5 digests (RFC2385) */ @ 1.14.2.2 log @Sync with HEAD. @ text @@ 1.14.2.3 log @Fix the sync with head I botched. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.14.2.1 2004/08/03 10:54:44 skrll Exp $ */ @ 1.14.2.4 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.14.2.3 2004/09/21 13:37:13 skrll Exp $ */ d88 2 d94 1 a94 1 #define TCPOPT_SIGNATURE 19 /* Keyed MD5: RFC 2385 */ @ 1.14.2.5 log @Sync with HEAD. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.14.2.4 2004/12/18 09:33:05 skrll Exp $ */ a94 2 #define MAX_TCPOPTLEN 40 /* max # bytes that go in options */ @ 1.14.2.6 log @Sync with HEAD. Here we go again... @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.14.2.5 2005/03/08 13:53:12 skrll Exp $ */ a93 1 #define TCPOLEN_SIGLEN (TCPOLEN_SIGNATURE+2) /* padding */ @ 1.14.2.7 log @Sync with head. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.21 2005/12/10 23:36:23 elad Exp $ */ d121 1 a121 2 #endif /* !_NETINET_TCP_H_ */ @ 1.13 log @Add TCP_MD5SIGNATURE option. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.12 2000/07/05 02:45:03 christos Exp $ */ d41 4 d108 2 @ 1.12 log @added a linted comment about non-portable bitfields. Unfortunately it cannot be fixed portably. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.11 1999/11/20 00:38:00 thorpej Exp $ */ d85 2 @ 1.12.2.1 log @Catch up to -current. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.12 2000/07/05 02:45:03 christos Exp $ */ a84 2 #define TCPOPT_MD5SIGNATURE 19 /* RFC 2385 */ #define TCPOLEN_MD5SIGNATURE 18 @ 1.11 log @Add the `packed' attribute to structures which describe wire protocol data. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.10 1998/10/04 21:33:52 matt Exp $ */ d52 1 d57 1 @ 1.10 log @Adapt the NEWRENO changes from the UCSB diffs of BSDI 3.0's TCP to NetBSD. Ignore the SACK & FACK stuff for now. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.9 1998/02/10 01:27:07 perry Exp $ */ d69 1 a69 1 }; @ 1.10.12.1 log @Update thorpej_scsipi to -current as of a month ago @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.12 2000/07/05 02:45:03 christos Exp $ */ a51 1 /*LINTED non-portable bitfields*/ a55 1 /*LINTED non-portable bitfields*/ d69 1 a69 1 } __attribute__((__packed__)); @ 1.10.18.1 log @Pull up to last week's -current. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.11 1999/11/20 00:38:00 thorpej Exp $ */ d69 1 a69 1 } __attribute__((__packed__)); @ 1.9 log @add/cleanup multiple inclusion protection. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.8 1995/04/17 05:32:58 cgd Exp $ */ d98 2 @ 1.8 log @spacing cleaup. also, minor type mixup fixups. @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.7 1995/04/13 06:36:30 cgd Exp $ */ d38 3 d104 2 @ 1.7 log @be a bit more careful and explicit with types. (basically a large no-op.) @ text @d1 1 a1 1 /* $NetBSD: tcp.h,v 1.6 1994/06/29 06:38:34 cgd Exp $ */ d38 1 a38 1 typedef u_int32_t tcp_seq; d46 2 a47 2 tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; /* acknowledgement number */ d57 6 a62 6 #define TH_FIN 0x01 #define TH_SYN 0x02 #define TH_RST 0x04 #define TH_PUSH 0x08 #define TH_ACK 0x10 #define TH_URG 0x20 @ 1.6 log @New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' @ text @d1 1 a1 1 /* $NetBSD$ */ d38 1 a38 1 typedef u_long tcp_seq; d44 4 a47 4 u_short th_sport; /* source port */ u_short th_dport; /* destination port */ tcp_seq th_seq; /* sequence number */ tcp_seq th_ack; /* acknowledgement number */ d49 2 a50 2 u_char th_x2:4, /* (unused) */ th_off:4; /* data offset */ d53 2 a54 2 u_char th_off:4, /* data offset */ th_x2:4; /* (unused) */ d56 1 a56 1 u_char th_flags; d63 3 a65 3 u_short th_win; /* window */ u_short th_sum; /* checksum */ u_short th_urp; /* urgent pointer */ @ 1.5 log @Update to 4.4-Lite networking code, with a few local changes. @ text @d1 2 d35 1 a35 2 * from: @@(#)tcp.h 8.1 (Berkeley) 6/10/93 * $Id: $ @ 1.4 log @Fix some inconsistent spacing; spaces at the end of lines, etc. @ text @d2 2 a3 2 * Copyright (c) 1982, 1986 Regents of the University of California. * All rights reserved. d33 2 a34 2 * from: @@(#)tcp.h 7.7 (Berkeley) 6/28/90 * $Id: tcp.h,v 1.3 1993/05/20 03:50:31 cgd Exp $ a36 3 #ifndef _NETINET_TCP_H_ #define _NETINET_TCP_H_ d67 15 a81 3 #define TCPOPT_EOL 0 #define TCPOPT_NOP 1 #define TCPOPT_MAXSEG 2 d87 1 a87 1 * This should be defined as MIN(512, IP_MSS - sizeof (struct tcpiphdr)). d89 1 a89 1 #define TCP_MSS 512 d91 3 a93 1 #define TCP_MAXWIN 65535 /* largest value for window */ a99 2 #endif /* !_NETINET_TCP_H_ */ @ 1.3 log @more rcsid additions and file header cleanups @ text @d34 1 a34 1 * $Id$ d50 1 a50 1 #if BYTE_ORDER == LITTLE_ENDIAN d54 1 a54 1 #if BYTE_ORDER == BIG_ENDIAN @ 1.2 log @Add consistent multiple-inclusion protection. @ text @d33 2 a34 1 * @@(#)tcp.h 7.7 (Berkeley) 6/28/90 @ 1.1 log @Initial revision @ text @d36 3 d88 2 @ 1.1.1.1 log @initial import of 386bsd-0.1 sources @ text @@ 1.1.1.2 log @Import sys/netinet from 4.4BSD-Lite for reference purposes. @ text @d2 2 a3 2 * Copyright (c) 1982, 1986, 1993 * The Regents of the University of California. All rights reserved. d33 1 a33 1 * @@(#)tcp.h 8.1 (Berkeley) 6/10/93 d66 3 a68 15 #define TCPOPT_EOL 0 #define TCPOPT_NOP 1 #define TCPOPT_MAXSEG 2 #define TCPOLEN_MAXSEG 4 #define TCPOPT_WINDOW 3 #define TCPOLEN_WINDOW 3 #define TCPOPT_SACK_PERMITTED 4 /* Experimental */ #define TCPOLEN_SACK_PERMITTED 2 #define TCPOPT_SACK 5 /* Experimental */ #define TCPOPT_TIMESTAMP 8 #define TCPOLEN_TIMESTAMP 10 #define TCPOLEN_TSTAMP_APPA (TCPOLEN_TIMESTAMP+2) /* appendix A */ #define TCPOPT_TSTAMP_HDR \ (TCPOPT_NOP<<24|TCPOPT_NOP<<16|TCPOPT_TIMESTAMP<<8|TCPOLEN_TIMESTAMP) d78 1 a78 3 #define TCP_MAXWIN 65535 /* largest value for (unscaled) window */ #define TCP_MAX_WINSHIFT 14 /* maximum window shift */ @