• Alexey Kuznetsov's avatar
    [IPSEC] More work. · 586cf468
    Alexey Kuznetsov authored
    1. Expiration of SAs. Some missing updates of counters.
       Question: very strange, rfc defines use_time as time of the first use
       of SA. But kame setkey refers to this as lastuse.
    2. Bug fixes for tunnel mode and forwarding.
    3. Fix bugs in per-socket policy: policy entries do not leak but are destroyed,
       when socket is closed, and are cloned on children of listening sockets.
    4. Implemented use policy: i.e. use ipsec if a SA is available,
       ignore if it is not.
    5. Added sysctl to disable in/out policy on some devices.
       It is set on loopback by default.
    6. Remove resolved reference from template. It is not used,
       but pollutes code.
    7. Added all the SASTATEs, now they make sense.
    586cf468
af_inet.c 28.5 KB