From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 24 19:20:15 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7307A16A4DA for ; Mon, 24 Jul 2006 19:20:15 +0000 (UTC) (envelope-from dgilbert@daveg.ca) Received: from ox.eicat.ca (ox.eicat.ca [66.96.30.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 306F443D45 for ; Mon, 24 Jul 2006 19:20:14 +0000 (GMT) (envelope-from dgilbert@daveg.ca) Received: by ox.eicat.ca (Postfix, from userid 66) id E59E71E15D; Mon, 24 Jul 2006 15:20:13 -0400 (EDT) Received: by canoe.dclg.ca (Postfix, from userid 101) id 3AFA14AC2B; Mon, 24 Jul 2006 15:19:18 -0400 (EDT) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17605.7478.194820.171800@canoe.dclg.ca> Date: Mon, 24 Jul 2006 15:19:18 -0400 To: freebsd-hackers@freebsd.org X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid Subject: kqueue doesn't see if_tun X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2006 19:20:15 -0000 I have some code that sets up a tunnel device and registers a kqueue filter for it ... ending roughly in: EV_SET(&kqev, cons->tunSocket, EVFILT_READ, EV_ADD | EV_ENABLE, 0, 0, &cons->fsdkq); kevent(fsd->kq, &kqev, 1, NULL, 0, NULL); This event never fires. In another part of a the code, I have a timer --- so I call the tunnel reading function from there and (low and behold) there is a packet. Does EVFILT_READ just not work on tunnel devices? Dave. -- ============================================================================ |David Gilbert, Independent Contractor. | Two things can be | |Mail: dave@daveg.ca | equal if and only if they | |http://daveg.ca | are precisely opposite. | =========================================================GLO================