summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_var.h
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1995-02-16 00:27:47 +0000
committerwollman <wollman@FreeBSD.org>1995-02-16 00:27:47 +0000
commitd9804d3f5c56924ae9cdd5ae7158f755b5048e16 (patch)
treec55472d24cbc6b9c5e2ff9ed34ce203485bb98af /sys/netinet/udp_var.h
parent668541d9ec6dbf8324e4383c47e81d62dfd9fca2 (diff)
downloadFreeBSD-src-d9804d3f5c56924ae9cdd5ae7158f755b5048e16.zip
FreeBSD-src-d9804d3f5c56924ae9cdd5ae7158f755b5048e16.tar.gz
Add lots of useful MIB variables and a few not-so-useful ones for
completeness.
Diffstat (limited to 'sys/netinet/udp_var.h')
-rw-r--r--sys/netinet/udp_var.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
index c047c93..eb9caa9 100644
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)udp_var.h 8.1 (Berkeley) 6/10/93
- * $Id: udp_var.h,v 1.2 1994/08/02 07:49:26 davidg Exp $
+ * $Id: udp_var.h,v 1.3 1994/08/21 05:27:42 paul Exp $
*/
#ifndef _NETINET_UDP_VAR_H_
@@ -74,16 +74,22 @@ struct udpstat {
* Names for UDP sysctl objects
*/
#define UDPCTL_CHECKSUM 1 /* checksum UDP packets */
-#define UDPCTL_MAXID 2
+#define UDPCTL_STATS 2 /* statistics (read-only) */
+#define UDPCTL_MAXDGRAM 3 /* max datagram size */
+#define UDPCTL_RECVSPACE 4 /* default receive buffer space */
+#define UDPCTL_MAXID 5
#define UDPCTL_NAMES { \
{ 0, 0 }, \
{ "checksum", CTLTYPE_INT }, \
+ { "stats", CTLTYPE_STRUCT }, \
+ { "maxdgram", CTLTYPE_INT }, \
+ { "recvspace", CTLTYPE_INT }, \
}
#ifdef KERNEL
-struct inpcb udb;
-struct udpstat udpstat;
+extern struct inpcb udb;
+extern struct udpstat udpstat;
void udp_ctlinput __P((int, struct sockaddr *, struct ip *));
void udp_init __P((void));
OpenPOWER on IntegriCloud