]> git.proxmox.com Git - mirror_iproute2.git/commit - ip/ipxfrm.c
iproute2: allow to specify truncation bits on auth algo
authorNicolas Dichtel <nicolas.dichtel@6wind.com>
Tue, 11 Jan 2011 06:32:46 +0000 (06:32 +0000)
committerStephen Hemminger <stephen.hemminger@vyatta.com>
Sat, 26 Feb 2011 03:52:12 +0000 (19:52 -0800)
commitf323f2a32c3b9c29fb91c812472b7fd663f9ae73
tree3fd0f6b74f3fd225a840c700d93426621f2ed6fd
parent678b99ee6d80a1e80a3ee404dfb32c4bb3202827
iproute2: allow to specify truncation bits on auth algo

Hi,

here is a patch against iproute2 to allow user to set a state with a specific
auth length.

Example:
$ ip xfrm state add src 10.16.0.72 dst 10.16.0.121 proto ah spi 0x10000000
auth-trunc "sha256" "azertyuiopqsdfghjklmwxcvbn123456" 96 mode tunnel
$ ip xfrm state
src 10.16.0.72 dst 10.16.0.121
         proto ah spi 0x10000000 reqid 0 mode tunnel
         replay-window 0
         auth-trunc hmac(sha256)
0x617a6572747975696f707173646667686a6b6c6d77786376626e313233343536 96
         sel src 0.0.0.0/0 dst 0.0.0.0/0

Regards,
Nicolas

>From 522ed7348cdf3b6f501af2a5a5d989de1696565a Mon Sep 17 00:00:00 2001
From: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Date: Thu, 23 Dec 2010 06:48:12 -0500
Subject: [PATCH] iproute2: allow to specify truncation bits on auth algo

Attribute XFRMA_ALG_AUTH_TRUNC can be used to specify
truncation bits, so we add a new algo type: auth-trunc.

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
ip/ipxfrm.c
ip/xfrm_state.c