netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Application brokne due to XFRMA_ALG_AUTH_TRUNC
@ 2011-10-04 21:08 Eduardo Panisset
  2011-10-04 21:35 ` Ben Hutchings
  0 siblings, 1 reply; 2+ messages in thread
From: Eduardo Panisset @ 2011-10-04 21:08 UTC (permalink / raw)
  To: netdev

Hi All,

I have an application compiled against kernel 2.6.32 and which is
using XFRMA_MARK (value 20).
However the same aplication does not work anymore on kernel 2.6.38.8
due to XFRMA_MARK has now the value 21 because of a new attribute
XFRMA_ALG_AUTH_TRUNC inserted before it in the file linux/xfrm.h.
Now the only solution would be recompiling this application. Is
correct introducing a new parameter in the middle of an existing enum
in the kernel headers ?


Rgds,
Eduardo Panisset.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Application brokne due to XFRMA_ALG_AUTH_TRUNC
  2011-10-04 21:08 Application brokne due to XFRMA_ALG_AUTH_TRUNC Eduardo Panisset
@ 2011-10-04 21:35 ` Ben Hutchings
  0 siblings, 0 replies; 2+ messages in thread
From: Ben Hutchings @ 2011-10-04 21:35 UTC (permalink / raw)
  To: Eduardo Panisset; +Cc: netdev

On Tue, 2011-10-04 at 18:08 -0300, Eduardo Panisset wrote:
> Hi All,
> 
> I have an application compiled against kernel 2.6.32 and which is
> using XFRMA_MARK (value 20).

It was not defined in 2.6.32.  Perhaps you are using a distribution that
backported this feature incorrectly?

> However the same aplication does not work anymore on kernel 2.6.38.8
> due to XFRMA_MARK has now the value 21 because of a new attribute
> XFRMA_ALG_AUTH_TRUNC inserted before it in the file linux/xfrm.h.
> Now the only solution would be recompiling this application. Is
> correct introducing a new parameter in the middle of an existing enum
> in the kernel headers ?

So far as I can see, in mainline Linux versions the value has always
been 21.

Ben.

-- 
Ben Hutchings, Staff Engineer, Solarflare
Not speaking for my employer; that's the marketing department's job.
They asked us to note that Solarflare product names are trademarked.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-04 21:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-04 21:08 Application brokne due to XFRMA_ALG_AUTH_TRUNC Eduardo Panisset
2011-10-04 21:35 ` Ben Hutchings

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).