Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Mar 1995 18:33:48 -0500
From:      slr@mitre.org (Soochon Radee)
To:        tinguely@plains.nodak.edu, wollman@halloran-eldar.lcs.mit.edu
Cc:        atn-group@mitre.org, freebsd-hackers@FreeBSD.org, ajit@udel.edu
Subject:   multicast pruning
Message-ID:  <v01510108ab7bfd8c0636@[128.29.113.163]>

next in thread | raw e-mail | index | archive | help
Here's another piece of the multicast problem solved. FreeBSD was unable to
prune with big-endian machines (Sun) because some differences in byte order
were not dealt with in the mrouted distribution code. These two diffs fix
that problem:

lusty# diff igmp.c igmp.c.orig
184c184
<                                (char *)(igmp+1), igmpdatalen, ntohl(group));
---
>                                (char *)(igmp+1), igmpdatalen, group);
189c189
<                                 (char *)(igmp+1), igmpdatalen, ntohl(group));
---
>                                 (char *)(igmp+1), igmpdatalen, group);

lusty# diff prune.c prune.c.orig
533d532
< #if BYTE_ORDER == BIG_ENDIAN
535,538d533
< #endif
< #if BYTE_ORDER == LITTLE_ENDIAN
<     for (i = 3; i >= 0; i--)
< #endif

The first set of diffs fixes the version number other multicast routers
send (that's why 'kill -USR1' dumps show 0.0 peer versions), and the other
one writes the prune lifetime in network order.

With the upcall and prune problems solved, all that's left is to check that
the LKM version works properly and some testing, and mrouted should be
ready for the 2.1 Release.

Soochon





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01510108ab7bfd8c0636>