From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH net-next] net: packet: allow bind to device which is !IFF_UP Date: Wed, 20 Dec 2017 15:06:56 -0500 (EST) Message-ID: <20171220.150656.1052155984496301218.davem@davemloft.net> References: <1513776049-9141-1-git-send-email-cugyly@163.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, Linyu.Yuan@alcatel-sbell.com.cn To: cugyly@163.com Return-path: Received: from shards.monkeyblade.net ([184.105.139.130]:43416 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755534AbdLTUG5 (ORCPT ); Wed, 20 Dec 2017 15:06:57 -0500 In-Reply-To: <1513776049-9141-1-git-send-email-cugyly@163.com> Sender: netdev-owner@vger.kernel.org List-ID: From: yuan linyu Date: Wed, 20 Dec 2017 21:20:49 +0800 > From: yuan linyu > > this try to allow tcpdump to capture packet once device IFF_UP > > Signed-off-by: yuan linyu I don't think this is such a great idea. Even if it "works": 1) The behavior goes back decades, this means real applications can be broken by this change. 2) The feedback is useful, if I ran tcpdump on the wrong interface I'd like to get this error if the interface I mistakenly chose was done in order to help me figure this out.