Commit 0d322099 authored by David S. Miller's avatar David S. Miller

[XFRM]: Add family member to state/policy structs.

parent 1b159766
...@@ -96,6 +96,7 @@ struct xfrm_state ...@@ -96,6 +96,7 @@ struct xfrm_state
u8 replay_window; u8 replay_window;
u8 aalgo, ealgo, calgo; u8 aalgo, ealgo, calgo;
u16 reqid; u16 reqid;
u16 family;
xfrm_address_t saddr; xfrm_address_t saddr;
int header_len; int header_len;
int trailer_len; int trailer_len;
...@@ -201,6 +202,7 @@ struct xfrm_policy ...@@ -201,6 +202,7 @@ struct xfrm_policy
struct xfrm_lifetime_cfg lft; struct xfrm_lifetime_cfg lft;
struct xfrm_lifetime_cur curlft; struct xfrm_lifetime_cur curlft;
struct dst_entry *bundles; struct dst_entry *bundles;
__u16 family;
__u8 action; __u8 action;
__u8 flags; __u8 flags;
__u8 dead; __u8 dead;
......
...@@ -146,6 +146,7 @@ static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info * ...@@ -146,6 +146,7 @@ static void copy_from_user_state(struct xfrm_state *x, struct xfrm_usersa_info *
x->props.mode = p->mode; x->props.mode = p->mode;
x->props.replay_window = p->replay_window; x->props.replay_window = p->replay_window;
x->props.reqid = p->reqid; x->props.reqid = p->reqid;
x->props.family = p->family;
x->props.saddr = x->sel.saddr; x->props.saddr = x->sel.saddr;
} }
...@@ -242,6 +243,7 @@ static void copy_to_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p) ...@@ -242,6 +243,7 @@ static void copy_to_user_state(struct xfrm_state *x, struct xfrm_usersa_info *p)
p->mode = x->props.mode; p->mode = x->props.mode;
p->replay_window = x->props.replay_window; p->replay_window = x->props.replay_window;
p->reqid = x->props.reqid; p->reqid = x->props.reqid;
p->family = x->props.family;
p->seq = x->km.seq; p->seq = x->km.seq;
} }
...@@ -508,7 +510,7 @@ static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy ...@@ -508,7 +510,7 @@ static void copy_from_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy
memcpy(&xp->lft, &p->lft, sizeof(xp->lft)); memcpy(&xp->lft, &p->lft, sizeof(xp->lft));
xp->action = p->action; xp->action = p->action;
xp->flags = p->flags; xp->flags = p->flags;
/* XXX xp->family = p->family; */ xp->family = p->family;
/* XXX xp->share = p->share; */ /* XXX xp->share = p->share; */
} }
...@@ -519,7 +521,7 @@ static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_i ...@@ -519,7 +521,7 @@ static void copy_to_user_policy(struct xfrm_policy *xp, struct xfrm_userpolicy_i
memcpy(&p->curlft, &xp->curlft, sizeof(p->curlft)); memcpy(&p->curlft, &xp->curlft, sizeof(p->curlft));
p->priority = xp->priority; p->priority = xp->priority;
p->index = xp->index; p->index = xp->index;
p->family = AF_INET; /* XXX xp->family */ p->family = xp->family;
p->dir = dir; p->dir = dir;
p->action = xp->action; p->action = xp->action;
p->flags = xp->flags; p->flags = xp->flags;
......
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