Commit 8817830f authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Use the new interface to kernel_ll_addresses.

parent fd51cbf6
......@@ -194,7 +194,7 @@ network_up(struct network *net, int up)
net->flags &= ~NET_UP;
if(up) {
unsigned char ll[32][16];
struct kernel_route ll[32];
if(net->ifindex <= 0) {
fprintf(stderr,
"Upping unknown interface %s.\n", net->ifname);
......@@ -323,6 +323,9 @@ network_up(struct network *net, int up)
if(net->ll == NULL) {
perror("malloc(ll)");
} else {
int i;
for(i = 0; i < rc; i++)
memcpy(net->ll[i], ll[i].prefix, 16);
net->numll = rc;
memcpy(net->ll, ll, rc * 16);
}
......
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