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 = MIBIF_PRIV(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 = MIBIF_PRIV(ifp)->hc_ipackets - 473 MIBIF_PRIV(ifp)->hc_imcasts; |
474 break; 475 476 case LEAF_ifHCInMulticastPkts: 477 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED))) 478 goto again; |
479 value->v.counter64 = MIBIF_PRIV(ifp)->hc_imcasts; |
480 break; 481 482 case LEAF_ifHCInBroadcastPkts: 483 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED))) 484 goto again; 485 value->v.counter64 = 0; 486 break; 487 488 case LEAF_ifHCOutOctets: 489 if (!(ifp->flags & MIBIF_HIGHSPEED)) 490 goto again; |
491 value->v.counter64 = MIBIF_PRIV(ifp)->hc_outoctets; |
492 break; 493 494 case LEAF_ifHCOutUcastPkts: 495 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED))) 496 goto again; |
497 value->v.counter64 = MIBIF_PRIV(ifp)->hc_opackets - 498 MIBIF_PRIV(ifp)->hc_omcasts; |
499 break; 500 501 case LEAF_ifHCOutMulticastPkts: 502 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED))) 503 goto again; |
504 value->v.counter64 = MIBIF_PRIV(ifp)->hc_omcasts; |
505 break; 506 507 case LEAF_ifHCOutBroadcastPkts: 508 if (!(ifp->flags & (MIBIF_VERYHIGHSPEED|MIBIF_HIGHSPEED))) 509 goto again; 510 value->v.counter64 = 0; 511 break; 512 --- 31 unchanged lines hidden --- |