Skip to content

Commit

Permalink
netpacket/sockaddr_ll: Add valid packet types for sll_pkttype
Browse files Browse the repository at this point in the history
Add valid packet types for the sll_pkttype member of the struct
sockaddr_ll. These definitions are commonly used by third-party
libraries.
  • Loading branch information
tmedicci committed Dec 30, 2024
1 parent 60683d7 commit 4c50a45
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions include/netpacket/packet.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,20 @@
#include <nuttx/config.h>
#include <stdint.h>

/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

/* Valid packet types for sll_pkttype */

#define PACKET_HOST 0 /* To us. */
#define PACKET_BROADCAST 1 /* To all. */
#define PACKET_MULTICAST 2 /* To group. */
#define PACKET_OTHERHOST 3 /* To someone else. */
#define PACKET_OUTGOING 4 /* Originated by us . */
#define PACKET_LOOPBACK 5
#define PACKET_FASTROUTE 6

/****************************************************************************
* Public Types
****************************************************************************/
Expand Down

0 comments on commit 4c50a45

Please sign in to comment.