Commit 15353c45 authored by Alessandro Rubini's avatar Alessandro Rubini Committed by Aurelio Colosimo

posix-socket: enable timestamping for raw ethernet

parent 1ec040d7
......@@ -229,6 +229,11 @@ int posix_open_ch(struct pp_instance *ppi, char *ifname, int chtype)
&pmr, sizeof(pmr)); /* lazily ignore errors */
NP(ppi)->ch[chtype].fd = sock;
/* make timestamps available through recvmsg() -- FIXME: hw? */
setsockopt(sock, SOL_SOCKET, SO_TIMESTAMP,
&temp, sizeof(int));
return 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