From owner-freebsd-ipfw Sun Dec 30 4:20:53 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from erin.siol.net (erin.siol.net [193.189.160.21]) by hub.freebsd.org (Postfix) with ESMTP id 49EE337B41A for ; Sun, 30 Dec 2001 04:20:50 -0800 (PST) Received: from [193.189.160.21] by erin.siol.net (InterMail vK.4.03.00.00 201-232-121 license 3b7ff800a4377eede9efc7be81e8a7c4) with SMTP id <20011230122122.LNNB4291.erin@[193.189.160.21]> for ; Sun, 30 Dec 2001 13:21:22 +0100 X-Priority: Sensitivity: Company-Confidential From: Marko R To: freebsd-ipfw@freebsd.org Subject: ipfw and packet weight Date: Sun, 30 Dec 2001 13:21:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <20011230122122.LNNB4291.erin@[193.189.160.21]> Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Re all! This one thing is bothering me about ipfw traffic shaping ability. Lets say we have: ipfw pipe 1 config bw 128kbit/s ipfw queue 1 config weight 5 pipe 1 ipfw queue 2 config weight 50 pipe 1 ipfw add queue 1 ip from box1 to any ipfw add queue 2 ip from box2 to any ipfw add pipe 1 ip from box3 to any ipfw add allow ip from box4 to any these rules are kinda stupid but just to illustrate what i mean :-) This means that box1-3 are limited to 128kbit/s of bandwidth and box4 is free. Now what I dont understand is which box has maximum priority here? Does higher weight number means higher priority? And what about box4 who isn't piped and queued what is his priority? Thank you for bothering and answering! Marko from Slovenia To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message From owner-freebsd-ipfw Sun Dec 30 22:41:42 2001 Delivered-To: freebsd-ipfw@freebsd.org Received: from ns1.nttmcl.com (ns1.nttmcl.com [216.69.68.197]) by hub.freebsd.org (Postfix) with ESMTP id D024037B432 for ; Sun, 30 Dec 2001 22:41:40 -0800 (PST) Received: from hsu (dhcp252.nttmcl.com [216.69.69.252]) by ns1.nttmcl.com (Postfix) with SMTP id 8E324DE54A for ; Sun, 30 Dec 2001 22:41:40 -0800 (PST) Reply-To: From: "Henry Su" To: Subject: provide packet header details to a user program for authentication Date: Sun, 30 Dec 2001 22:44:21 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-ipfw@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, I am doing bridge with ipfw, so divert and fwd do not work for me. I read ip_fw.c code, in ip_fw_chk function, I can want to add some code to pass the packet detail to an application level program, how can I accomplish this? Thanks. ------------------------------------------------ Henry Su NTT Multimedia Communications Laboratories, Inc. 250 Cambridge Avenue Suite 300 Palo Alto, CA 94306, USA (PST:UTC -8H) Tel: +1 650 833 3652 Fax: +1 650 326 1878 http://www.nttmcl.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ipfw" in the body of the message