diff options
Diffstat (limited to 'include/linux/ptp_classify.h')
-rw-r--r-- | include/linux/ptp_classify.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/ptp_classify.h b/include/linux/ptp_classify.h index 159c987b1853..a079656b614c 100644 --- a/include/linux/ptp_classify.h +++ b/include/linux/ptp_classify.h | |||
@@ -32,9 +32,9 @@ | |||
32 | #define PTP_CLASS_VMASK 0x0f /* max protocol version is 15 */ | 32 | #define PTP_CLASS_VMASK 0x0f /* max protocol version is 15 */ |
33 | #define PTP_CLASS_IPV4 0x10 /* event in an IPV4 UDP packet */ | 33 | #define PTP_CLASS_IPV4 0x10 /* event in an IPV4 UDP packet */ |
34 | #define PTP_CLASS_IPV6 0x20 /* event in an IPV6 UDP packet */ | 34 | #define PTP_CLASS_IPV6 0x20 /* event in an IPV6 UDP packet */ |
35 | #define PTP_CLASS_L2 0x30 /* event in a L2 packet */ | 35 | #define PTP_CLASS_L2 0x40 /* event in a L2 packet */ |
36 | #define PTP_CLASS_PMASK 0x30 /* mask for the packet type field */ | 36 | #define PTP_CLASS_PMASK 0x70 /* mask for the packet type field */ |
37 | #define PTP_CLASS_VLAN 0x40 /* event in a VLAN tagged packet */ | 37 | #define PTP_CLASS_VLAN 0x80 /* event in a VLAN tagged packet */ |
38 | 38 | ||
39 | #define PTP_CLASS_V1_IPV4 (PTP_CLASS_V1 | PTP_CLASS_IPV4) | 39 | #define PTP_CLASS_V1_IPV4 (PTP_CLASS_V1 | PTP_CLASS_IPV4) |
40 | #define PTP_CLASS_V1_IPV6 (PTP_CLASS_V1 | PTP_CLASS_IPV6) /* probably DNE */ | 40 | #define PTP_CLASS_V1_IPV6 (PTP_CLASS_V1 | PTP_CLASS_IPV6) /* probably DNE */ |
@@ -42,6 +42,7 @@ | |||
42 | #define PTP_CLASS_V2_IPV6 (PTP_CLASS_V2 | PTP_CLASS_IPV6) | 42 | #define PTP_CLASS_V2_IPV6 (PTP_CLASS_V2 | PTP_CLASS_IPV6) |
43 | #define PTP_CLASS_V2_L2 (PTP_CLASS_V2 | PTP_CLASS_L2) | 43 | #define PTP_CLASS_V2_L2 (PTP_CLASS_V2 | PTP_CLASS_L2) |
44 | #define PTP_CLASS_V2_VLAN (PTP_CLASS_V2 | PTP_CLASS_VLAN) | 44 | #define PTP_CLASS_V2_VLAN (PTP_CLASS_V2 | PTP_CLASS_VLAN) |
45 | #define PTP_CLASS_L4 (PTP_CLASS_IPV4 | PTP_CLASS_IPV6) | ||
45 | 46 | ||
46 | #define PTP_EV_PORT 319 | 47 | #define PTP_EV_PORT 319 |
47 | #define PTP_GEN_BIT 0x08 /* indicates general message, if set in message type */ | 48 | #define PTP_GEN_BIT 0x08 /* indicates general message, if set in message type */ |