<div dir="ltr"><span style="font-size:12.8px">Hi,</span><div style="font-size:12.8px">I'm trying to understand what IPSec is and how it is implemented in Android userland by looking at Strongswan's source code. AFIK, RFC 4303 states that we have to construct the IP header for the ESP packet manually. But in userland, we can only use BSD socket (no raw socket allowed), which will construct the IP header & TCP/UDP header automatically for us, we have little control over these headers. So how do you achieve that in StrongSwan?</div><div style="font-size:12.8px">Sorry, this is for academic purposes, so there may be some areas i don't fully understand. So i would be very appreciated if you could help me understand this topic.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div><br></div>-- <br><div class="gmail_signature">LHQ<br></div>
</div>