sysctl.c (1951) | sysctl.c (6284) |
---|---|
1/* 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 34#ifndef lint 35static char copyright[] = 36"@(#) Copyright (c) 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint | 1/* 2 * Copyright (c) 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 24 unchanged lines hidden (view full) --- 33 34#ifndef lint 35static char copyright[] = 36"@(#) Copyright (c) 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint |
41static char sccsid[] = "@(#)sysctl.c 8.1 (Berkeley) 6/6/93"; | 41/*static char sccsid[] = "From: @(#)sysctl.c 8.1 (Berkeley) 6/6/93"; */ 42static const char rcsid[] = 43 "$Id$"; |
42#endif /* not lint */ 43 44#include <sys/param.h> 45#include <sys/gmon.h> 46#include <sys/stat.h> 47#include <sys/sysctl.h> 48#include <sys/socket.h> 49#include <vm/vm_param.h> 50#include <machine/cpu.h> 51 52#include <netinet/in.h> 53#include <netinet/in_systm.h> 54#include <netinet/ip.h> 55#include <netinet/ip_icmp.h> 56#include <netinet/icmp_var.h> 57#include <netinet/ip_var.h> 58#include <netinet/udp.h> 59#include <netinet/udp_var.h> | 44#endif /* not lint */ 45 46#include <sys/param.h> 47#include <sys/gmon.h> 48#include <sys/stat.h> 49#include <sys/sysctl.h> 50#include <sys/socket.h> 51#include <vm/vm_param.h> 52#include <machine/cpu.h> 53 54#include <netinet/in.h> 55#include <netinet/in_systm.h> 56#include <netinet/ip.h> 57#include <netinet/ip_icmp.h> 58#include <netinet/icmp_var.h> 59#include <netinet/ip_var.h> 60#include <netinet/udp.h> 61#include <netinet/udp_var.h> |
62#include <netinet/tcp.h> 63#include <netinet/tcp_seq.h> 64#include <netinet/tcp_timer.h> 65#include <netinet/tcp_var.h> |
|
60 61#include <errno.h> 62#include <stdio.h> 63#include <stdlib.h> 64#include <string.h> 65 66struct ctlname topname[] = CTL_NAMES; 67struct ctlname kernname[] = CTL_KERN_NAMES; --- 399 unchanged lines hidden (view full) --- 467 loc += size; 468 } 469} 470 471struct ctlname inetname[] = CTL_IPPROTO_NAMES; 472struct ctlname ipname[] = IPCTL_NAMES; 473struct ctlname icmpname[] = ICMPCTL_NAMES; 474struct ctlname udpname[] = UDPCTL_NAMES; | 66 67#include <errno.h> 68#include <stdio.h> 69#include <stdlib.h> 70#include <string.h> 71 72struct ctlname topname[] = CTL_NAMES; 73struct ctlname kernname[] = CTL_KERN_NAMES; --- 399 unchanged lines hidden (view full) --- 473 loc += size; 474 } 475} 476 477struct ctlname inetname[] = CTL_IPPROTO_NAMES; 478struct ctlname ipname[] = IPCTL_NAMES; 479struct ctlname icmpname[] = ICMPCTL_NAMES; 480struct ctlname udpname[] = UDPCTL_NAMES; |
481struct ctlname tcpname[] = TCPCTL_NAMES; |
|
475struct list inetlist = { inetname, IPPROTO_MAXID }; 476struct list inetvars[] = { 477 { ipname, IPCTL_MAXID }, /* ip */ 478 { icmpname, ICMPCTL_MAXID }, /* icmp */ 479 { 0, 0 }, /* igmp */ 480 { 0, 0 }, /* ggmp */ 481 { 0, 0 }, 482 { 0, 0 }, | 482struct list inetlist = { inetname, IPPROTO_MAXID }; 483struct list inetvars[] = { 484 { ipname, IPCTL_MAXID }, /* ip */ 485 { icmpname, ICMPCTL_MAXID }, /* icmp */ 486 { 0, 0 }, /* igmp */ 487 { 0, 0 }, /* ggmp */ 488 { 0, 0 }, 489 { 0, 0 }, |
483 { 0, 0 }, /* tcp */ | 490 { tcpname, TCPCTL_MAXID }, /* tcp */ |
484 { 0, 0 }, 485 { 0, 0 }, /* egp */ 486 { 0, 0 }, 487 { 0, 0 }, 488 { 0, 0 }, 489 { 0, 0 }, /* pup */ 490 { 0, 0 }, 491 { 0, 0 }, --- 81 unchanged lines hidden --- | 491 { 0, 0 }, 492 { 0, 0 }, /* egp */ 493 { 0, 0 }, 494 { 0, 0 }, 495 { 0, 0 }, 496 { 0, 0 }, /* pup */ 497 { 0, 0 }, 498 { 0, 0 }, --- 81 unchanged lines hidden --- |