Skip to contentSkip to conversation

Nano-Howto and IPSec

LARTC Jason A. Pattie 3 participants 4 messages Dec 13, 2001 – Dec 20, 2001

lore
Share & tools
lore
#0 lore raw

I patched my kernel with the new routing code for 2.4.14 which already had been patched with a FreeS/WAN snapshot. However, the compilation gave me an error stating that:

ipsec_tunnel.c: In function `ipsec_tunnel_start_xmit':
ipsec_tunnel.c:1883: too few arguments to function `ip_route_output' make[3]: *** [ipsec_tunnel.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[1]: *** [_subdir_ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.14/net'
make: *** [_dir_net] Error 2

Has anyone else run into this problem of mixing the new multipath routing code with FreeS/WAN? or am I missing something?

Signature · 8 lines
Jason A. Pattie
[email protected]



_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/
#1 lore raw

Hello,

Quoted 14 lines · Jason A. Pattie

I patched my kernel with the new routing code for 2.4.14 which already had been patched with a FreeS/WAN snapshot. However, the compilation gave me an error stating that:

ipsec_tunnel.c: In function `ipsec_tunnel_start_xmit':
ipsec_tunnel.c:1883: too few arguments to function `ip_route_output' make[3]: *** [ipsec_tunnel.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[1]: *** [_subdir_ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.14/net'
make: *** [_dir_net] Error 2

Quoted 2 lines

Has anyone else run into this problem of mixing the new multipath routing code with FreeS/WAN? or am I missing something?

Yes but I still didn't received patch for this. Just add
one 0 as last argument to ip_route_output, make a diff -u and I'll upload it on the site. Of course, if everything else works.

Regards

--
Julian Anastasov <[email protected]>

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#2 lore raw
In reply to Jason A. Pattie

This a change in the file freeswan-1.94/klips/net/ipsec/ipsec_tunnel.c

The difference is a 0 added like (plain diff):

1831c1831
< physdev->iflink /* rgb: should this be 0? */))) {
---

Quoted 1 line
                                  physdev->iflink, 0 /* rgb: should this be 0? */))) {

Here's the diff -u

ipsec_tunnel.c renamed from ipsec_tunnel.c.orig +1 -1
@@ -1828,7 +1828,7 @@
 				    skb->nh.iph->daddr,
 				    pass ? 0 : skb->nh.iph->saddr,
 				    RT_TOS(skb->nh.iph->tos),
-				    physdev->iflink /* rgb: should this be 0? */))) {
+				    physdev->iflink, 0 /* rgb: should this be 0? */))) {
 		stats->tx_errors++;
 		KLIPS_PRINT(debug_tunnel & DB_TN_XMIT,
 			    "klips_debug:ipsec_tunnel_start_xmit: "
Quoted 22 lines · Julian Anastasov

Hello,

Quoted 14 lines · Jason A. Pattie

I patched my kernel with the new routing code for 2.4.14 which already had been patched with a FreeS/WAN snapshot. However, the compilation gave me an error stating that:

ipsec_tunnel.c: In function `ipsec_tunnel_start_xmit':
ipsec_tunnel.c:1883: too few arguments to function `ip_route_output' make[3]: *** [ipsec_tunnel.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.14/net/ipsec' make[1]: *** [_subdir_ipsec] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.14/net'
make: *** [_dir_net] Error 2

Quoted 2 lines

Has anyone else run into this problem of mixing the new multipath routing code with FreeS/WAN? or am I missing something?

Quoted 8 lines

Yes but I still didn't received patch for this. Just add
one 0 as last argument to ip_route_output, make a diff -u and I'll upload it on the site. Of course, if everything else works.

Regards

--
Julian Anastasov <[email protected]>

Whit

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/

#3 lore raw
In reply to Jason A. Pattie

Hello,

Quoted 1 line · Whit Blauvelt

This a change in the file freeswan-1.94/klips/net/ipsec/ipsec_tunnel.c

Slightly changed and saved as
http://www.linuxvirtualserver.org/~julian/freeswan-1.94-routes-1.diff

Quoted 1 line

Whit

Regards

--
Julian Anastasov <[email protected]>

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/lartc/