On Sun, Oct 27, 2013 at 06:24:53AM -0700, Raymond Guo wrote:
> I cannot find any reference that says the linux kernel or the hardware or
> the ethernet driver is not supposed to pass up the FCS to apps when
> communicating over raw sockets.
I found this:
http://wiki.wireshark.org/Ethernet
As the Ethernet hardware filters the preamble, it is not given to
Wireshark or any other application. Most Ethernet interfaces also
either don't supply the FCS to Wireshark or other applications, or
aren't configured by their driver to do so; therefore, Wireshark
will typically only be given the green fields, although on some
platforms, with some interfaces, the FCS will be supplied on
incoming packets.
> Is this an issue lying in the kernel, ethernet driver or hardware which is
> not supposed to deliver the FCS?
I would bet this is a driver issue. What kernel and driver are you using?
> Otherwise is ptp4l supposed to properly handle the FCS (such as ignoring
> the last 4 bytes), or setting a socket option (if one exists) to kernel to
> ask it to discard the FCS before delivering to user space?
AFAICT, there is no such socket option.
Sorry,
Richard
|