From owner-freebsd-net@FreeBSD.ORG Wed Mar 2 03:48:21 2005 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 71ABD16A4CE for ; Wed, 2 Mar 2005 03:48:21 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15B9D43D39 for ; Wed, 2 Mar 2005 03:48:21 +0000 (GMT) (envelope-from opensource.enthousiat@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so102085wri for ; Tue, 01 Mar 2005 19:48:20 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=JzyhRhQyEGOT28jUvQ7qFemHa/3S+meLEQkdITaSA2Ek74iV1VGk4o1dk5pqPVEjZUqPTqlrNdG5Gt9bJsbvbM3Km6c4pw99Yq9xwqQ14FCKp3WPkx2fQebpS8Kk9ZBzsHPF6/Oj0tlqhTZGCOu5b4o3u2C6B6qI1CJynVyF/yI= Received: by 10.54.4.69 with SMTP id 69mr97556wrd; Tue, 01 Mar 2005 19:47:08 -0800 (PST) Received: by 10.54.49.28 with HTTP; Tue, 1 Mar 2005 19:47:07 -0800 (PST) Message-ID: <37e131660503011947346b94fb@mail.gmail.com> Date: Tue, 1 Mar 2005 22:47:07 -0500 From: Aziz KEZZOU To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: netgraph question : how to intercept incoming IP packets of a certain type? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Aziz KEZZOU List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 03:48:21 -0000 Hi folks, Here is what I want to do : "Intercept all incoming IP packets on an Ethernet interface of a certain type (e.g RSVP) and call my own function to process, all inside the kernel" Netgraph nodes : ng_iface, nf_bpf (and probably ng_ether) look promising for this task but I can not figure out how to do it in practice... Any help is appreciated. Thanks, neo