mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-08-10 17:43:39 +08:00
minor: fixed coding style (lwip style)
This commit is contained in:
@@ -112,7 +112,7 @@ ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
|
||||
}
|
||||
|
||||
/* Try to find the netif for the source address, checking that link is up. */
|
||||
for(netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
if (!netif_is_up(netif) || !netif_is_link_up(netif)) {
|
||||
continue;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
|
||||
}
|
||||
|
||||
/* See if the destination subnet matches a configured address. */
|
||||
for(netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
if (!netif_is_up(netif) || !netif_is_link_up(netif)) {
|
||||
continue;
|
||||
}
|
||||
@@ -158,7 +158,7 @@ ip6_route(const ip6_addr_t *src, const ip6_addr_t *dest)
|
||||
|
||||
/* try with the netif that matches the source address. */
|
||||
if (!ip6_addr_isany(src)) {
|
||||
for(netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
for (netif = netif_list; netif != NULL; netif = netif->next) {
|
||||
if (!netif_is_up(netif) || !netif_is_link_up(netif)) {
|
||||
continue;
|
||||
}
|
||||
@@ -529,7 +529,7 @@ ip6_input(struct pbuf *p, struct netif *inp)
|
||||
if (netif == inp) {
|
||||
netif = netif->next;
|
||||
}
|
||||
} while(netif != NULL);
|
||||
} while (netif != NULL);
|
||||
netif_found:
|
||||
LWIP_DEBUGF(IP6_DEBUG, ("ip6_input: packet accepted on interface %c%c\n",
|
||||
netif ? netif->name[0] : 'X', netif? netif->name[1] : 'X'));
|
||||
|
||||
@@ -514,7 +514,7 @@ ip6_reass(struct pbuf *p)
|
||||
|
||||
/* chain together the pbufs contained within the ip6_reassdata list. */
|
||||
iprh = (struct ip6_reass_helper*) ipr->p->payload;
|
||||
while(iprh != NULL) {
|
||||
while (iprh != NULL) {
|
||||
struct pbuf* next_pbuf = iprh->next_pbuf;
|
||||
if (next_pbuf != NULL) {
|
||||
/* Save next helper struct (will be hidden in next step). */
|
||||
|
||||
@@ -331,7 +331,7 @@ nd6_input(struct pbuf *p, struct netif *inp)
|
||||
}
|
||||
|
||||
i = nd6_find_neighbor_cache_entry(ip6_current_src_addr());
|
||||
if ( i>= 0) {
|
||||
if (i>= 0) {
|
||||
/* We already have a record for the solicitor. */
|
||||
if (neighbor_cache[i].state == ND6_INCOMPLETE) {
|
||||
neighbor_cache[i].netif = inp;
|
||||
|
||||
Reference in New Issue
Block a user