Date: Tue, 28 Feb 2017 09:46:15 -0800 From: Luigi Rizzo <rizzo@iet.unipi.it> To: Julian Elischer <julian@freebsd.org> Cc: "freebsd-ipfw@freebsd.org" <Freebsd-ipfw@freebsd.org>, Luigi Rizzo <luigi@freebsd.org> Subject: Re: dummynet loses ports mask bits Message-ID: <CA%2BhQ2%2BjQGyYUXKVTRf8Hfnc-_1F0pVnO=xTaCwEsra6anJn9Ng@mail.gmail.com> In-Reply-To: <e3fb1af2-18b1-acb3-91de-ce302486b8d4@freebsd.org> References: <e3fb1af2-18b1-acb3-91de-ce302486b8d4@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Feb 28, 2017 at 9:27 AM, Julian Elischer <julian@freebsd.org> wrote: > In the following example it appears that the mask bits for the port number > are lost. > before I raise a bug.. is there anyone who can see that I am doing anything > wrong? > > I'm not sure what the q131053 stuff is about either, but.. q131053 is the internal name for the queue associated with the pipe (pipe# + 0x10000). I am not sure if the mask supports ip/port notation (dst-ip covers only the address part). Of course the real bug is that the parser should be more strict and complain about extra/ignored fields. But the ipfw parser is full of these things. cheers luigi > ------------------------------------------ > FreeBSD fb10-cc03.kumo.com 10.3-RELEASE-p16 : Wed Feb 22 14:40:53 UTC 2017 > amd64 > > fb10-cc03# ipfw pipe 11 config mask dst-ip 0x000000ff/0x0fff bw 200Kbit/s > > fb10-cc03# ipfw pipe show > 00011: 200.000 Kbit/s 0 ms burst 0 > q131083 50 sl. 0 flows (1 buckets) sched 65547 weight 0 lmax 0 pri 0 > droptail > sched 65547 type FIFO flags 0x1 64 buckets 0 active > mask: 0x00 0x00000000/0x0000 -> 0x000000ff/0x0000 > -- -----------------------------------------+------------------------------- Prof. Luigi RIZZO, rizzo@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL +39-050-2217533 . via Diotisalvi 2 Mobile +39-338-6809875 . 56122 PISA (Italy) -----------------------------------------+-------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BjQGyYUXKVTRf8Hfnc-_1F0pVnO=xTaCwEsra6anJn9Ng>
