Commit 046e5621 authored by Josh Kunz's avatar Josh Kunz

Revert "Fix byte ordering of ip addresses (to be network byte ordered)"

This reverts commit d82aab8f.
parent de9722a3
Pipeline #2138 passed with stage
in 37 seconds
......@@ -158,7 +158,9 @@ int cn_dispatch_result_item_init_info(cn_dispatch_result_item_t *item,
return -1;
}
memcpy(item->info.ipv4, ipv4, sizeof(item->info.ipv4));
uint32_t ipv4_nbo = *((uint32_t *) ipv4);
ipv4_nbo = htonl(ipv4_nbo);
memcpy(item->info.ipv4, &ipv4_nbo, sizeof(ipv4_nbo));
memcpy(item->info.mac, mac, sizeof(item->info.mac));
item->info.id = id != NULL ? strdup(id) : NULL;
item->info.domain = domainid != NULL ? strdup(domainid) : NULL;
......@@ -293,8 +295,6 @@ static int __cn_dispatch_result_fill_item(cn_dispatch_result_item_t *item,
reply_info->id = item->info.id;
reply_info->domain = item->info.domain;
reply_info->owner = item->info.owner;
cncinfo("Filling reply with id:%s domain:%s owner:%s\n",
item->info.id, item->info.domain, item->info.owner);
reply_item->result_node_info = reply_info;
}
break;
......
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