[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    HW timestamping e1000
From:       <Gabriel.Moyano () dlr ! de>
Date:       2020-05-28 11:31:04
Message-ID: 21b2a889fc064188bf51da27211ab462 () dlr ! de
[Download RAW message or body]

Hi everybody,

Currently I am writing a piece of code to test HW timestamping on e1000 during \
reception, which runs on FreeBSD 12, but unfortunately it seems that it isn't \
working.

The socket is created and configured as follows:

sockfd = socket(AF_INET, SOCK_DGRAM, 0);
int on = 1;
setsockopt(sockfd, SOL_SOCKET, SO_TIMESTAMP, &on, sizeof(on));

After recvmsg() is called, cmsg_type of received control messages are printed out \
with help of the control message routines \
(https://www.freebsd.org/cgi/man.cgi?query=CMSG_DATA). SCM_TIME_INFO should be \
printed out but it's not.

Is there any configuration missing? Does e1000 support HW timestamping right?

I will appreciate any help.

Best regards,
Gabriel

--------------------------
Deutsches Zentrum für Luft- und Raumfahrt e.V. (DLR)
Institute for Software Technology | SC-OSS | Lilienthalplatz 7 | 38108 Braunschweig  \
| Germany

Gabriel Moyano | Research Scientist in Onboard Software Systems group
gabriel.moyano@dlr.de<mailto:gabriel.moyano@dlr.de>
DLR.de<http://www.dlr.de/>

_______________________________________________
freebsd-questions@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic