Commit ed4001a1 authored by Matthieu Boutier's avatar Matthieu Boutier Committed by Juliusz Chroboczek

Make code fits in 80 columns.

parent b9605676
...@@ -1294,7 +1294,8 @@ parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res) ...@@ -1294,7 +1294,8 @@ parse_addr_rta(struct ifaddrmsg *addr, int len, struct in6_addr *res)
memcpy(res->s6_addr, RTA_DATA(rta), 16); memcpy(res->s6_addr, RTA_DATA(rta), 16);
break; break;
default: default:
kdebugf("ifaddr: unexpected address family %d\n", addr->ifa_family); kdebugf("ifaddr: unexpected address family %d\n",
addr->ifa_family);
return -1; return -1;
break; break;
} }
......
...@@ -785,8 +785,8 @@ kernel_addresses(char *ifname, int ifindex, int ll, ...@@ -785,8 +785,8 @@ kernel_addresses(char *ifname, int ifindex, int ll,
memcpy(routes[i].prefix, &sin6->sin6_addr, 16); memcpy(routes[i].prefix, &sin6->sin6_addr, 16);
if(ll) if(ll)
/* This a perfect example of counter-productive optimisation : /* This a perfect example of counter-productive optimisation :
KAME encodes interface index onto bytes 2 and 3, so we have to KAME encodes interface index onto bytes 2 and 3, so we have
reset those bytes to 0 before passing them to babeld. */ to reset those bytes to 0 before passing them to babeld. */
memset(routes[i].prefix + 2, 0, 2); memset(routes[i].prefix + 2, 0, 2);
routes[i].plen = 128; routes[i].plen = 128;
routes[i].metric = 0; routes[i].metric = 0;
......
...@@ -91,7 +91,8 @@ int update_feasible(struct source *src, ...@@ -91,7 +91,8 @@ int update_feasible(struct source *src,
unsigned short seqno, unsigned short refmetric); unsigned short seqno, unsigned short refmetric);
void change_smoothing_half_life(int half_life); void change_smoothing_half_life(int half_life);
int route_smoothed_metric(struct babel_route *route); int route_smoothed_metric(struct babel_route *route);
struct babel_route *find_best_route(const unsigned char *prefix, unsigned char plen, struct babel_route *find_best_route(const unsigned char *prefix,
unsigned char plen,
int feasible, struct neighbour *exclude); int feasible, struct neighbour *exclude);
struct babel_route *install_best_route(const unsigned char prefix[16], struct babel_route *install_best_route(const unsigned char prefix[16],
unsigned char plen); unsigned char plen);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment