[Patch] ip_masq.c - Error with gated using ospf

Kai Bankett (chaosman@ontia.net)
Fri, 4 Dec 1998 03:26:16 +0100


There is a Problem with gated & ospf & Linux kernel >=2.1.130 & Masquerading
No routing-updates can be received or send.
I've included a patch that solved the problem for me.
Maybe someone can take a look at it ...

--- linux/net/ipv4/ip_masq.c Fri Nov 27 19:42:06 1998
+++ ip_masq.c Fri Dec 4 02:23:36 1998
@@ -969,7 +969,7 @@
*/
static __inline__ int proto_doff(unsigned proto, char *th, unsigned size)
{
- int ret = -1;
+ int ret = 0;
switch (proto) {
case IPPROTO_ICMP:
if (size >= sizeof(struct icmphdr))

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/