--- linux/include/net/ip.h.pre-ipsec Thu Aug 12 09:14:00 1999 +++ linux/include/net/ip.h Mon Aug 30 10:17:19 1999 @@ -31,6 +31,10 @@ #include #include #include +#if defined(CONFIG_IPSEC) || defined(CONFIG_IPSEC_MODULE) +#include "../../net/ipsec/sadb.h" +#include "../../net/ipsec/ipsec.h" +#endif #ifndef _SNMP_H #include @@ -161,6 +165,15 @@ extern __inline__ void ip_send(struct sk_buff *skb) { +#if defined(CONFIG_IPSEC) || defined(CONFIG_IPSEC_MODULE) + if (ipsec_control){ + skb = ipsec_control->output(skb,0,0); + if (!skb){ + ip_statistics.IpOutDiscards++; + return; + } + } +#endif if (skb->len > skb->dst->pmtu) ip_fragment(skb, __ip_finish_output); else