From owner-freebsd-pf@FreeBSD.ORG Wed May 24 17:49:44 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 DB84716A7B1 for ; Wed, 24 May 2006 17:49:44 +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 BE1D843D49 for ; Wed, 24 May 2006 17:49:41 +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 CAA04109 for ; Thu, 25 May 2006 02:49:39 +0900 Received: (qmail 2137 invoked from network); 25 May 2006 02:49:39 +0900 Received: from tulip.bmc.oki.co.jp (172.19.236.119) by aoi.bmc.oki.co.jp with SMTP; 25 May 2006 02:49:39 +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 k4OHncvW025052; Thu, 25 May 2006 02:49:39 +0900 (JST) (envelope-from yamamoto436@oki.com) Date: Thu, 25 May 2006 02:49:38 +0900 (JST) Message-Id: <20060525.024938.74731993.yamamoto436@oki.com> To: freebsd-net@freebsd.org, freebsd-pf@freebsd.org From: Hideki Yamamoto In-Reply-To: <20060508.054451.41688849.yamamoto436@oki.com> References: <20060508.054451.41688849.yamamoto436@oki.com> 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: Re: 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: Wed, 24 May 2006 17:49:45 -0000 Hi, One of my collegues helped me. bpf described in the following page is useful. http://canmore.sdf-eu.org/freebsd/bpf.html And libdnet is a wrapper of the bpf on FreeBSD. Code using libdnet seems to be portable with Linux and so on. From: Hideki Yamamoto Subject: IPv6 raw socket to send original udp Date: Mon, 08 May 2006 05:44:51 +0900 (JST) Message-ID: <20060508.054451.41688849.yamamoto436@oki.com> > > 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 > -- > > > _______________________________________________ > freebsd-pf@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-pf > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" ---