Skip to content

Commit

Permalink
kronosnetd: make baseport endian clean
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Nov 16, 2012
1 parent 49136f0 commit ae012db
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kronosnetd/vty_cli_cmds.c
Expand Up @@ -1567,6 +1567,7 @@ static int knet_cmd_interface(struct knet_vty *vty)
knet_iface->cfg_eth.node_id = requested_id;
}

baseport = htons(baseport);
memset(&mac, 0, sizeof(mac));
snprintf(mac, sizeof(mac) - 1, "54:54:%x:%x:0:%x", bport[0], bport[1], knet_iface->cfg_eth.node_id);
if (tap_set_mac(knet_iface->cfg_eth.tap, mac) < 0) {
Expand Down

0 comments on commit ae012db

Please sign in to comment.