lkml.org 
[lkml]   [1996]   [Apr]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: 1.3.88 - IP Masquerading crash - patch to fix
Date
The enclosed patch fixes a bug in the generation of 
/proc/net/ip_masquerade when there are more masquerading entries than
will fit in the buffer passed to the function - so it tramped on the
next page(s) of memory.

The real fix is very small, but since I couldn't see the bug in the
trees I recoded much of it to the same methods used to generate
/proc/net route - all lines are now a fixed 128 bytes in length,
allowing subsequent iterations to quickly skip over early entries and
so should be rather faster for large lists.

The patch is a unidiff relative to 1.3.88 or 1.3.89.

Nigel.

[unhandled content-type:application/x-patch][ Nigel.Metheringham@theplanet.net - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House Tel : +44 113 2345566 x 612 ]
[ Melbourne Street, Leeds LS2 7PS UK. Fax : +44 113 2345656 ]
\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.025 / U:1.848 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site