inet6.c (5e0517186d418529323a5eb007287145e4fd3b50) | inet6.c (f964d60dd3287932055bfdaadf3cba4a7ff2d648) |
---|---|
1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ 2/* 3 * Copyright (c) 1983, 1988, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 326 unchanged lines hidden (view full) --- 335 "#254", 336 "#255", 337}; 338 339/* 340 * Dump IP6 statistics structure. 341 */ 342void | 1/* BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp */ 2/* 3 * Copyright (c) 1983, 1988, 1993 4 * The Regents of the University of California. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 326 unchanged lines hidden (view full) --- 335 "#254", 336 "#255", 337}; 338 339/* 340 * Dump IP6 statistics structure. 341 */ 342void |
343ip6_stats(u_long off, char *name) | 343ip6_stats(u_long off __unused, char *name, int af __unused) |
344{ 345 struct ip6stat ip6stat; 346 int first, i; 347 348 if (off == 0) 349 return; 350 351 if (kread(off, (char *)&ip6stat, sizeof (ip6stat))) --- 450 unchanged lines hidden (view full) --- 802 "#254", 803 "#255", 804}; 805 806/* 807 * Dump ICMP6 statistics. 808 */ 809void | 344{ 345 struct ip6stat ip6stat; 346 int first, i; 347 348 if (off == 0) 349 return; 350 351 if (kread(off, (char *)&ip6stat, sizeof (ip6stat))) --- 450 unchanged lines hidden (view full) --- 802 "#254", 803 "#255", 804}; 805 806/* 807 * Dump ICMP6 statistics. 808 */ 809void |
810icmp6_stats(u_long off, char *name) | 810icmp6_stats(u_long off __unused, char *name, int af __unused) |
811{ 812 struct icmp6stat icmp6stat; 813 register int i, first; 814 815 if (off == 0) 816 return; 817 kread(off, (char *)&icmp6stat, sizeof (icmp6stat)); 818 printf("%s:\n", name); --- 121 unchanged lines hidden (view full) --- 940 close(s); 941#undef p 942} 943 944/* 945 * Dump PIM statistics structure. 946 */ 947void | 811{ 812 struct icmp6stat icmp6stat; 813 register int i, first; 814 815 if (off == 0) 816 return; 817 kread(off, (char *)&icmp6stat, sizeof (icmp6stat)); 818 printf("%s:\n", name); --- 121 unchanged lines hidden (view full) --- 940 close(s); 941#undef p 942} 943 944/* 945 * Dump PIM statistics structure. 946 */ 947void |
948pim6_stats(u_long off, char *name) | 948pim6_stats(u_long off __unused, char *name, int af __unused) |
949{ 950 struct pim6stat pim6stat; 951 952 if (off == 0) 953 return; 954 kread(off, (char *)&pim6stat, sizeof(pim6stat)); 955 printf("%s:\n", name); 956 --- 8 unchanged lines hidden (view full) --- 965 p(pim6s_snd_registers, "\t%llu register%s sent\n"); 966#undef p 967} 968 969/* 970 * Dump raw ip6 statistics structure. 971 */ 972void | 949{ 950 struct pim6stat pim6stat; 951 952 if (off == 0) 953 return; 954 kread(off, (char *)&pim6stat, sizeof(pim6stat)); 955 printf("%s:\n", name); 956 --- 8 unchanged lines hidden (view full) --- 965 p(pim6s_snd_registers, "\t%llu register%s sent\n"); 966#undef p 967} 968 969/* 970 * Dump raw ip6 statistics structure. 971 */ 972void |
973rip6_stats(u_long off, char *name) | 973rip6_stats(u_long off __unused, char *name, int af __unused) |
974{ 975 struct rip6stat rip6stat; 976 u_quad_t delivered; 977 int mib[4]; 978 size_t l; 979 980 mib[0] = CTL_NET; 981 mib[1] = PF_INET6; --- 109 unchanged lines hidden --- | 974{ 975 struct rip6stat rip6stat; 976 u_quad_t delivered; 977 int mib[4]; 978 size_t l; 979 980 mib[0] = CTL_NET; 981 mib[1] = PF_INET6; --- 109 unchanged lines hidden --- |