if_mib.c (27d37320ec60b170837cf7cc19845eed55a4bd9b) if_mib.c (f6dfe47a145263dc5eb67fa4789925ab708709bc)
1/*-
2 * Copyright 1996 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

--- 63 unchanged lines hidden (view full) ---

72
73SYSCTL_V_INT(V_NET, vnet_net, _net_link_generic_system, IFMIB_IFCOUNT,
74 ifcount, CTLFLAG_RD, if_index, 0,
75 "Number of configured interfaces");
76
77static int
78sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XXX bad syntax! */
79{
1/*-
2 * Copyright 1996 Massachusetts Institute of Technology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
8 * copyright notice and this permission notice appear in all

--- 63 unchanged lines hidden (view full) ---

72
73SYSCTL_V_INT(V_NET, vnet_net, _net_link_generic_system, IFMIB_IFCOUNT,
74 ifcount, CTLFLAG_RD, if_index, 0,
75 "Number of configured interfaces");
76
77static int
78sysctl_ifdata(SYSCTL_HANDLER_ARGS) /* XXX bad syntax! */
79{
80 INIT_VNET_NET(curvnet);
81 int *name = (int *)arg1;
82 int error;
83 u_int namelen = arg2;
84 struct ifnet *ifp;
85 struct ifmibdata ifmd;
86 size_t dlen;
87 char *dbuf;
88

--- 86 unchanged lines hidden ---
80 int *name = (int *)arg1;
81 int error;
82 u_int namelen = arg2;
83 struct ifnet *ifp;
84 struct ifmibdata ifmd;
85 size_t dlen;
86 char *dbuf;
87

--- 86 unchanged lines hidden ---