[XFRM]: xfrm_replay_advance() annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a252cc2371
commit
61f4627b2f
@ -936,7 +936,7 @@ extern struct xfrm_state *xfrm_find_acq_byseq(u32 seq);
|
|||||||
extern int xfrm_state_delete(struct xfrm_state *x);
|
extern int xfrm_state_delete(struct xfrm_state *x);
|
||||||
extern void xfrm_state_flush(u8 proto);
|
extern void xfrm_state_flush(u8 proto);
|
||||||
extern int xfrm_replay_check(struct xfrm_state *x, __be32 seq);
|
extern int xfrm_replay_check(struct xfrm_state *x, __be32 seq);
|
||||||
extern void xfrm_replay_advance(struct xfrm_state *x, u32 seq);
|
extern void xfrm_replay_advance(struct xfrm_state *x, __be32 seq);
|
||||||
extern void xfrm_replay_notify(struct xfrm_state *x, int event);
|
extern void xfrm_replay_notify(struct xfrm_state *x, int event);
|
||||||
extern int xfrm_state_check(struct xfrm_state *x, struct sk_buff *skb);
|
extern int xfrm_state_check(struct xfrm_state *x, struct sk_buff *skb);
|
||||||
extern int xfrm_state_mtu(struct xfrm_state *x, int mtu);
|
extern int xfrm_state_mtu(struct xfrm_state *x, int mtu);
|
||||||
|
@ -1205,11 +1205,10 @@ int xfrm_replay_check(struct xfrm_state *x, __be32 net_seq)
|
|||||||
}
|
}
|
||||||
EXPORT_SYMBOL(xfrm_replay_check);
|
EXPORT_SYMBOL(xfrm_replay_check);
|
||||||
|
|
||||||
void xfrm_replay_advance(struct xfrm_state *x, u32 seq)
|
void xfrm_replay_advance(struct xfrm_state *x, __be32 net_seq)
|
||||||
{
|
{
|
||||||
u32 diff;
|
u32 diff;
|
||||||
|
u32 seq = ntohl(net_seq);
|
||||||
seq = ntohl(seq);
|
|
||||||
|
|
||||||
if (seq > x->replay.seq) {
|
if (seq > x->replay.seq) {
|
||||||
diff = seq - x->replay.seq;
|
diff = seq - x->replay.seq;
|
||||||
|
Loading…
Reference in New Issue
Block a user