openbsd-ports/net/igmpproxy/patches/patch-request_c
sthen 99d5e52b90 igmpproxy is a simple multicast routing daemon which uses IGMP
forwarding to dynamically route multicast traffic.  Routing is done
by defining an "upstream" interface on which the daemon acts as a
normal Multicast client, and one or more "downstream" interfaces
that serves clients on the destination networks. This is useful in
situations where other dynamic multicast routers cannot be used.

from markus with small adjustments.
ok markus
2008-02-08 19:30:51 +00:00

32 lines
1.3 KiB
Plaintext

$OpenBSD: patch-request_c,v 1.1.1.1 2008/02/08 19:30:52 sthen Exp $
--- request.c.orig Tue May 24 16:48:29 2005
+++ request.c Mon Nov 19 12:56:50 2007
@@ -88,7 +88,7 @@ void acceptGroupReport(uint32 src, uint32 group, uint8
} else {
// Log the state of the interface the report was recieved on.
- log(LOG_INFO, 0, "Mebership report was recieved on %s. Ignoring.",
+ log(LOG_INFO, 0, "Membership report was recieved on %s. Ignoring.",
sourceVif->state==IF_STATE_UPSTREAM?"the upstream interface":"a disabled interface");
}
@@ -136,7 +136,8 @@ void acceptLeaveMessage(uint32 src, uint32 group) {
} else {
// just ignore the leave request...
- IF_DEBUG log(LOG_DEBUG, 0, "The found if for %s was not downstream. Ignoring leave request.");
+ IF_DEBUG log(LOG_DEBUG, 0, "The found if for %s was not downstream. Ignoring leave request.",
+ inetFmt(src, s1));
}
}
@@ -184,7 +185,7 @@ void sendGeneralMembershipQuery() {
int Ix;
// Loop through all downstream vifs...
- for ( Ix = 0; Dp = getIfByIx( Ix ); Ix++ ) {
+ for ( Ix = 0; (Dp = getIfByIx( Ix )); Ix++ ) {
if ( Dp->InAdr.s_addr && ! (Dp->Flags & IFF_LOOPBACK) ) {
if(Dp->state == IF_STATE_DOWNSTREAM) {
// Send the membership query...