<div>Hi team,</div>
<div> I need to know which parameter tells the kernel that "this particular security policy correponds to this particular security association".</div>
<div>I could not able to track the common parameter between security polciy and security association corresponds to a tunnel.</div>
<div> </div>
<div><strong>Is it possible to explain how a SA is attached to SP?</strong></div>
<div> </div>
<div>struct xfrm_usersa_info {<br> struct xfrm_selector sel;<br> struct xfrm_id id;<br> xfrm_address_t saddr;<br> struct xfrm_lifetime_cfg lft;<br> struct xfrm_lifetime_cur curlft;<br> struct xfrm_stats stats;<br> uint32_t seq;<br>
uint32_t reqid;<br> uint16_t family;<br> uint8_t mode; /* 0=transport,1=tunnel */<br> uint8_t replay_window;<br> uint8_t flags;<br>#define XFRM_STATE_NOECN 1<br>#define XFRM_STATE_AF_UNSPEC 32<br>};</div>
<div> </div>
<div>struct xfrm_userpolicy_info {<br> struct xfrm_selector sel;<br> struct xfrm_lifetime_cfg lft;<br> struct xfrm_lifetime_cur curlft;<br> uint32_t priority;<br> uint32_t index;<br> uint8_t dir;<br> uint8_t action;<br>
#define XFRM_POLICY_ALLOW 0<br>#define XFRM_POLICY_BLOCK 1<br> uint8_t flags;<br>#define XFRM_POLICY_LOCALOK 1 /* Allow user to override global policy */<br> uint8_t share;<br>};<br></div>
<div>
<table style="WIDTH: 312pt; BORDER-COLLAPSE: collapse" cellspacing="0" cellpadding="0" width="416" border="0">
<colgroup>
<col style="WIDTH: 312pt; mso-width-source: userset; mso-width-alt: 15213" width="416">
<tbody>
<tr style="HEIGHT: 21pt; mso-height-source: userset" height="28">
<td class="xl22" style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 312pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 21pt; BACKGROUND-COLOR: transparent" width="416" height="28"></td></tr></tbody></colgroup></table>
</div>
<div> </div>
<div>Regards,</div>
<div>Saravanan</div>
<div> </div>