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.
This commit is contained in:
parent
4612185cd6
commit
a4fd1b3a6a
1 changed files with 14 additions and 0 deletions
|
@ -30,6 +30,20 @@
|
||||||
#include <nuttx/config.h>
|
#include <nuttx/config.h>
|
||||||
#include <stdint.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
|
* Public Types
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
Loading…
Reference in a new issue