From owner-freebsd-pf@FreeBSD.ORG Sun May 7 20:45:13 2006 Return-Path: X-Original-To: freebsd-pf@freebsd.org Delivered-To: freebsd-pf@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 68EC816A44F for ; Sun, 7 May 2006 20:45:13 +0000 (UTC) (envelope-from yamamoto436@oki.com) Received: from iscan1.intra.oki.co.jp (okigate.oki.co.jp [202.226.91.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id B34CD43D66 for ; Sun, 7 May 2006 20:44:53 +0000 (GMT) (envelope-from yamamoto436@oki.com) Received: from aoi.bmc.oki.co.jp (IDENT:root@localhost.localdomain [127.0.0.1]) by iscan1.intra.oki.co.jp (8.9.3/8.9.3) with SMTP id FAA27523 for ; Mon, 8 May 2006 05:44:51 +0900 Received: (qmail 12377 invoked from network); 8 May 2006 05:44:52 +0900 Received: from tulip.bmc.oki.co.jp (172.19.236.119) by aoi.bmc.oki.co.jp with SMTP; 8 May 2006 05:44:52 +0900 Received: from localhost (tulip.bmc.oki.co.jp [172.19.236.119]) by tulip.bmc.oki.co.jp (8.13.6/8.13.6) with ESMTP id k47Kipus061730; Mon, 8 May 2006 05:44:51 +0900 (JST) (envelope-from yamamoto436@oki.com) Date: Mon, 08 May 2006 05:44:51 +0900 (JST) Message-Id: <20060508.054451.41688849.yamamoto436@oki.com> To: freebsd-net@freebsd.org, freebsd-pf@freebsd.org From: Hideki Yamamoto X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: Subject: IPv6 raw socket to send original udp X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 07 May 2006 20:45:15 -0000 Hi, I tried to use pf as a traffic shaper for a streaming server, but it does not work well. Input of pf is bursted packets within around 20 msec, but is not bursted packets within around 100 msec or longer. This traffic pattern is the feature of the streaming server. As pf is does not work well, I am thinking designinig original shaper command on bridge-like freebsd box, and that the command will receive the sever packet via libpcap, shape it and then send it constantly to another device. To send packet from bridge-like freebsd box, I plan to use RAW IPV6 socket. However in my small experiment, it does not seems good, IP_HDRINCL option does not woks. I wonder if IPv6 raw socket can be used only for ICMPv6. I would like to use IPv6 raw socket for original udp packet. Thanks in advance. Hideki Yamamoto --