mirror of
https://github.com/apache/nuttx.git
synced 2026-05-24 16:11:56 +08:00
net/ethernet: add timestamp for socket packet
add timestamp for socket packet Signed-off-by: gaohedong <gaohedong@xiaomi.com>
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
#define SO_TYPE 15 /* Reports the socket type (get only).
|
||||
* return: int
|
||||
*/
|
||||
#define SO_TIMESTAMP 16 /* Generates a timestamp for each incoming packet
|
||||
#define SO_TIMESTAMP 16 /* Generates a timestamp in us for each incoming packet
|
||||
* arg: integer value
|
||||
*/
|
||||
#define SO_BINDTODEVICE 17 /* Bind this socket to a specific network device.
|
||||
@@ -220,6 +220,9 @@
|
||||
#define SO_PEERCRED 18 /* Return the credentials of the peer process
|
||||
* connected to this socket.
|
||||
*/
|
||||
#define SO_TIMESTAMPNS 20 /* Generates a timestamp in ns for each incoming packet
|
||||
* arg: integer value
|
||||
*/
|
||||
|
||||
/* The options are unsupported but included for compatibility
|
||||
* and portability
|
||||
|
||||
Reference in New Issue
Block a user