From 678d7b9461814c1711441d1a480c126cd8166f3e Mon Sep 17 00:00:00 2001 From: Andre Oppermann Date: Mon, 19 Aug 2013 12:30:18 +0000 Subject: [PATCH] Move the SCTP specific definition of M_NOTIFICATION onto a protocol specific mbuf flag from sys/mbuf.h to netinet/sctp_os_bsd.h. It is only relevant within SCTP. Discussed with: tuexen --- sys/netinet/sctp_os_bsd.h | 5 +++++ sys/sys/mbuf.h | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/netinet/sctp_os_bsd.h b/sys/netinet/sctp_os_bsd.h index 9cb77b688c25..4eff47b4f691 100644 --- a/sys/netinet/sctp_os_bsd.h +++ b/sys/netinet/sctp_os_bsd.h @@ -428,6 +428,11 @@ typedef struct rtentry sctp_rtentry_t; /* This is re-pulse ourselves for sendbuf */ #define SCTP_ZERO_COPY_SENDQ_EVENT(inp, so) +/* + * SCTP protocol specific mbuf flags. + */ +#define M_NOTIFICATION M_PROTO5 /* SCTP notification */ + /* * IP output routines */ diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 5a1530ac30b0..8cf94bd3723e 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -207,8 +207,6 @@ struct mbuf { #define M_FLOWID 0x00400000 /* deprecated: flowid is valid */ #define M_HASHTYPEBITS 0x0F000000 /* mask of bits holding flowid hash type */ -#define M_NOTIFICATION M_PROTO5 /* SCTP notification */ - /* * Flags to purge when crossing layers. */