K 10 svn:author V 2 ae K 8 svn:date V 27 2016-11-20T11:57:34.917463Z K 7 svn:log V 492 Add ipsec4_getpolicy() function. It returns security policy that matches with give IPv4 packet. First of it uses SP from inpcb. If there is no PCB, or PCB has not cached SP, it fills secpolicyindex using info from given mbuf. Then it does SP lookup using this secpolicyindex. And if SP is not found, it returns default security policy. Modify ipsec4_setspidx_ipaddr() to not return any values, since it never fails. Also move ipsec4_get_ulp() and ipsec4_setspidx_ipaddr() under #ifdef INET. END