src/MIBS/Routes.php
public function routeProto($translate = false) {
        $s = $this->getSNMP()->subOidWalkLong(self::OID_ROUTE_ENTRY_PROTO, 12, 24);

        if (!$translate)
            return $s;

        return $this->getSNMP()->translate($s, self::$ROUTE_ENTRY_PROTOS);
    }
public function routeProto($translate = false) {
        $s = $this->getSNMP()->subOidWalkLong(self::OID_ROUTE_ENTRY_PROTO, 12, 24);

        if (!$translate)
            return $s;

        return $this->getSNMP()->translate($s, self::$ROUTE_ENTRY_PROTOS);
    }
public function routeProto ( $ translate = false ) { $ s = $ this -> getSNMP ( ) -> subOidWalkLong ( self :: OID_ROUTE_ENTRY_PROTO , 12 , 24 ) ; if ( ! $ translate ) return $ s ; return $ this -> getSNMP ( ) -> translate ( $ s , self :: $ ROUTE_ENTRY_PROTOS ) ; }
Returns the route protocol.

> "The routing mechanism via which this route was learned. Inclusion
> of values for gateway rout-ing protocols is not intended to imply
> that hosts should support those protocols."

@param bool $translate If true, use the `$ROUTE_ENTRY_PROTOS` array to return textual representation
@return array The route protocols (see `self::$ROUTE_ENTRY_PROTOS`)
Returns the route protocol .