mirror of
https://github.com/opnsense/src.git
synced 2026-05-04 17:05:14 -04:00
Add new kern.ipc MIB branch constants and mbuf stats.
This commit is contained in:
parent
b110a8a2b3
commit
8c9b80bcd6
2 changed files with 25 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 }, \
|
||||
}
|
||||
|
|
@ -287,6 +287,18 @@ int sysctl_handle_opaque SYSCTL_HANDLER_ARGS;
|
|||
#define KERN_PROC_UID 5 /* by effective uid */
|
||||
#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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue