• Herbert Xu's avatar
    [IPSEC] Add policy expiration · e3e5d274
    Herbert Xu authored
    This patch finally adds policy expiration.
    
    Note that it resends soft policy expire messages every 30 seconds.  This
    is needed as when "soft use expire" is used for dead peer detection,
    a lost message could lead to a dead peer that isn't discovered until the
    SAs expire.
    
    I've only implemented notification for XFRM as I didn't want to just add
    another PFKEY extension in case it collides with something else.  Of
    course it could be easily done for PFKEY with an extension too.
    e3e5d274
af_key.c 77 KB