lkml.org 
[lkml]   [1999]   [Feb]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectTiny patch to fix TR with tcpdump

tr_add_rif_info turns of the source routing bit in the frame but
does not turn it back on for all exit paths of the routine. For
programs such as tcpdump that need to inspect the whole packet
this plays havoc as the SR bit is off and it should be on.

The following patch is a quick fix.

Please CC me any comments as I am not subscribed to the list.




--- linux-2.2.2/net/802/tr.c Wed Dec 16 21:35:50 1998
+++ linux/net/802/tr.c Wed Feb 10 13:54:48 1999
@@ -391,6 +391,8 @@
}
entry->last_used=jiffies;
}
+ if (rii_p)
+ trh->saddr[0]|=TR_RII;
}

/*


-
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/

\
 
 \ /
  Last update: 2005-03-22 13:50    [W:0.021 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site