From owner-freebsd-net Tue Feb 19 7:10:53 2002 Delivered-To: freebsd-net@freebsd.org Received: from hanoi.cronyx.ru (hanoi.cronyx.ru [144.206.181.53]) by hub.freebsd.org (Postfix) with ESMTP id C258237B400 for ; Tue, 19 Feb 2002 07:10:49 -0800 (PST) Received: by hanoi.cronyx.ru id SAA35184 for freebsd-net@FreeBSD.ORG.checked; (8.9.3/vak/2.1) Tue, 19 Feb 2002 18:08:02 +0300 (MSK) (envelope-from rik@cronyx.ru) Received: from cronyx.ru by hanoi.cronyx.ru with ESMTP id SAA35084 for ; (8.9.3/vak/2.1) Tue, 19 Feb 2002 18:05:15 +0300 (MSK) (envelope-from rik@cronyx.ru) Message-ID: <3C726A93.6030901@cronyx.ru> Date: Tue, 19 Feb 2002 18:09:07 +0300 From: Roman Kurakin User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-net@FreeBSD.ORG Subject: Bpf interface discussion Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi I found one problem. Current bpf interface allows to work only with one link layer type during interface life time, but some network drivers such as SPPP or NETGRAPH support many link layer types and link layer type could be changed during interface life time. I suggest to add new function to bpf interface like this: void bpfsetdlt (struct ifnet *ifp, u_int dlt) { struct bpf_if *bp; for (bp = bpf_iflist; bp != NULL; bp = bp->bif_next) { if (ifp == bp->bif_ifp) break; } if (!bp) return; bp->bif_dlt = dlt; } Best regards, Roman Kurakin To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message