mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Definition of PIM_REGISTER in pim.h, with more information
@ 2008-08-29 13:43 Jose Calhariz
  2008-08-29 20:56 ` David Miller
  0 siblings, 1 reply; 3+ messages in thread
From: Jose Calhariz @ 2008-08-29 13:43 UTC (permalink / raw)
  To: YOSHIFUJI Hideaki; +Cc: linux-kernel, David Miller, 494223

[-- Attachment #1: Type: text/plain, Size: 2716 bytes --]


I am sending this email again because I have more information.

----- Forwarded message from cal -----

To: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Cc: Claudio Martins <ctpm@ist.utl.pt>,
	Jorge Daniel Sequeira Matias <martin@andorinha.ist.utl.pt>,
	javifs@gmail.com
Subject: Definition of PIM_REGISTER in pim.h


Hi.

About the new file linux/pim.h and the definitions of PIM in linux
2.6.26. 

The "#define PIM_REGISTER 1" was in file mroute.h and was protected by
"#ifdef __KERNEL__" until version 2.5.25.  In version 2.6.26 this
define is in file pim.h but is no longer protected by a "#ifdef
__KERNEL__".

Is this change intentional?  

This change breaks the compilation of software from the project
www.xorp.org.  In the file mrt/include/netinet/pim.h for the xorp
software they define PIM messages types and use this code:

/*
 * PIM message types
 */
#define PIM_HELLO               0x0     /* PIM-SM and PIM-DM            */

#define PIM_REGISTER            0x1     /* PIM-SM only                  */

#define PIM_REGISTER_STOP       0x2     /* PIM-SM only                  */
#define PIM_JOIN_PRUNE          0x3     /* PIM-SM and PIM-DM            */
#define PIM_BOOTSTRAP           0x4     /* PIM-SM only                  */
#define PIM_ASSERT              0x5     /* PIM-SM and PIM-DM            */
#define PIM_GRAFT               0x6     /* PIM-DM only                  */
#define PIM_GRAFT_ACK           0x7     /* PIM-DM only                  */
#define PIM_CAND_RP_ADV         0x8     /* PIM-SM only                  */
#define PIM_ALL_DF_ELECTION     0xa     /* Bidir-PIM-SM only            */

You can see the bug report with more details in:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494223

I am one of the two persons that is packaging xorp for Debian. I am
talking in my personal name, not in the name of Debian, xorp project
or employer.  I am asking this to you because the problematic change
was possible introduced by: 

commit 2e8046271f68198dd37451017c1a4a2432e4ec68
Author: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Date:   Thu Apr 3 09:22:09 2008 +0900

    [IPV4] MROUTE: Move PIM definitions to <linux/pim.h>.
    
    Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>


I am free to give you more information if you need.  I am sorry if any
of my facts is wrong.

     José Calhariz

--------------

The bug report for xorp.org is in
http://bugzilla.xorp.org/bugzilla/show_bug.cgi?id=767 and they have
found a solution.  But I still believe the bug is on Linux Kernel
Headers. 

     José Calhariz


--

As palavras enchem o espaço. Eu prefiro encher a carteira

--Andy Warhol

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-08-29 21:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-29 13:43 Definition of PIM_REGISTER in pim.h, with more information Jose Calhariz
2008-08-29 20:56 ` David Miller
2008-08-29 21:38   ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®