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