diff options
| author | Garrett Wollman <wollman@FreeBSD.org> | 1997-02-24 20:32:10 +0000 |
|---|---|---|
| committer | Garrett Wollman <wollman@FreeBSD.org> | 1997-02-24 20:32:10 +0000 |
| commit | 8c9b80bcd6101a569abe9ead65c751860e70e9cf (patch) | |
| tree | 15b519dd1ebfe30e3516999e0973cc0153d808e1 | |
| parent | b110a8a2b39dd2b116775f20d05704de308e75bc (diff) | |
Notes
| -rw-r--r-- | sys/sys/mbuf.h | 9 | ||||
| -rw-r--r-- | sys/sys/sysctl.h | 22 |
2 files changed, 25 insertions, 6 deletions
diff --git a/sys/sys/mbuf.h b/sys/sys/mbuf.h index b380b3fca3bf..7911cd843856 100644 --- a/sys/sys/mbuf.h +++ b/sys/sys/mbuf.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)mbuf.h 8.5 (Berkeley) 2/19/95 - * $Id$ + * $Id: mbuf.h,v 1.20 1997/02/22 09:45:32 peter Exp $ */ #ifndef _SYS_MBUF_H_ @@ -374,6 +374,13 @@ struct mbstat { u_long m_wait; /* times waited for space */ u_long m_drain; /* times drained protocols for space */ u_short m_mtypes[256]; /* type specific mbuf allocations */ + u_long m_mcfail; /* times m_copym failed */ + u_long m_mpfail; /* times m_pullup failed */ + u_long m_msize; /* length of an mbuf */ + u_long m_mclbytes; /* length of an mbuf cluster */ + u_long m_minclsize; /* min length of data to allocate a cluster */ + u_long m_mlen; /* length of data in an mbuf */ + u_long m_mhlen; /* length of data in a header mbuf */ }; #ifdef KERNEL diff --git a/sys/sys/sysctl.h b/sys/sys/sysctl.h index 9d4cf27065c0..03d5d95df99c 100644 --- a/sys/sys/sysctl.h +++ b/sys/sys/sysctl.h @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)sysctl.h 8.1 (Berkeley) 6/2/93 - * $Id$ + * $Id: sysctl.h,v 1.51 1997/02/22 09:46:01 peter Exp $ */ #ifndef _SYS_SYSCTL_H_ @@ -226,8 +226,8 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS; #define KERN_MAXFILESPERPROC 27 /* int: max open files per proc */ #define KERN_MAXPROCPERUID 28 /* int: max processes per uid */ #define KERN_DUMPDEV 29 /* dev_t: device to dump on */ -#define KERN_SOMAXCONN 30 /* int: max connections in listen q */ -#define KERN_MAXSOCKBUF 31 /* int: max size of a socket buffer */ +#define KERN_IPC 30 /* node: anything related to IPC */ +#define KERN_DUMMY 31 /* unused */ #define KERN_PS_STRINGS 32 /* int: address of PS_STRINGS */ #define KERN_USRSTACK 33 /* int: address of USRSTACK */ #define KERN_MAXID 34 /* number of valid kern ids */ @@ -263,8 +263,8 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS; { "maxfilesperproc", CTLTYPE_INT }, \ { "maxprocperuid", CTLTYPE_INT }, \ { "dumpdev", CTLTYPE_STRUCT }, /* we lie; don't print as int */ \ - { "somaxconn", CTLTYPE_INT }, \ - { "maxsockbuf", CTLTYPE_INT }, \ + { "ipc", CTLTYPE_NODE }, \ + { "dummy", CTLTYPE_INT }, \ { "ps_strings", CTLTYPE_INT }, \ { "usrstack", CTLTYPE_INT }, \ } @@ -288,6 +288,18 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS; #define KERN_PROC_RUID 6 /* by real uid */ /* + * KERN_IPC identifiers + */ +#define KIPC_MAXSOCKBUF 1 /* int: max size of a socket buffer */ +#define KIPC_SOCKBUF_WASTE 2 /* int: wastage factor in sockbuf */ +#define KIPC_SOMAXCONN 3 /* int: max length of connection q */ +#define KIPC_MAX_LINKHDR 4 /* int: max length of link header */ +#define KIPC_MAX_PROTOHDR 5 /* int: max length of network header */ +#define KIPC_MAX_HDR 6 /* int: max total length of headers */ +#define KIPC_MAX_DATALEN 7 /* int: max length of data? */ +#define KIPC_MBSTAT 8 /* struct: mbuf usage statistics */ + +/* * CTL_HW identifiers */ #define HW_MACHINE 1 /* string: machine class */ |
