Skip to content

Commit 4c50a45

Browse files
committed
netpacket/sockaddr_ll: Add valid packet types for sll_pkttype
Add valid packet types for the sll_pkttype member of the struct sockaddr_ll. These definitions are commonly used by third-party libraries.
1 parent 60683d7 commit 4c50a45

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

include/netpacket/packet.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,20 @@
3030
#include <nuttx/config.h>
3131
#include <stdint.h>
3232

33+
/****************************************************************************
34+
* Pre-processor Definitions
35+
****************************************************************************/
36+
37+
/* Valid packet types for sll_pkttype */
38+
39+
#define PACKET_HOST 0 /* To us. */
40+
#define PACKET_BROADCAST 1 /* To all. */
41+
#define PACKET_MULTICAST 2 /* To group. */
42+
#define PACKET_OTHERHOST 3 /* To someone else. */
43+
#define PACKET_OUTGOING 4 /* Originated by us . */
44+
#define PACKET_LOOPBACK 5
45+
#define PACKET_FASTROUTE 6
46+
3347
/****************************************************************************
3448
* Public Types
3549
****************************************************************************/

0 commit comments

Comments
 (0)