Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/mbuf.h
Show First 20 Lines • Show All 1,493 Lines • ▼ Show 20 Lines | mbuf_tstmp2timespec(struct mbuf *m, struct timespec *ts) | ||||
KASSERT((m->m_flags & M_PKTHDR) != 0, ("mbuf %p no M_PKTHDR", m)); | KASSERT((m->m_flags & M_PKTHDR) != 0, ("mbuf %p no M_PKTHDR", m)); | ||||
KASSERT((m->m_flags & M_TSTMP) != 0, ("mbuf %p no M_TSTMP", m)); | KASSERT((m->m_flags & M_TSTMP) != 0, ("mbuf %p no M_TSTMP", m)); | ||||
ts->tv_sec = m->m_pkthdr.rcv_tstmp / 1000000000; | ts->tv_sec = m->m_pkthdr.rcv_tstmp / 1000000000; | ||||
ts->tv_nsec = m->m_pkthdr.rcv_tstmp % 1000000000; | ts->tv_nsec = m->m_pkthdr.rcv_tstmp % 1000000000; | ||||
} | } | ||||
#endif | #endif | ||||
#ifdef NETDUMP | #ifdef PANICNET | ||||
/* Invoked from the netdump client code. */ | /* Invoked from the panicnet client code. */ | ||||
void netdump_mbuf_drain(void); | void panicnet_mbuf_drain(void); | ||||
void netdump_mbuf_dump(void); | void panicnet_mbuf_start(void); | ||||
void netdump_mbuf_reinit(int nmbuf, int nclust, int clsize); | void panicnet_mbuf_finish(void); | ||||
void panicnet_mbuf_reinit(int nmbuf, int nclust, int clsize); | |||||
#endif | #endif | ||||
#endif /* _KERNEL */ | #endif /* _KERNEL */ | ||||
#endif /* !_SYS_MBUF_H_ */ | #endif /* !_SYS_MBUF_H_ */ |