<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
That's it, that code is not in net/ipv4/udp.c, the closest match is<br>
case 0:<br>
case UDP_ENCAP_ESPINUDP:<br>
case UDP_ENCAP_ESPINUDP_NON_IKE:<br>
up->encap_type = val;<br>
break;<br>
default:<br>
err = -ENOPROTOOPT;<br>
break;<br>
}<br>
break;<br>
<br>
<br>
Paul Wouters wrote:
<blockquote
cite="midPine.LNX.4.64.0804072013140.790@newtla.xelerance.com"
type="cite">
<pre wrap="">On Mon, 7 Apr 2008, vpn wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Thanks Julien, This is the contents of net/ipv4/udp.c.rej
***************
*** 1349,1354 ****
case 0:
case UDP_ENCAP_ESPINUDP:
case UDP_ENCAP_ESPINUDP_NON_IKE:
up->encap_rcv = xfrm4_udp_encap_rcv;
/* FALLTHROUGH */
case UDP_ENCAP_L2TPINUDP:
--- 1472,1482 ----
case 0:
case UDP_ENCAP_ESPINUDP:
case UDP_ENCAP_ESPINUDP_NON_IKE:
+ #if defined(CONFIG_XFRM) || defined(CONFIG_IPSEC_NAT_TRAVERSAL)
+ if (xfrm4_rcv_encap_func)
+ up->encap_rcv = xfrm4_udp_encap_rcv_wrapper;
+ else
+ #endif
up->encap_rcv = xfrm4_udp_encap_rcv;
/* FALLTHROUGH */
case UDP_ENCAP_L2TPINUDP:
</pre>
</blockquote>
<pre wrap=""><!---->
So find that code above the " --- 1472,1482 ----" in your udp.c, and
manually change it to have those extra lines starting with "+" in it
from below the " --- 1472,1482 ----" marker.
Paul
</pre>
</blockquote>
</body>
</html>