kernel - Fix auto port assignment collision in network code
[dragonfly.git] / sys / sys / snoop.h
bloba087ffd933044c7e230716b77dd69af490224bff
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 $
18 #ifndef _SYS_SNOOP_H_
19 #define _SYS_SNOOP_H_
21 #include <sys/ioccom.h>
24 * These are snoop io controls
25 * SNPSTTY accepts 'struct snptty' as input.
26 * If ever type or unit set to -1,snoop device
27 * detached from its current tty.
29 #define SNPSTTY _IOW('T', 90, dev_t)
30 #define SNPGTTY _IOR('T', 89, dev_t)
33 * These values would be returned by FIONREAD ioctl
34 * instead of number of characters in buffer in case
35 * of specific errors.
37 #define SNP_OFLOW -1
38 #define SNP_TTYCLOSE -2
39 #define SNP_DETACH -3
41 #endif /* !_SYS_SNOOP_H_ */