diff options
author | Andre Oppermann <andre@FreeBSD.org> | 2013-08-19 13:56:14 +0000 |
---|---|---|
committer | Andre Oppermann <andre@FreeBSD.org> | 2013-08-19 13:56:14 +0000 |
commit | 375c0a8a1c4cc45adcb859f1048c99bafc68e9bd (patch) | |
tree | 7f8a14d38a3278a8534fa36dd320aaaf3f09ee0f /sys/sys/mbuf.h | |
parent | 86bd0491442e667469d72d133cf07945362f7dad (diff) | |
download | src-375c0a8a1c4cc45adcb859f1048c99bafc68e9bd.tar.gz src-375c0a8a1c4cc45adcb859f1048c99bafc68e9bd.zip |
Add four additional M_PROTOFLAGS[9-12] for protocol specific use.
Discussed with: trociny, glebius, adrian
Notes
Notes:
svn path=/head/; revision=254524
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r-- | sys/sys/mbuf.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 994bd35d75c4..c22628c1b3f4 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -196,22 +196,24 @@ struct mbuf { #define M_FRAG 0x00000800 /* packet is a fragment of a larger packet */ #define M_FIRSTFRAG 0x00001000 /* packet is first fragment */ #define M_LASTFRAG 0x00002000 /* packet is last fragment */ - /* 0x00004000 free */ - /* 0x00008000 free */ +#define M_PROTO9 0x00004000 /* protocol-specific */ +#define M_PROTO10 0x00008000 /* protocol-specific */ #define M_VLANTAG 0x00010000 /* ether_vtag is valid */ #define M_PROMISC 0x00020000 /* packet was not for us */ - /* 0x00040000 free */ +#define M_PROTO11 0x00040000 /* protocol-specific */ #define M_PROTO6 0x00080000 /* protocol-specific */ #define M_PROTO7 0x00100000 /* protocol-specific */ #define M_PROTO8 0x00200000 /* protocol-specific */ #define M_FLOWID 0x00400000 /* deprecated: flowid is valid */ +#define M_PROTO12 0x00800000 /* protocol-specific */ #define M_HASHTYPEBITS 0x0F000000 /* mask of bits holding flowid hash type */ /* * Flags to purge when crossing layers. */ #define M_PROTOFLAGS \ - (M_PROTO1|M_PROTO2|M_PROTO3|M_PROTO4|M_PROTO5|M_PROTO6|M_PROTO7|M_PROTO8) + (M_PROTO1|M_PROTO2|M_PROTO3|M_PROTO4|M_PROTO5|M_PROTO6|M_PROTO7|M_PROTO8|\ + M_PROTO9|M_PROTO10|M_PROTO11|M_PROTO12) /* * Network interface cards are able to hash protocol fields (such as IPv4 |