Commit d3b0dd6d authored by Adam Wujek's avatar Adam Wujek

lib/net: print correct ethertype for udp packets

Signed-off-by: 's avatarAdam Wujek <dev_public@wujek.eu>
parent 1d84cc25
......@@ -61,9 +61,6 @@ struct wrpc_socket *ptpd_netif_create_socket(struct wrpc_socket *sock,
pp_printf("%s: no socket slots left\n", __func__);
return NULL;
}
net_verbose("%s: socket %p for %04x:%04x, slot %i\n", __func__,
sock, ntohs(bind_addr->ethertype),
udpport, i);
if (wrpc_get_port_state(&pstate, "wr0" /* unused */) < 0)
return NULL;
......@@ -78,6 +75,10 @@ struct wrpc_socket *ptpd_netif_create_socket(struct wrpc_socket *sock,
sock->bind_addr.udpport = udpport;
}
net_verbose("%s: socket %p for %04x:%04x, slot %i\n", __func__,
sock, ntohs(sock->bind_addr.ethertype),
udpport, i);
/*get mac from endpoint */
ep_get_mac_addr(&wrc_endpoint_dev, sock->local_mac);
......
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