From owner-freebsd-net@FreeBSD.ORG Fri Sep 24 12:30:24 2004 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 5936416A4CF for ; Fri, 24 Sep 2004 12:30:24 +0000 (GMT) Received: from mail.borderware.com (mail.borderware.com [207.236.65.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id 50D4743D1F for ; Fri, 24 Sep 2004 12:30:17 +0000 (GMT) (envelope-from fming@borderware.com) Message-ID: <41541355.50800@borderware.com> Date: Fri, 24 Sep 2004 08:30:13 -0400 From: ming fu User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040413 Debian/1.6-5 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: promisc coding question X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2004 12:30:24 -0000 Hi, in if.h #define IFF_PROMISC 0x100 /* receive all packets */ #define IFF_PPROMISC 0x20000 /* user-requested promisc mode */ Do I have to set both on for the promisc to work? If I only need one of them, then what is the difference? Regards, Ming