[Openswan dev] openswan 2.6.20 ipsec_tunnel_init

Laszlo Attila Toth panther at balabit.hu
Fri Feb 20 05:45:25 EST 2009


Hello,

I found this code snippet in ipsec_tunnel_init, modobj26/ipsec_tunnel.c

1636 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,24)
1637         dev->header_ops         = NULL;
1638 #else
1639         dev->hard_header        = NULL;
1640         dev->rebuild_header     = NULL;
1641         dev->set_mac_address    = NULL;
1642 #ifndef NET_21
1643         dev->header_cache_bind  = NULL;
1644 #endif /* !NET_21 */
1645         dev->header_cache_update= NULL;
1646 #endif


If the kernel version is smaller then 2.6.24, the set_mac_address isn't 
set to NULL.

Regards,
Laszlo Attila Toth


More information about the Dev mailing list