This patch adds transmit time stamping to the tun/tap driver. Similar support already exists for UDP, can, and raw packets.
Showing the changes to include/uapi/linux (1 of 2 files). Show all
Unified · Split
| @@ -71,6 +71,9 @@ · 70 unmodified lines | ||
| 71 | 71 | /* read-only flag */ |
| 72 | 72 | #define IFF_PERSIST 0x0800 |
| 73 | 73 | |
| 74 | +/* Socket options */ | |
| 75 | +#define TUN_TX_TIMESTAMP 1 | |
| 76 | + | |
| 74 | 77 | /* Features for GSO (TUNSETOFFLOAD). */ |
| 75 | 78 | #define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */ |
| 76 | 79 | #define TUN_F_TSO4 0x02 /* I can handle TSO for IPv4 packets */ |