summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2011-09-20 05:25:41 +0400
committerDavid S. Miller <davem@davemloft.net>2011-09-29 08:32:03 +0400
commitf75159e9936143177b442afc78150b7a7ad8aa07 (patch)
tree3afabb028c1436d50ba0800628207fe5780d7f97 /Makefile
parentd5767c53535ac79758084773418e0ad186aba4a2 (diff)
downloadlinux-f75159e9936143177b442afc78150b7a7ad8aa07.tar.xz
ptp: fix L2 event message recognition
The IEEE 1588 standard defines two kinds of messages, event and general messages. Event messages require time stamping, and general do not. When using UDP transport, two separate ports are used for the two message types. The BPF designed to recognize event messages incorrectly classifies L2 general messages as event messages. This commit fixes the issue by extending the filter to check the message type field for L2 PTP packets. Event messages are be distinguished from general messages by testing the "general" bit. Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Cc: <stable@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions