Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932248AbWCYTFw (ORCPT ); Sat, 25 Mar 2006 14:05:52 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932250AbWCYTFw (ORCPT ); Sat, 25 Mar 2006 14:05:52 -0500 Received: from fe1.cox-internet.com ([66.76.2.38]:63158 "EHLO fe1.coxmail.com") by vger.kernel.org with ESMTP id S932248AbWCYTFv (ORCPT ); Sat, 25 Mar 2006 14:05:51 -0500 Message-ID: <44259489.4070507@tamu.edu> Date: Sat, 25 Mar 2006 13:05:45 -0600 From: Benjamin User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Jan Engelhardt CC: linux-kernel@vger.kernel.org Subject: Re: Modify the sock Structure!! References: <4424ED2A.3040006@tamu.edu> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 887 Lines: 33 Cool! Thanks for the answer! Best Regards, Benjamin Chu Jan Engelhardt wrote: >> Hello! I try to modify the sock Structure in sock.h in order to record some >> data! >> I just add a unsigned short in the end of the structure. such as: >> >> struct sock { >> > > >> safe or not. Is there any side-effect? Or I need to add additional code to >> avoid some unexpected >> situation? Thank you very much! >> > > > Should be ok. For example, ipt_TPROXY/ipt_tproxy also adds something to > struct sock (including enlarging fields in the middle of the struct); > I have not experienced any problem with it. > > > Jan Engelhardt > - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/