From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: skb_ip_make_writable and skbs not owned by a socket Date: Sun, 02 Jan 2005 22:19:45 +0100 Message-ID: <41D86571.6070501@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Cc: "David S. Miller" , Netfilter Development Mailinglist Return-path: To: Rusty Russell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org Hi, skb_ip_make_writable copies the packet as soon as the data area needs to be touched. This is of course necessary for packets generated locally, but can't we mangle the data area of skbs with skb->sk == NULL without copying them ? Regards Patrick