*
*/
-#include "ip.h"
-#include "igmp.h"
-#include "background.h"
-#include "nic.h"
-#include "etherboot.h"
+#if 0
+
+#include <ip.h>
+#include <igmp.h>
static unsigned long last_igmpv1 = 0;
static struct igmptable_t igmptable[MAX_IGMP];
igmp.igmp.chksum = ipchksum ( &igmp.igmp,
sizeof ( igmp.igmp ) );
ip_transmit ( sizeof ( igmp ), &igmp );
- DBG ( "IGMP sent report to %@\n",
- igmp.igmp.group.s_addr );
+ DBG ( "IGMP sent report to %s\n", inet_ntoa ( igmp.igmp.group ) );
/* Don't send another igmp report until asked */
igmptable[i].time = 0;
}
interval = ( igmp->response_time * TICKS_PER_SEC ) /10;
}
- DBG ( "IGMP received query for %@\n", igmp->group.s_addr );
+ DBG ( "IGMP received query for %s\n", inet_ntoa ( igmp->group ) );
for ( i = 0 ; i < MAX_IGMP ; i++ ) {
uint32_t group = igmptable[i].group.s_addr;
if ( ( group == 0 ) ||
if ( ( ( igmp->type == IGMPv1_REPORT ) ||
( igmp->type == IGMPv2_REPORT ) ) &&
( ip->dest.s_addr == igmp->group.s_addr ) ) {
- DBG ( "IGMP received report for %@\n", igmp->group.s_addr);
+ DBG ( "IGMP received report for %s\n",
+ inet_ntoa ( igmp->group ) );
for ( i = 0 ; i < MAX_IGMP ; i++ ) {
if ( ( igmptable[i].group.s_addr ==
igmp->group.s_addr ) &&
igmp.igmp.group.s_addr = igmptable[slot].group.s_addr;
igmp.igmp.chksum = ipchksum ( &igmp.igmp, sizeof ( igmp ) );
ip_transmit ( sizeof ( igmp ), &igmp );
- DBG ( "IGMP left group %@\n", igmp.igmp.group.s_addr );
+ DBG ( "IGMP left group %s\n", inet_ntoa ( igmp.igmp.group ) );
}
memset ( &igmptable[slot], 0, sizeof ( igmptable[0] ) );
}
igmptable[slot].time = currticks();
}
}
+
+#endif