Messages in this thread |  | | From | Nigel Metheringham <> | Subject | Re: 1.3.88 - IP Masquerading crash - patch to fix | Date | Tue, 16 Apr 1996 10:34:40 +0100 |
| |
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 ]
|  |