head 1.3; access; symbols netbsd-10-0-RELEASE:1.3 netbsd-10-0-RC6:1.3 netbsd-10-0-RC5:1.3 netbsd-10-0-RC4:1.3 netbsd-10-0-RC3:1.3 netbsd-10-0-RC2:1.3 thorpej-ifq:1.3.0.176 thorpej-ifq-base:1.3 thorpej-altq-separation:1.3.0.174 thorpej-altq-separation-base:1.3 netbsd-10-0-RC1:1.3 netbsd-10:1.3.0.172 netbsd-10-base:1.3 bouyer-sunxi-drm:1.3.0.170 bouyer-sunxi-drm-base:1.3 netbsd-9-3-RELEASE:1.3 thorpej-i2c-spi-conf2:1.3.0.168 thorpej-i2c-spi-conf2-base:1.3 thorpej-futex2:1.3.0.166 thorpej-futex2-base:1.3 thorpej-cfargs2:1.3.0.164 thorpej-cfargs2-base:1.3 cjep_sun2x-base1:1.3 cjep_sun2x:1.3.0.162 cjep_sun2x-base:1.3 cjep_staticlib_x-base1:1.3 netbsd-9-2-RELEASE:1.3 cjep_staticlib_x:1.3.0.160 cjep_staticlib_x-base:1.3 thorpej-i2c-spi-conf:1.3.0.158 thorpej-i2c-spi-conf-base:1.3 thorpej-cfargs:1.3.0.156 thorpej-cfargs-base:1.3 thorpej-futex:1.3.0.154 thorpej-futex-base:1.3 netbsd-9-1-RELEASE:1.3 bouyer-xenpvh-base2:1.3 phil-wifi-20200421:1.3 bouyer-xenpvh-base1:1.3 phil-wifi-20200411:1.3 bouyer-xenpvh:1.3.0.152 bouyer-xenpvh-base:1.3 is-mlppp:1.3.0.150 is-mlppp-base:1.3 phil-wifi-20200406:1.3 netbsd-8-2-RELEASE:1.3 ad-namecache-base3:1.3 netbsd-9-0-RELEASE:1.3 netbsd-9-0-RC2:1.3 ad-namecache-base2:1.3 ad-namecache-base1:1.3 ad-namecache:1.3.0.148 ad-namecache-base:1.3 netbsd-9-0-RC1:1.3 phil-wifi-20191119:1.3 netbsd-9:1.3.0.146 netbsd-9-base:1.3 phil-wifi-20190609:1.3 netbsd-8-1-RELEASE:1.3 netbsd-8-1-RC1:1.3 isaki-audio2:1.3.0.144 isaki-audio2-base:1.3 pgoyette-compat-merge-20190127:1.3 pgoyette-compat-20190127:1.3 pgoyette-compat-20190118:1.3 pgoyette-compat-1226:1.3 pgoyette-compat-1126:1.3 pgoyette-compat-1020:1.3 pgoyette-compat-0930:1.3 pgoyette-compat-0906:1.3 netbsd-7-2-RELEASE:1.3 pgoyette-compat-0728:1.3 netbsd-8-0-RELEASE:1.3 phil-wifi:1.3.0.142 phil-wifi-base:1.3 pgoyette-compat-0625:1.3 netbsd-8-0-RC2:1.3 pgoyette-compat-0521:1.3 pgoyette-compat-0502:1.3 pgoyette-compat-0422:1.3 netbsd-8-0-RC1:1.3 pgoyette-compat-0415:1.3 pgoyette-compat-0407:1.3 pgoyette-compat-0330:1.3 pgoyette-compat-0322:1.3 pgoyette-compat-0315:1.3 netbsd-7-1-2-RELEASE:1.3 pgoyette-compat:1.3.0.140 pgoyette-compat-base:1.3 netbsd-7-1-1-RELEASE:1.3 tls-maxphys-base-20171202:1.3 matt-nb8-mediatek:1.3.0.138 matt-nb8-mediatek-base:1.3 nick-nhusb-base-20170825:1.3 perseant-stdc-iso10646:1.3.0.136 perseant-stdc-iso10646-base:1.3 netbsd-8:1.3.0.134 netbsd-8-base:1.3 prg-localcount2-base3:1.3 prg-localcount2-base2:1.3 prg-localcount2-base1:1.3 prg-localcount2:1.3.0.132 prg-localcount2-base:1.3 pgoyette-localcount-20170426:1.3 bouyer-socketcan-base1:1.3 jdolecek-ncq:1.3.0.130 jdolecek-ncq-base:1.3 pgoyette-localcount-20170320:1.3 netbsd-7-1:1.3.0.128 netbsd-7-1-RELEASE:1.3 netbsd-7-1-RC2:1.3 nick-nhusb-base-20170204:1.3 netbsd-7-nhusb-base-20170116:1.3 bouyer-socketcan:1.3.0.126 bouyer-socketcan-base:1.3 pgoyette-localcount-20170107:1.3 netbsd-7-1-RC1:1.3 nick-nhusb-base-20161204:1.3 pgoyette-localcount-20161104:1.3 netbsd-7-0-2-RELEASE:1.3 nick-nhusb-base-20161004:1.3 localcount-20160914:1.3 netbsd-7-nhusb:1.3.0.124 netbsd-7-nhusb-base:1.3 pgoyette-localcount-20160806:1.3 pgoyette-localcount-20160726:1.3 pgoyette-localcount:1.3.0.122 pgoyette-localcount-base:1.3 nick-nhusb-base-20160907:1.3 nick-nhusb-base-20160529:1.3 netbsd-7-0-1-RELEASE:1.3 nick-nhusb-base-20160422:1.3 nick-nhusb-base-20160319:1.3 nick-nhusb-base-20151226:1.3 netbsd-7-0:1.3.0.120 netbsd-7-0-RELEASE:1.3 nick-nhusb-base-20150921:1.3 netbsd-7-0-RC3:1.3 netbsd-7-0-RC2:1.3 netbsd-7-0-RC1:1.3 nick-nhusb-base-20150606:1.3 nick-nhusb-base-20150406:1.3 nick-nhusb:1.3.0.118 nick-nhusb-base:1.3 netbsd-5-2-3-RELEASE:1.3 netbsd-5-1-5-RELEASE:1.3 netbsd-6-0-6-RELEASE:1.3 netbsd-6-1-5-RELEASE:1.3 netbsd-7:1.3.0.116 netbsd-7-base:1.3 yamt-pagecache-base9:1.3 yamt-pagecache-tag8:1.3 netbsd-6-1-4-RELEASE:1.3 netbsd-6-0-5-RELEASE:1.3 tls-earlyentropy:1.3.0.114 tls-earlyentropy-base:1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.3 riastradh-drm2-base3:1.3 netbsd-6-1-3-RELEASE:1.3 netbsd-6-0-4-RELEASE:1.3 netbsd-5-2-2-RELEASE:1.3 netbsd-5-1-4-RELEASE:1.3 netbsd-6-1-2-RELEASE:1.3 netbsd-6-0-3-RELEASE:1.3 netbsd-5-2-1-RELEASE:1.3 netbsd-5-1-3-RELEASE:1.3 rmind-smpnet-nbase:1.3 netbsd-6-1-1-RELEASE:1.3 riastradh-drm2-base2:1.3 riastradh-drm2-base1:1.3 riastradh-drm2:1.3.0.112 riastradh-drm2-base:1.3 rmind-smpnet:1.3.0.104 rmind-smpnet-base:1.3 netbsd-6-1:1.3.0.110 netbsd-6-0-2-RELEASE:1.3 netbsd-6-1-RELEASE:1.3 khorben-n900:1.3.0.108 netbsd-6-1-RC4:1.3 netbsd-6-1-RC3:1.3 agc-symver:1.3.0.106 agc-symver-base:1.3 netbsd-6-1-RC2:1.3 netbsd-6-1-RC1:1.3 yamt-pagecache-base8:1.3 netbsd-5-2:1.3.0.102 netbsd-6-0-1-RELEASE:1.3 yamt-pagecache-base7:1.3 netbsd-5-2-RELEASE:1.3 netbsd-5-2-RC1:1.3 matt-nb6-plus-nbase:1.3 yamt-pagecache-base6:1.3 netbsd-6-0:1.3.0.100 netbsd-6-0-RELEASE:1.3 netbsd-6-0-RC2:1.3 tls-maxphys:1.3.0.98 tls-maxphys-base:1.3 matt-nb6-plus:1.3.0.96 matt-nb6-plus-base:1.3 netbsd-6-0-RC1:1.3 jmcneill-usbmp-base10:1.3 yamt-pagecache-base5:1.3 jmcneill-usbmp-base9:1.3 yamt-pagecache-base4:1.3 jmcneill-usbmp-base8:1.3 jmcneill-usbmp-base7:1.3 jmcneill-usbmp-base6:1.3 jmcneill-usbmp-base5:1.3 jmcneill-usbmp-base4:1.3 jmcneill-usbmp-base3:1.3 jmcneill-usbmp-pre-base2:1.3 jmcneill-usbmp-base2:1.3 netbsd-6:1.3.0.94 netbsd-6-base:1.3 netbsd-5-1-2-RELEASE:1.3 netbsd-5-1-1-RELEASE:1.3 jmcneill-usbmp:1.3.0.92 jmcneill-usbmp-base:1.3 jmcneill-audiomp3:1.3.0.90 jmcneill-audiomp3-base:1.3 yamt-pagecache-base3:1.3 yamt-pagecache-base2:1.3 yamt-pagecache:1.3.0.88 yamt-pagecache-base:1.3 rmind-uvmplock-nbase:1.3 cherry-xenmp:1.3.0.86 cherry-xenmp-base:1.3 bouyer-quota2-nbase:1.3 bouyer-quota2:1.3.0.84 bouyer-quota2-base:1.3 jruoho-x86intr:1.3.0.82 jruoho-x86intr-base:1.3 matt-mips64-premerge-20101231:1.3 matt-nb5-mips64-premerge-20101231:1.3 matt-nb5-pq3:1.3.0.80 matt-nb5-pq3-base:1.3 netbsd-5-1:1.3.0.78 netbsd-5-1-RELEASE:1.3 uebayasi-xip-base4:1.3 uebayasi-xip-base3:1.3 yamt-nfs-mp-base11:1.3 netbsd-5-1-RC4:1.3 matt-nb5-mips64-k15:1.3 uebayasi-xip-base2:1.3 yamt-nfs-mp-base10:1.3 netbsd-5-1-RC3:1.3 netbsd-5-1-RC2:1.3 uebayasi-xip-base1:1.3 netbsd-5-1-RC1:1.3 rmind-uvmplock:1.3.0.76 rmind-uvmplock-base:1.3 yamt-nfs-mp-base9:1.3 uebayasi-xip:1.3.0.74 uebayasi-xip-base:1.3 netbsd-5-0-2-RELEASE:1.3 matt-nb5-mips64-premerge-20091211:1.3 matt-premerge-20091211:1.3 yamt-nfs-mp-base8:1.3 matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3 matt-nb4-mips64-k7-u2a-k9b:1.3 matt-nb5-mips64-u1-k1-k5:1.3 yamt-nfs-mp-base7:1.3 matt-nb5-mips64:1.3.0.72 netbsd-5-0-1-RELEASE:1.3 jymxensuspend-base:1.3 yamt-nfs-mp-base6:1.3 yamt-nfs-mp-base5:1.3 yamt-nfs-mp-base4:1.3 jym-xensuspend-nbase:1.3 yamt-nfs-mp-base3:1.3 nick-hppapmap-base4:1.3 nick-hppapmap-base3:1.3 netbsd-5-0:1.3.0.70 netbsd-5-0-RELEASE:1.3 netbsd-5-0-RC4:1.3 netbsd-5-0-RC3:1.3 nick-hppapmap-base2:1.3 netbsd-5-0-RC2:1.3 jym-xensuspend:1.3.0.68 jym-xensuspend-base:1.3 netbsd-5-0-RC1:1.3 haad-dm-base2:1.3 haad-nbase2:1.3 ad-audiomp2:1.3.0.66 ad-audiomp2-base:1.3 netbsd-5:1.3.0.64 netbsd-5-base:1.3 nick-hppapmap:1.3.0.62 nick-hppapmap-base:1.3 matt-mips64-base2:1.3 matt-mips64:1.3.0.60 haad-dm-base1:1.3 wrstuden-revivesa-base-4:1.3 netbsd-4-0-1-RELEASE:1.3 wrstuden-revivesa-base-3:1.3 wrstuden-revivesa-base-2:1.3 wrstuden-fixsa-newbase:1.3 nick-csl-alignment-base5:1.3 haad-dm:1.3.0.58 haad-dm-base:1.3 wrstuden-revivesa-base-1:1.3 simonb-wapbl-nbase:1.3 yamt-pf42-base4:1.3 simonb-wapbl:1.3.0.56 simonb-wapbl-base:1.3 yamt-pf42-base3:1.3 hpcarm-cleanup-nbase:1.3 yamt-pf42-baseX:1.3 yamt-pf42-base2:1.3 yamt-nfs-mp-base2:1.3 wrstuden-revivesa:1.3.0.54 wrstuden-revivesa-base:1.3 yamt-nfs-mp:1.3.0.52 yamt-nfs-mp-base:1.3 yamt-pf42:1.3.0.50 yamt-pf42-base:1.3 ad-socklock-base1:1.3 yamt-lazymbuf-base15:1.3 yamt-lazymbuf-base14:1.3 keiichi-mipv6-nbase:1.3 mjf-devfs2:1.3.0.48 mjf-devfs2-base:1.3 nick-net80211-sync:1.3.0.46 nick-net80211-sync-base:1.3 keiichi-mipv6:1.3.0.44 keiichi-mipv6-base:1.3 ad-audiomp-base-1:1.3 bouyer-xeni386-merge1:1.3 matt-armv6-prevmlocking:1.3 wrstuden-fixsa-base-1:1.3 vmlocking2-base3:1.3 netbsd-4-0:1.3.0.42 netbsd-4-0-RELEASE:1.3 bouyer-xeni386-nbase:1.3 yamt-kmem-base3:1.3 cube-autoconf:1.3.0.40 cube-autoconf-base:1.3 yamt-kmem-base2:1.3 bouyer-xeni386:1.3.0.38 bouyer-xeni386-base:1.3 yamt-kmem:1.3.0.36 yamt-kmem-base:1.3 vmlocking2-base2:1.3 reinoud-bufcleanup-nbase:1.3 vmlocking2:1.3.0.34 vmlocking2-base1:1.3 netbsd-4-0-RC5:1.3 matt-nb4-arm:1.3.0.32 matt-nb4-arm-base:1.3 matt-armv6-nbase:1.3 jmcneill-base:1.3 netbsd-4-0-RC4:1.3 mjf-devfs:1.3.0.30 mjf-devfs-base:1.3 bouyer-xenamd64-base2:1.3 vmlocking-nbase:1.3 yamt-x86pmap-base4:1.3 bouyer-xenamd64:1.3.0.28 bouyer-xenamd64-base:1.3 netbsd-4-0-RC3:1.3 yamt-x86pmap-base3:1.3 yamt-x86pmap-base2:1.3 netbsd-4-0-RC2:1.3 yamt-x86pmap:1.3.0.26 yamt-x86pmap-base:1.3 netbsd-4-0-RC1:1.3 matt-armv6:1.3.0.24 matt-armv6-base:1.3 matt-mips64-base:1.3 jmcneill-pm:1.3.0.22 jmcneill-pm-base:1.3 hpcarm-cleanup:1.3.0.20 hpcarm-cleanup-base:1.3 nick-csl-alignment:1.3.0.18 nick-csl-alignment-base:1.3 netbsd-3-1-1-RELEASE:1.2 netbsd-3-0-3-RELEASE:1.2 yamt-idlelwp-base8:1.3 wrstuden-fixsa:1.3.0.16 wrstuden-fixsa-base:1.3 thorpej-atomic:1.3.0.14 thorpej-atomic-base:1.3 reinoud-bufcleanup:1.3.0.12 reinoud-bufcleanup-base:1.3 mjf-ufs-trans:1.3.0.10 mjf-ufs-trans-base:1.3 vmlocking:1.3.0.8 vmlocking-base:1.3 ad-audiomp:1.3.0.6 ad-audiomp-base:1.3 yamt-idlelwp:1.3.0.4 post-newlock2-merge:1.3 newlock2-nbase:1.3 yamt-splraiseipl-base5:1.3 yamt-splraiseipl-base4:1.3 yamt-splraiseipl-base3:1.3 abandoned-netbsd-4-base:1.2 abandoned-netbsd-4:1.2.0.70 netbsd-3-1:1.2.0.76 netbsd-3-1-RELEASE:1.2 netbsd-3-0-2-RELEASE:1.2 yamt-splraiseipl-base2:1.3 netbsd-3-1-RC4:1.2 yamt-splraiseipl:1.2.0.74 yamt-splraiseipl-base:1.2 netbsd-3-1-RC3:1.2 yamt-pdpolicy-base9:1.2 newlock2:1.2.0.72 newlock2-base:1.3 yamt-pdpolicy-base8:1.2 netbsd-3-1-RC2:1.2 netbsd-3-1-RC1:1.2 yamt-pdpolicy-base7:1.2 netbsd-4:1.3.0.2 netbsd-4-base:1.3 yamt-pdpolicy-base6:1.2 chap-midi-nbase:1.2 netbsd-3-0-1-RELEASE:1.2 gdamore-uart:1.2.0.68 gdamore-uart-base:1.2 simonb-timcounters-final:1.2 yamt-pdpolicy-base5:1.2 chap-midi:1.2.0.66 chap-midi-base:1.2 yamt-pdpolicy-base4:1.2 yamt-pdpolicy-base3:1.2 peter-altq-base:1.2 peter-altq:1.2.0.64 yamt-pdpolicy-base2:1.2 elad-kernelauth-base:1.2 elad-kernelauth:1.2.0.62 yamt-pdpolicy:1.2.0.60 yamt-pdpolicy-base:1.2 yamt-uio_vmspace-base5:1.2 simonb-timecounters:1.2.0.58 simonb-timecounters-base:1.2 rpaulo-netinet-merge-pcb:1.2.0.56 rpaulo-netinet-merge-pcb-base:1.2 yamt-uio_vmspace:1.2.0.54 netbsd-3-0:1.2.0.52 netbsd-3-0-RELEASE:1.2 netbsd-3-0-RC6:1.2 yamt-readahead-base3:1.2 netbsd-3-0-RC5:1.2 netbsd-3-0-RC4:1.2 netbsd-3-0-RC3:1.2 yamt-readahead-base2:1.2 netbsd-3-0-RC2:1.2 yamt-readahead-pervnode:1.2 yamt-readahead-perfile:1.2 yamt-readahead:1.2.0.50 yamt-readahead-base:1.2 netbsd-3-0-RC1:1.2 yamt-vop-base3:1.2 netbsd-2-0-3-RELEASE:1.2 netbsd-2-1:1.2.0.48 yamt-vop-base2:1.2 thorpej-vnode-attr:1.2.0.46 thorpej-vnode-attr-base:1.2 netbsd-2-1-RELEASE:1.2 yamt-vop:1.2.0.44 yamt-vop-base:1.2 netbsd-2-1-RC6:1.2 netbsd-2-1-RC5:1.2 netbsd-2-1-RC4:1.2 netbsd-2-1-RC3:1.2 netbsd-2-1-RC2:1.2 netbsd-2-1-RC1:1.2 yamt-lazymbuf:1.2.0.42 yamt-km-base4:1.2 netbsd-2-0-2-RELEASE:1.2 yamt-km-base3:1.2 netbsd-3:1.2.0.40 netbsd-3-base:1.2 yamt-km-base2:1.2 yamt-km:1.2.0.36 yamt-km-base:1.2 kent-audio2:1.2.0.34 kent-audio2-base:1.2 netbsd-2-0-1-RELEASE:1.2 kent-audio1-beforemerge:1.2 netbsd-2:1.2.0.32 netbsd-2-base:1.2 kent-audio1:1.2.0.30 kent-audio1-base:1.2 netbsd-2-0-RELEASE:1.2 netbsd-2-0-RC5:1.2 netbsd-2-0-RC4:1.2 netbsd-2-0-RC3:1.2 netbsd-2-0-RC2:1.2 netbsd-2-0-RC1:1.2 netbsd-2-0:1.2.0.28 netbsd-2-0-base:1.2 netbsd-1-6-PATCH002-RELEASE:1.2 netbsd-1-6-PATCH002:1.2 netbsd-1-6-PATCH002-RC4:1.2 netbsd-1-6-PATCH002-RC3:1.2 netbsd-1-6-PATCH002-RC2:1.2 netbsd-1-6-PATCH002-RC1:1.2 ktrace-lwp:1.2.0.26 ktrace-lwp-base:1.2 netbsd-1-6-PATCH001:1.2 netbsd-1-6-PATCH001-RELEASE:1.2 netbsd-1-6-PATCH001-RC3:1.2 netbsd-1-6-PATCH001-RC2:1.2 netbsd-1-6-PATCH001-RC1:1.2 nathanw_sa_end:1.2 nathanw_sa_before_merge:1.2 fvdl_fs64_base:1.2 gmcgarry_ctxsw:1.2.0.24 gmcgarry_ctxsw_base:1.2 gmcgarry_ucred:1.2.0.22 gmcgarry_ucred_base:1.2 nathanw_sa_base:1.2 kqueue-aftermerge:1.2 kqueue-beforemerge:1.2 netbsd-1-6-RELEASE:1.2 netbsd-1-6-RC3:1.2 netbsd-1-6-RC2:1.2 netbsd-1-6-RC1:1.2 netbsd-1-6:1.2.0.20 netbsd-1-6-base:1.2 gehenna-devsw:1.2.0.18 gehenna-devsw-base:1.2 eeh-devprop:1.2.0.16 eeh-devprop-base:1.2 newlock:1.2.0.14 newlock-base:1.2 ifpoll-base:1.2 thorpej-mips-cache:1.2.0.10 thorpej-mips-cache-base:1.2 thorpej-devvp-base3:1.2 thorpej-devvp-base2:1.2 post-chs-ubcperf:1.2 pre-chs-ubcperf:1.2 thorpej-devvp:1.2.0.8 thorpej-devvp-base:1.2 kqueue:1.2.0.6 kqueue-base:1.2 thorpej_scsipi_beforemerge:1.2 nathanw_sa:1.2.0.4 thorpej_scsipi_nbase:1.2 thorpej_scsipi_base:1.2 thorpej_scsipi:1.2.0.2 kame_15_20001214:1.1.1.1 kame:1.1.1; locks; strict; comment @ * @; 1.3 date 2006.10.12.19.59.08; author peter; state Exp; branches; next 1.2; 1.2 date 2000.12.14.08.49.49; author thorpej; state Exp; branches 1.2.2.1 1.2.42.1 1.2.64.1 1.2.72.1 1.2.74.1; next 1.1; 1.1 date 2000.12.14.08.42.28; author thorpej; state Exp; branches 1.1.1.1; next ; 1.2.2.1 date 2000.12.14.08.49.49; author bouyer; state dead; branches; next 1.2.2.2; 1.2.2.2 date 2001.01.05.17.39.35; author bouyer; state Exp; branches; next ; 1.2.42.1 date 2006.12.30.20.45.17; author yamt; state Exp; branches; next ; 1.2.64.1 date 2006.03.18.12.08.18; author peter; state Exp; branches; next ; 1.2.72.1 date 2006.11.18.21.39.02; author ad; state Exp; branches; next ; 1.2.74.1 date 2006.10.22.06.04.30; author yamt; state Exp; branches; next ; 1.1.1.1 date 2000.12.14.08.42.28; author thorpej; state Exp; branches; next ; desc @@ 1.3 log @Merge the peter-altq branch. (sync with KAME & add support for using ALTQ with pf(4)). @ text @/* $NetBSD: altq_afmap.h,v 1.2.64.1 2006/03/18 12:08:18 peter Exp $ */ /* $KAME: altq_afmap.h,v 1.6 2002/04/03 05:38:50 kjc Exp $ */ /* * Copyright (C) 1997-2002 * Sony Computer Science Laboratories Inc. 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. * * THIS SOFTWARE IS PROVIDED BY SONY CSL 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 SONY CSL 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. */ #ifndef _ALTQ_ALTQ_AFMAP_H_ #define _ALTQ_ALTQ_AFMAP_H_ #include #include struct atm_flowmap { char af_ifname[IFNAMSIZ]; /* if name, e.g. "en0" */ u_int8_t af_vpi; u_int16_t af_vci; u_int32_t af_pcr; /* peek cell rate */ union { struct flowinfo afu_fi; struct flowinfo_in afu_fi4; #ifdef SIN6_LEN struct flowinfo_in6 afu_fi6; #endif } af_fiu; #define af_flowinfo af_fiu.afu_fi #define af_flowinfo4 af_fiu.afu_fi4 #define af_flowinfo6 af_fiu.afu_fi6 /* statistics */ u_int32_t afs_packets; /* total packet count */ u_int32_t afs_bytes; /* total byte count */ }; /* set or get flowmap */ #define AFM_ADDFMAP _IOWR('F', 30, struct atm_flowmap) #define AFM_DELFMAP _IOWR('F', 31, struct atm_flowmap) #define AFM_CLEANFMAP _IOWR('F', 32, struct atm_flowmap) #define AFM_GETFMAP _IOWR('F', 33, struct atm_flowmap) #ifdef _KERNEL /* per flow information */ struct afm { LIST_ENTRY(afm) afm_list; u_int16_t afm_vci; u_int8_t afm_vpi; union { struct flowinfo afmu_fi; struct flowinfo_in afmu_fi4; #ifdef SIN6_LEN struct flowinfo_in6 afmu_fi6; #endif } afm_fiu; #define afm_flowinfo afm_fiu.afmu_fi #define afm_flowinfo4 afm_fiu.afmu_fi4 #define afm_flowinfo6 afm_fiu.afmu_fi6 /* statistics */ u_int32_t afms_packets; /* total packet count */ u_int32_t afms_bytes; /* total byte count */ }; /* per interface */ struct afm_head { LIST_ENTRY(afm_head) afh_chain; LIST_HEAD(, afm) afh_head; struct ifnet *afh_ifp; }; struct afm *afm_top(struct ifnet *); int afm_alloc(struct ifnet *); int afm_dealloc(struct ifnet *); int afm_add(struct ifnet *, struct atm_flowmap *); int afm_remove(struct afm *); int afm_removeall(struct ifnet *); struct afm *afm_lookup(struct ifnet *, int, int); struct afm *afm_match(struct ifnet *, struct flowinfo *); #endif /* _KERNEL */ #endif /* _ALTQ_ALTQ_AFMAP_H_ */ @ 1.2 log @Add NetBSD RCS IDs. @ text @d1 2 a2 2 /* $NetBSD$ */ /* $KAME: altq_afmap.h,v 1.5 2000/12/14 08:12:45 thorpej Exp $ */ d5 1 a5 1 * Copyright (C) 1997-2000 d93 8 a100 8 struct afm *afm_top __P((struct ifnet *)); int afm_alloc __P((struct ifnet *)); int afm_dealloc __P((struct ifnet *)); int afm_add __P((struct ifnet *, struct atm_flowmap *)); int afm_remove __P((struct afm *)); int afm_removeall __P((struct ifnet *)); struct afm *afm_lookup __P((struct ifnet *, int, int)); struct afm *afm_match __P((struct ifnet *, struct flowinfo *)); @ 1.2.2.1 log @file altq_afmap.h was added on branch thorpej_scsipi on 2001-01-05 17:39:35 +0000 @ text @d1 104 @ 1.2.2.2 log @Sync with HEAD @ text @a0 104 /* $NetBSD: altq_afmap.h,v 1.2.2.1 2001/01/05 17:39:35 bouyer Exp $ */ /* $KAME: altq_afmap.h,v 1.5 2000/12/14 08:12:45 thorpej Exp $ */ /* * Copyright (C) 1997-2000 * Sony Computer Science Laboratories Inc. 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. * * THIS SOFTWARE IS PROVIDED BY SONY CSL 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 SONY CSL 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. */ #ifndef _ALTQ_ALTQ_AFMAP_H_ #define _ALTQ_ALTQ_AFMAP_H_ #include #include struct atm_flowmap { char af_ifname[IFNAMSIZ]; /* if name, e.g. "en0" */ u_int8_t af_vpi; u_int16_t af_vci; u_int32_t af_pcr; /* peek cell rate */ union { struct flowinfo afu_fi; struct flowinfo_in afu_fi4; #ifdef SIN6_LEN struct flowinfo_in6 afu_fi6; #endif } af_fiu; #define af_flowinfo af_fiu.afu_fi #define af_flowinfo4 af_fiu.afu_fi4 #define af_flowinfo6 af_fiu.afu_fi6 /* statistics */ u_int32_t afs_packets; /* total packet count */ u_int32_t afs_bytes; /* total byte count */ }; /* set or get flowmap */ #define AFM_ADDFMAP _IOWR('F', 30, struct atm_flowmap) #define AFM_DELFMAP _IOWR('F', 31, struct atm_flowmap) #define AFM_CLEANFMAP _IOWR('F', 32, struct atm_flowmap) #define AFM_GETFMAP _IOWR('F', 33, struct atm_flowmap) #ifdef _KERNEL /* per flow information */ struct afm { LIST_ENTRY(afm) afm_list; u_int16_t afm_vci; u_int8_t afm_vpi; union { struct flowinfo afmu_fi; struct flowinfo_in afmu_fi4; #ifdef SIN6_LEN struct flowinfo_in6 afmu_fi6; #endif } afm_fiu; #define afm_flowinfo afm_fiu.afmu_fi #define afm_flowinfo4 afm_fiu.afmu_fi4 #define afm_flowinfo6 afm_fiu.afmu_fi6 /* statistics */ u_int32_t afms_packets; /* total packet count */ u_int32_t afms_bytes; /* total byte count */ }; /* per interface */ struct afm_head { LIST_ENTRY(afm_head) afh_chain; LIST_HEAD(, afm) afh_head; struct ifnet *afh_ifp; }; struct afm *afm_top __P((struct ifnet *)); int afm_alloc __P((struct ifnet *)); int afm_dealloc __P((struct ifnet *)); int afm_add __P((struct ifnet *, struct atm_flowmap *)); int afm_remove __P((struct afm *)); int afm_removeall __P((struct ifnet *)); struct afm *afm_lookup __P((struct ifnet *, int, int)); struct afm *afm_match __P((struct ifnet *, struct flowinfo *)); #endif /* _KERNEL */ #endif /* _ALTQ_ALTQ_AFMAP_H_ */ @ 1.2.42.1 log @sync with head. @ text @d2 1 a2 1 /* $KAME: altq_afmap.h,v 1.6 2002/04/03 05:38:50 kjc Exp $ */ d5 1 a5 1 * Copyright (C) 1997-2002 d93 8 a100 8 struct afm *afm_top(struct ifnet *); int afm_alloc(struct ifnet *); int afm_dealloc(struct ifnet *); int afm_add(struct ifnet *, struct atm_flowmap *); int afm_remove(struct afm *); int afm_removeall(struct ifnet *); struct afm *afm_lookup(struct ifnet *, int, int); struct afm *afm_match(struct ifnet *, struct flowinfo *); @ 1.2.72.1 log @Sync with head. @ text @d1 2 a2 2 /* $NetBSD: altq_afmap.h,v 1.3 2006/10/12 19:59:08 peter Exp $ */ /* $KAME: altq_afmap.h,v 1.6 2002/04/03 05:38:50 kjc Exp $ */ d5 1 a5 1 * Copyright (C) 1997-2002 d93 8 a100 8 struct afm *afm_top(struct ifnet *); int afm_alloc(struct ifnet *); int afm_dealloc(struct ifnet *); int afm_add(struct ifnet *, struct atm_flowmap *); int afm_remove(struct afm *); int afm_removeall(struct ifnet *); struct afm *afm_lookup(struct ifnet *, int, int); struct afm *afm_match(struct ifnet *, struct flowinfo *); @ 1.2.74.1 log @sync with head @ text @d2 1 a2 1 /* $KAME: altq_afmap.h,v 1.6 2002/04/03 05:38:50 kjc Exp $ */ d5 1 a5 1 * Copyright (C) 1997-2002 d93 8 a100 8 struct afm *afm_top(struct ifnet *); int afm_alloc(struct ifnet *); int afm_dealloc(struct ifnet *); int afm_add(struct ifnet *, struct atm_flowmap *); int afm_remove(struct afm *); int afm_removeall(struct ifnet *); struct afm *afm_lookup(struct ifnet *, int, int); struct afm *afm_match(struct ifnet *, struct flowinfo *); @ 1.2.64.1 log @Sync with KAME. @ text @d2 1 a2 1 /* $KAME: altq_afmap.h,v 1.6 2002/04/03 05:38:50 kjc Exp $ */ d5 1 a5 1 * Copyright (C) 1997-2002 d93 8 a100 8 struct afm *afm_top(struct ifnet *); int afm_alloc(struct ifnet *); int afm_dealloc(struct ifnet *); int afm_add(struct ifnet *, struct atm_flowmap *); int afm_remove(struct afm *); int afm_removeall(struct ifnet *); struct afm *afm_lookup(struct ifnet *, int, int); struct afm *afm_match(struct ifnet *, struct flowinfo *); @ 1.1 log @Initial revision @ text @d1 1 @ 1.1.1.1 log @Import ALTQ from KAME. @ text @@