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

Cisco Implementation



Hello,
 
In the latest Cisco implementation of ISAKMP source code,
 
Why is that the ESP encapsulation attribute set based on the proxy_dst.sin_family != 0. This is the piece of code from oakley.c.
 
 if (sa->proxy_dst.sin_family != 0){
     sa_ipsec->other_sa.esp.tunnel = 1;
 }
 
if proxy_dst.sin_family is equal to 0, then it is neither tunnel or transport. So what is ESP Encapsulation mode in that case.
 
The place sa->proxy_dst is set in the function initiator,
    if (proxy_dst && proxy_dst->sin_family == AF_INET)
         bcopy(proxy_dst, &security_assoc->proxy_dst, sizeof(struct sockaddr_in));
but the function is passed NULL for proxy_dst
 
Can you please give me some help here.
 
Thanks
Ramesh
 
-------------------------------------------------------------
Ramesh Kamath
RedCreek Communications Inc,
3900 Newpark Mall Road
Newark, CA 94560
(510) 745 3974  Fax (510) 745 3999
-----------------------------------------------------------