Commit f514cadd authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Rename parse_route_attributes to parse_update_subtlv.

This is consistent with Baptiste's work, and is better in any case.
parent bf8555b2
......@@ -120,7 +120,7 @@ network_prefix(int ae, int plen, unsigned int omitted,
}
static void
parse_route_attributes(const unsigned char *a, int alen,
parse_update_subtlv(const unsigned char *a, int alen,
unsigned char *channels)
{
int type, len, i = 0;
......@@ -522,7 +522,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
if((ifp->flags & IF_FARAWAY)) {
channels[0] = 0;
} else {
/* This will be overwritten by parse_route_attributes below. */
/* This will be overwritten by parse_update_subtlv below. */
if(metric < 256) {
/* Assume non-interfering (wired) link. */
channels[0] = 0;
......@@ -533,7 +533,7 @@ parse_packet(const unsigned char *from, struct interface *ifp,
}
if(parsed_len < len)
parse_route_attributes(message + 2 + parsed_len,
parse_update_subtlv(message + 2 + parsed_len,
len - parsed_len, channels);
}
......
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