Re: [PATCH] CIPSO: remove duplicated code in the cipso_v4_*_getattr() functions

2007-09-15 Thread David Miller
From: Paul Moore <[EMAIL PROTECTED]> Date: Wed, 12 Sep 2007 15:29:38 -0400 > The bulk of the CIPSO option parsing/processing in the cipso_v4_sock_getattr() > and cipso_v4_skb_getattr() functions are identical, the only real difference > being where the functions obtain the CIPSO option itself. Th

[PATCH] CIPSO: remove duplicated code in the cipso_v4_*_getattr() functions

2007-09-12 Thread Paul Moore
The bulk of the CIPSO option parsing/processing in the cipso_v4_sock_getattr() and cipso_v4_skb_getattr() functions are identical, the only real difference being where the functions obtain the CIPSO option itself. This patch creates a new function, cipso_v4_getattr(), which contains the common CIP