freebsd_network: Fix debug build.

This commit is contained in:
Augustin Cavalier 2019-03-04 12:49:26 -05:00
parent 8aa8345a68
commit bef99ce584
2 changed files with 9 additions and 0 deletions

View File

@ -36,6 +36,7 @@ struct ifaltq {
#define ALTQ_ENQUEUE(ifr, m, foo, error) \
do { m_freem(m); error = -1; } while (0)
#define ALTQ_DEQUEUE(ifr, m) (m) = NULL
#define ALTQ_PURGE(ifq)
#define TBR_IS_ENABLED(ifq) 0
#define tbr_dequeue_ptr(ifq, v) NULL

View File

@ -86,6 +86,14 @@ sysctl_wire_old_buffer(struct sysctl_req *req, size_t len)
}
static inline struct sbuf *
sbuf_new_for_sysctl(struct sbuf *s, char *buf, int length,
struct sysctl_req *req)
{
return NULL;
}
static inline void *
sysctl_add_oid(struct sysctl_ctx_list *clist, void *parent, int nbr,
const char *name, int kind, void *arg1, int arg2,