commit - aeb312dc188898e755568a71af91941fe1bcd5c8
commit + 172f4d223a6ded46ac9c24c22b7e6f6f98a96b19
blob - 2a2eb15759e20dc315562c81875d4dd287c676ee
blob + 5ef223c3c7a3b499f4f66d719088edd71904722e
--- commands.c
+++ commands.c
static struct stt {
char *name;
char *help;
- void (*handler) ();
+ void (*handler)(void);
} stts[] = {
{ "ip", "Internet Protocol", ip_stats },
{ "ah", "Authentication Header", ah_stats },
blob - bd15bdba66c88945012932964c1f71fd42544935
blob + 594d010b598e5b6749b95772ef00fcadba98f299
--- stats.c
+++ stats.c
* Dump TCP statistics structure.
*/
void
-tcp_stats()
+tcp_stats(void)
{
struct tcpstat tcpstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_TCP, TCPCTL_STATS };
* Dump UDP statistics structure.
*/
void
-udp_stats()
+udp_stats(void)
{
struct udpstat udpstat;
u_long delivered;
* Dump IP statistics structure.
*/
void
-ip_stats()
+ip_stats(void)
{
struct ipstat ipstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_IP, IPCTL_STATS };
* Dump ICMP statistics.
*/
void
-icmp_stats()
+icmp_stats(void)
{
struct icmpstat icmpstat;
int i, first;
* Dump IGMP statistics structure.
*/
void
-igmp_stats()
+igmp_stats(void)
{
struct igmpstat igmpstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_IGMP, IGMPCTL_STATS };
* Dump AH statistics structure.
*/
void
-ah_stats()
+ah_stats(void)
{
struct ahstat ahstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_AH, AHCTL_STATS };
* Dump ESP statistics structure.
*/
void
-esp_stats()
+esp_stats(void)
{
struct espstat espstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_ESP, ESPCTL_STATS };
* Dump IP-in-IP statistics structure.
*/
void
-ipip_stats()
+ipip_stats(void)
{
struct ipipstat ipipstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_IPIP, IPIPCTL_STATS };
* Dump CARP statistics structure.
*/
void
-carp_stats()
+carp_stats(void)
{
struct carpstats carpstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_CARP, CARPCTL_STATS };
* Dump pfsync statistics structure.
*/
void
-pfsync_stats()
+pfsync_stats(void)
{
struct pfsyncstats pfsyncstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_PFSYNC, PFSYNCCTL_STATS };
* Dump IPCOMP statistics structure.
*/
void
-ipcomp_stats()
+ipcomp_stats(void)
{
struct ipcompstat ipcompstat;
int mib[] = { CTL_NET, AF_INET, IPPROTO_IPCOMP, IPCOMPCTL_STATS };
* Print routing statistics
*/
void
-rt_stats()
+rt_stats(void)
{
struct rtstat rtstat;
int mib[] = { CTL_NET, PF_ROUTE, 0, 0, NET_RT_STATS, 0 };