diff options
author | Roger Pau Monné <royger@FreeBSD.org> | 2021-12-28 08:13:57 +0000 |
---|---|---|
committer | Roger Pau Monné <royger@FreeBSD.org> | 2021-12-29 08:23:52 +0000 |
commit | 60e749da3c8b9b42cb7b044bea0b380daf1e70e9 (patch) | |
tree | c46055c4320afc7010884b2eb7b2844f1c4681a4 /sys/sys/mbuf.h | |
parent | b99651c52fa52cdef5688859e0bc7f3fb2085a2f (diff) | |
download | src-60e749da3c8b9b42cb7b044bea0b380daf1e70e9.tar.gz src-60e749da3c8b9b42cb7b044bea0b380daf1e70e9.zip |
Diffstat (limited to 'sys/sys/mbuf.h')
-rw-r--r-- | sys/sys/mbuf.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index 07a75bd5b47b..cea2c3820143 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -1369,11 +1369,12 @@ extern bool mb_use_ext_pgs; /* Use ext_pgs for sendfile */ /* Specific cookies and tags. */ /* Packet tag routines. */ -struct m_tag *m_tag_alloc(u_int32_t, int, int, int); +struct m_tag *m_tag_alloc(uint32_t, uint16_t, int, int); void m_tag_delete(struct mbuf *, struct m_tag *); void m_tag_delete_chain(struct mbuf *, struct m_tag *); void m_tag_free_default(struct m_tag *); -struct m_tag *m_tag_locate(struct mbuf *, u_int32_t, int, struct m_tag *); +struct m_tag *m_tag_locate(struct mbuf *, uint32_t, uint16_t, + struct m_tag *); struct m_tag *m_tag_copy(struct m_tag *, int); int m_tag_copy_chain(struct mbuf *, const struct mbuf *, int); void m_tag_delete_nonpersistent(struct mbuf *); @@ -1395,7 +1396,7 @@ m_tag_init(struct mbuf *m) * XXX probably should be called m_tag_init, but that was already taken. */ static __inline void -m_tag_setup(struct m_tag *t, u_int32_t cookie, int type, int len) +m_tag_setup(struct m_tag *t, uint32_t cookie, uint16_t type, int len) { t->m_tag_id = type; @@ -1457,13 +1458,13 @@ m_tag_unlink(struct mbuf *m, struct m_tag *t) #define MTAG_ABI_COMPAT 0 /* compatibility ABI */ static __inline struct m_tag * -m_tag_get(int type, int length, int wait) +m_tag_get(uint16_t type, int length, int wait) { return (m_tag_alloc(MTAG_ABI_COMPAT, type, length, wait)); } static __inline struct m_tag * -m_tag_find(struct mbuf *m, int type, struct m_tag *start) +m_tag_find(struct mbuf *m, uint16_t type, struct m_tag *start) { return (SLIST_EMPTY(&m->m_pkthdr.tags) ? (struct m_tag *)NULL : m_tag_locate(m, MTAG_ABI_COMPAT, type, start)); |