[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 03115) Re: [Ipsec-tools-devel] Where are SAD and SPD stored?





Park Lee wrote:
I know that in native IPsec of Linux kernel 2.6, security association and security policy are stored in SAD and SPD respectively, But where are SAD and SPD themself stored in Linux kernel 2.6?

There is no explicit ipsec SAD and SPD in Linux kernel. Security policies are converted to general policies and stored in xfrm_policy_list array of lists. Semantics of xfrm policies and ipsec policies described in RFC slightly differ, so there is no 1:1 mapping between the two. Security associations are stored in complex datastructure, headed in xfrm_state_by{dst|spi} arrays.



-- Aidas Kasparas IT administrator GM Consult Group, UAB