Minor fix (coding style, comments, spaces, endline...)

This commit is contained in:
fbernon 2007-08-30 09:14:28 +00:00
parent cd208314e0
commit 36b6f308e6

View File

@ -38,20 +38,17 @@
* source code. * source code.
*/ */
/************************************************************ /*-------------------------------------------------------------
In the spirit of LW (I hope) Note 1)
-------------------------------------------------------------
note 1)
Although the rfc requires V1 AND V2 capability Although the rfc requires V1 AND V2 capability
we will only support v2 since now V1 is 5 years old we will only support v2 since now V1 is very old (August 1989)
V1 can be added if required V1 can be added if required
a debug print and statistic have been implemented to a debug print and statistic have been implemented to
show this up. show this up.
------------------------------------------------------------- -------------------------------------------------------------
------------------------------------------------------------- -------------------------------------------------------------
note 2) Note 2)
A query for a specific group address (as opposed to ALLHOSTS) A query for a specific group address (as opposed to ALLHOSTS)
has now been implemented as I am unsure if it is required has now been implemented as I am unsure if it is required
@ -59,7 +56,7 @@ a debug print and statistic have been implemented to
show this up. show this up.
------------------------------------------------------------- -------------------------------------------------------------
------------------------------------------------------------- -------------------------------------------------------------
note 3) Note 3)
The router alert rfc 2113 is implemented in outgoing packets The router alert rfc 2113 is implemented in outgoing packets
but not checked rigorously incoming but not checked rigorously incoming
------------------------------------------------------------- -------------------------------------------------------------
@ -345,7 +342,7 @@ igmp_input(struct pbuf *p, struct netif *inp, struct ip_addr *dest)
group->last_reporter_flag = 0; group->last_reporter_flag = 0;
} }
} else { } else {
LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: unexpected msg %x in state %x on group %x at interface %x\n", (int) igmp->igmp_msgtype, (int) group->group_state, (int) &group, (int) group->interface)); LWIP_DEBUGF(IGMP_DEBUG, ("igmp_input: unexpected msg %x in state %x on group %x on if %x\n", (int) igmp->igmp_msgtype, (int) group->group_state, (int) &group, (int) group->interface));
} }
} }
} }
@ -426,7 +423,7 @@ igmp_leavegroup(struct netif *ifp, struct ip_addr *groupaddr)
LWIP_DEBUGF(IGMP_DEBUG, ("\n")); LWIP_DEBUGF(IGMP_DEBUG, ("\n"));
if (group->last_reporter_flag) { if (group->last_reporter_flag) {
LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup: sending leaving group")); LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup: sending leaving group\n"));
IGMP_STATS_INC(igmp.leave_sent); IGMP_STATS_INC(igmp.leave_sent);
igmp_send(group, IGMP_LEAVE_GROUP); igmp_send(group, IGMP_LEAVE_GROUP);
} }
@ -443,7 +440,7 @@ igmp_leavegroup(struct netif *ifp, struct ip_addr *groupaddr)
return ERR_OK; return ERR_OK;
} }
LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup: not member of group")); LWIP_DEBUGF(IGMP_DEBUG, ("igmp_leavegroup: not member of group\n"));
return ERR_VAL; return ERR_VAL;
} }
@ -594,7 +591,7 @@ igmp_ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
ip_debug_print(p); ip_debug_print(p);
#endif #endif
LWIP_DEBUGF(IGMP_DEBUG, ("igmp_ip_output_if: sending to netif %x \n", (int) netif)); LWIP_DEBUGF(IGMP_DEBUG, ("igmp_ip_output_if: sending to if %x\n", (int) netif));
return netif->output(netif, p, dest); return netif->output(netif, p, dest);
} }