linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Frank Davis <fdavis@si.rr.com>
To: <linux-kernel@vger.kernel.org>
Cc: <torvalds@transmeta.com>, <fdavis@si.rr.com>
Subject: [PATCH] 2.5.7-pre1: net/ipv4/ipmr.c
Date: Tue, 12 Mar 2002 21:04:13 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.33.0203122102100.12006-100000@localhost.localdomain> (raw)

Hello all,
  The following patch fixes following compile error:
ipmr.c: In function `ip_mroute_setsockopt':
ipmr.c:858: structure has no member named `num'
make[3]: *** [ipmr.o] Error 1
make[3]: Leaving directory `/usr/src/linux/net/ipv4'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux/net/ipv4'
make[1]: *** [_subdir_ipv4] Error 2
make[1]: Leaving directory `/usr/src/linux/net'
make: *** [_dir_net] Error 2

--- net/ipv4/ipmr.c.old	Sun Feb  3 19:55:14 2002
+++ net/ipv4/ipmr.c	Tue Mar 12 20:59:44 2002
@@ -855,7 +855,7 @@
 	switch(optname)
 	{
 		case MRT_INIT:
-			if(sk->type!=SOCK_RAW || sk->num!=IPPROTO_IGMP)
+			if(sk->type!=SOCK_RAW || inet_sk(sk)->num!=IPPROTO_IGMP)
 				return -EOPNOTSUPP;
 			if(optlen!=sizeof(int))
 				return -ENOPROTOOPT;


                 reply	other threads:[~2002-03-13  2:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.LNX.4.33.0203122102100.12006-100000@localhost.localdomain \
    --to=fdavis@si.rr.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).