I'm newly using IPSec, i have downloaded the "ipsec-tools-0.7.3.tar.gz"
from the http://ipsec-tools.sourceforge.net/ site. There is the test
application in the setkay directory(test-pfkey.c).
I have modified the SRC and DST ip addresses in the test application and
i want to add a security association (SADB_ADD) to kernel. After
modifying the IP address in the test_pfkey.c file and compiled with the
IPSec library "libipsec.a". I'm getting an error message from the kernel
"no ADDRESS_SRC extension." while adding the SA to SAD.
When i debugged this with the compiled executable, i found that after
recv() call there is a function pfkey_sadump(). This function is
returning and closing the PFKey socket by throwing this error message
"no ADDRESS_SRC extension.".
Please can any one help me to find out what i'm doing wrong.
Thnaks in Advance,