]> err.no Git - linux-2.6/blobdiff - net/xfrm/xfrm_output.c
[IPSEC]: Unexport xfrm_replay_notify
[linux-2.6] / net / xfrm / xfrm_output.c
index 5b1c978a323c34a3cbb35020e17e6f4fc5943146..40d75eccdddab669172ca6a8f6d844fe54f47091 100644 (file)
@@ -58,6 +58,12 @@ int xfrm_output(struct sk_buff *skb)
                if (err)
                        goto error;
 
+               if (x->type->flags & XFRM_TYPE_REPLAY_PROT) {
+                       XFRM_SKB_CB(skb)->seq = ++x->replay.oseq;
+                       if (xfrm_aevent_is_on())
+                               xfrm_replay_notify(x, XFRM_REPLAY_UPDATE);
+               }
+
                err = x->mode->output(x, skb);
                if (err)
                        goto error;