Commit e795d3f8 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix typo -- ids are 8 octets, not 16.

parent 90f60f8e
...@@ -86,7 +86,7 @@ struct interface { ...@@ -86,7 +86,7 @@ struct interface {
char have_buffered_id; char have_buffered_id;
char have_buffered_nh; char have_buffered_nh;
char have_buffered_prefix; char have_buffered_prefix;
unsigned char buffered_id[16]; unsigned char buffered_id[8];
unsigned char buffered_nh[4]; unsigned char buffered_nh[4];
unsigned char buffered_prefix[16]; unsigned char buffered_prefix[16];
unsigned char *sendbuf; unsigned char *sendbuf;
......
...@@ -1214,7 +1214,7 @@ really_send_update(struct interface *ifp, ...@@ -1214,7 +1214,7 @@ really_send_update(struct interface *ifp,
accumulate_bytes(ifp, id, 8); accumulate_bytes(ifp, id, 8);
end_message(ifp, MESSAGE_ROUTER_ID, 10); end_message(ifp, MESSAGE_ROUTER_ID, 10);
} }
memcpy(ifp->buffered_id, id, 16); memcpy(ifp->buffered_id, id, 8);
ifp->have_buffered_id = 1; ifp->have_buffered_id = 1;
} }
......
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