openbsd-ports/net/igmpproxy/patches/patch-request_c

32 lines
1.3 KiB
Plaintext
Raw Normal View History

$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...