Commit f5ecd50a authored by James Morris's avatar James Morris Committed by Sridhar Samudrala

[IPSEC]: remove trailer_len from esp and xfrm properties.

parent 49082d39
...@@ -105,7 +105,6 @@ struct xfrm_state ...@@ -105,7 +105,6 @@ struct xfrm_state
u16 family; u16 family;
xfrm_address_t saddr; xfrm_address_t saddr;
int header_len; int header_len;
int trailer_len;
} props; } props;
struct xfrm_lifetime_cfg lft; struct xfrm_lifetime_cfg lft;
......
...@@ -639,7 +639,6 @@ int esp_init_state(struct xfrm_state *x, void *args) ...@@ -639,7 +639,6 @@ int esp_init_state(struct xfrm_state *x, void *args)
x->props.header_len = 8 + esp->conf.ivlen; x->props.header_len = 8 + esp->conf.ivlen;
if (x->props.mode) if (x->props.mode)
x->props.header_len += 20; x->props.header_len += 20;
x->props.trailer_len = esp->auth.authlen + crypto_tfm_alg_blocksize(esp->conf.tfm);
x->data = esp; x->data = esp;
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment