Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Patch

Posted on 1998-04-22
2
Medium Priority
?
296 Views
Last Modified: 2010-04-22
I found a patch at:
http://www.linuxhq.com/patch/20-p0827.html

But I don't know how to use it.

Hhe patch looks like this:

--- ip_fragment.c.old   Thu Apr 16 12:25:34 1998
+++ ip_fragment.c       Thu Apr 16 12:29:02 1998
@@ -375,7 +375,7 @@
        fp = qp->fragments;
        while(fp != NULL)
        {
-               if (fp->len < 0 || count+fp->len > skb->len)
+               if (fp->len < 0 || fp->offset+qp->ihlen+fp->len > skb->len)
                {
                        NETDEBUG(printk("Invalid fragment list: Fragment over size.\n"));
                        ip_free(qp);

0
Comment
Question by:hulken
2 Comments
 
LVL 2

Accepted Solution

by:
jaked earned 120 total points
ID: 1626602
What you want to do is go to the directory where the changed file is (on my machine it's in /usr/src/linux/net/ipv4), and run

patch < [patchfile]

where [patchfile] is the name of the file that you've saved the patch in (2.0.33-fragment.diff if you pressed the download button on linuxhq). Make sure that you're running a 2.0.33 kernel or the patch might not apply, or might not work if it does apply.

Once you've done this rebuild and install your kernel (this is described in /usr/src/linux/README).

0
 

Author Comment

by:hulken
ID: 1626603
Thanks!

I tried a patch -p0 < patchfile from the /usr/src directory as I use to do.!
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
I have written articles previously comparing SARDU and YUMI.  I also included a couple of lines about Easy2boot (easy2boot.com).  I have now been using, and enjoying easy2boot as my sole multiboot utility for some years and realize that it deserves …
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question