nm_desc_t
struct nm_desc_t *self;
#define P2NMD(p) ((struct nm_desc_t *)(p))
static struct nm_desc_t *nm_open(const char *ifname,
static int nm_dispatch(struct nm_desc_t *, int, nm_cb_t, u_char *);
static u_char *nm_next(struct nm_desc_t *, struct nm_hdr_t *);
static int nm_close(struct nm_desc_t *);
static struct nm_desc_t *
struct nm_desc_t *d;
d = (struct nm_desc_t *)calloc(1, sizeof(*d));
nm_close(struct nm_desc_t *d)
nm_dispatch(struct nm_desc_t *d, int cnt, nm_cb_t cb, u_char *arg)
nm_next(struct nm_desc_t *d, struct nm_hdr_t *hdr)