- Test m_pkthdr.fw_flags against DUMMYNET_MBUF_TAGGED before trying to locate
[dragonfly/netmp.git] / sys / sys / snoop.h
blob6691313777f7e46de84e7221690cae616417c05b
1 /*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
11 * This software is provided ``AS IS'' without any warranties of any kind.
13 * Snoop stuff.
15 * $FreeBSD: src/sys/sys/snoop.h,v 1.14.2.1 2002/03/11 01:23:05 dd Exp $
16 * $DragonFly: src/sys/sys/snoop.h,v 1.3 2006/09/10 01:26:40 dillon Exp $
19 #ifndef _SYS_SNOOP_H_
20 #define _SYS_SNOOP_H_
22 #include <sys/ioccom.h>
25 * Theese are snoop io controls
26 * SNPSTTY accepts 'struct snptty' as input.
27 * If ever type or unit set to -1,snoop device
28 * detached from its current tty.
31 #ifdef _KERNEL
33 #define SNPSTTY _IOW('T', 90, udev_t)
34 #define SNPGTTY _IOR('T', 89, udev_t)
36 #else
38 #define SNPSTTY _IOW('T', 90, dev_t)
39 #define SNPGTTY _IOR('T', 89, dev_t)
41 #endif
44 * Theese values would be returned by FIONREAD ioctl
45 * instead of number of characters in buffer in case
46 * of specific errors.
48 #define SNP_OFLOW -1
49 #define SNP_TTYCLOSE -2
50 #define SNP_DETACH -3
52 #endif /* !_SYS_SNOOP_H_ */