Commit 51ea99db authored by Alessandro Rubini's avatar Alessandro Rubini

bugfix: posix-socket: timestamp tx when in ethernet mode

Ethernet mode used to reset the time to the epoch.
Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent f2835098
......@@ -142,6 +142,10 @@ static int posix_net_send(struct pp_instance *ppi, void *pkt, int len,
memcpy(hdr->h_dest, PP_MCAST_MACADDRESS, ETH_ALEN);
/* raw socket implementation always uses gen socket */
memcpy(hdr->h_source, NP(ppi)->ch[PP_NP_GEN].addr, ETH_ALEN);
if (t)
ppi->t_ops->get(t);
return send(NP(ppi)->ch[PP_NP_GEN].fd, hdr,
len + NP(ppi)->ptp_offset, 0);
}
......
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