Re: Modify the sock Structure!!

From: Benjamin
Date: Sat Mar 25 2006 - 14:02:59 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/