1/*
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 449 unchanged lines hidden (view full) ---
458
459 case LEAF_ifOutBroadcastPkts:
460 value->v.uint32 = 0;
461 break;
462
463 case LEAF_ifHCInOctets:
464 if (!(ifp->flags & MIBIF_HIGHSPEED))
465 goto again;
466 value->v.counter64 = ifp->hc_inoctets;
467 break;
468
469 case LEAF_ifHCInUcastPkts:
470 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
471 goto again;
472 value->v.counter64 = ifp->hc_ipackets - ifp->hc_imcasts;
473 break;
474
475 case LEAF_ifHCInMulticastPkts:
476 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
477 goto again;
478 value->v.counter64 = ifp->hc_imcasts;
479 break;
480
481 case LEAF_ifHCInBroadcastPkts:
482 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
483 goto again;
484 value->v.counter64 = 0;
485 break;
486
487 case LEAF_ifHCOutOctets:
488 if (!(ifp->flags & MIBIF_HIGHSPEED))
489 goto again;
490 value->v.counter64 = ifp->hc_outoctets;
491 break;
492
493 case LEAF_ifHCOutUcastPkts:
494 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
495 goto again;
496 value->v.counter64 = ifp->hc_opackets - ifp->hc_omcasts;
497 break;
498
499 case LEAF_ifHCOutMulticastPkts:
500 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
501 goto again;
502 value->v.counter64 = ifp->hc_omcasts;
503 break;
504
505 case LEAF_ifHCOutBroadcastPkts:
506 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
507 goto again;
508 value->v.counter64 = 0;
509 break;
510
--- 31 unchanged lines hidden ---
2 * Copyright (c) 2001-2003
3 * Fraunhofer Institute for Open Communication Systems (FhG Fokus).
4 * All rights reserved.
5 *
6 * Author: Harti Brandt <harti@freebsd.org>
7 *
8 * Redistribution and use in source and binary forms, with or without
--- 449 unchanged lines hidden (view full) ---
458
459 case LEAF_ifOutBroadcastPkts:
460 value->v.uint32 = 0;
461 break;
462
463 case LEAF_ifHCInOctets:
464 if (!(ifp->flags & MIBIF_HIGHSPEED))
465 goto again;
466 value->v.counter64 = ifp->hc_inoctets;
467 break;
468
469 case LEAF_ifHCInUcastPkts:
470 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
471 goto again;
472 value->v.counter64 = ifp->hc_ipackets - ifp->hc_imcasts;
473 break;
474
475 case LEAF_ifHCInMulticastPkts:
476 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
477 goto again;
478 value->v.counter64 = ifp->hc_imcasts;
479 break;
480
481 case LEAF_ifHCInBroadcastPkts:
482 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
483 goto again;
484 value->v.counter64 = 0;
485 break;
486
487 case LEAF_ifHCOutOctets:
488 if (!(ifp->flags & MIBIF_HIGHSPEED))
489 goto again;
490 value->v.counter64 = ifp->hc_outoctets;
491 break;
492
493 case LEAF_ifHCOutUcastPkts:
494 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
495 goto again;
496 value->v.counter64 = ifp->hc_opackets - ifp->hc_omcasts;
497 break;
498
499 case LEAF_ifHCOutMulticastPkts:
500 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
501 goto again;
502 value->v.counter64 = ifp->hc_omcasts;
503 break;
504
505 case LEAF_ifHCOutBroadcastPkts:
506 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED)))
507 goto again;
508 value->v.counter64 = 0;
509 break;
510
--- 31 unchanged lines hidden ---