- Aug 03, 2016
-
-
-
It does not make sense when the init is stored in flash and the board has no EEPROM. Otherwise, storage_init() calls mi2c_devprobe() if needed.
-
-
Grzegorz Daniluk authored
-
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
This function can be used to discard packets with the wrong destination IP. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Grzegorz Daniluk authored
-
Grzegorz Daniluk authored
-
Grzegorz Daniluk authored
-
- Jul 29, 2016
-
-
Cesar Prados authored
-
Adam Wujek authored
Add the mini SNMP SNMP responder to the WRPC. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Tread as error when 0 is returned from the set_value function. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Copy the pointer even it is not used now Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move wrpcSfpEntry and wrpcTemperatureEntry to be a part of limb not a twig. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add support for ASN_UNSIGNED to set_value and get_value. Also return 0 if ASN not supported. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Fix problems reported by smilint (smilint lib/WR-WRPC-MIB.txt) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add an object to restart PTP via SNMP (wrpcPtpConfigRestart). Also don't restart ppsi after SFP updates in the flash. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When snmpset is performed on not existing or read only OID, then response packet does not contain to-be-set value. Due to that, returning packet is shorter. It is necessary to recalculate sizes of the fields inside the response packet. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Pass returned value from twig functions (group and table) in the response. Now setting read only values return proper error (SNMP_ERR_READONLY). Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
SNMPv1 does not support counter64. Add tests for that too. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
spec_snmp_defconfig -- config for spec with SNMP responder enabled spec_snmp_set_verbose_defconfig -- config for spec with enabled SNMP (SNMP responder, SETs, verbose), fake temperatures, SDB storage Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
"sfp detect" was incorporated into "sfp match". Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
We don't use these functions. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
We revert this commit, since we decided to support objects only from our own MIB. So we don't need this this specific time format. So, revert the commit: util: add the perverse SNMP 'string' time format Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Restart ppsi after updating deltas or alpha. Update can be in memory or in database, restart ppsi in both cases. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Tests use bats (https://github.com/sstephenson/bats ) for testing. Clone bat's repo, checkout commit 03608115 To test invoke "make TARGET_IP=x.x.x.x" Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add wrpcSfpTable, which dumps the SFPs databse Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
When returning error make sure there is an ASN_NULL at the end of SNMP packet. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Requests produced by net-snmp's snmpget and snmpgetnext usually contains 4 byte request ID, but sometimes it is only 3 bytes. When request ID is below 2^24 sometimes it is send as 3 bytes, sometimes as 4 byte value. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Split the OIDs into limb and twig parts. Twig part can be interpreted as a groups or a table. For each limb (group or table) there is an array with twigs (OIDs within group or table). When the limb part is matched, then the group or table function is called for the twigs part. Additionally: --Add the table with temperatures (wrpcTemperatureTable). Any number of sensors is supported. --Add wrpcTemperatureTable to the MIB --print_oid_verbose can now print parts of OIDs Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Write to the flash, if failed return corresponding error. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Possible to read/write: -- wrpcPtpConfigApply -- wrpcPtpConfigDeltaTx -- wrpcPtpConfigDeltaRx -- wrpcPtpConfigAlpha -- wrpcPtpConfigSfpPn setting a value writeToMemoryCurrentSfp to the wrpcPtpConfigApply will update sfp info in memory. For now it is necessary to restart ptp to reload new sfp information. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add: -- wrpcPortLinkStatus -- wrpcPortSfpPn -- wrpcPortSfpInDB -- wrpcPortInternalTX -- wrpcPortInternalRX Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Add: --wrpcPtpServoStateN(5) --wrpcPtpClockOffsetPsHR(8) --wrpcPtpSkew(9) --wrpcPtpRTT(10) --wrpcPtpServoUpdates(12) --wrpcPtpServoUpdateTime(13) --wrpcPtpDeltaTxM(14) --wrpcPtpDeltaRxM(15) --wrpcPtpDeltaTxS(16) --wrpcPtpDeltaRxS(17) --wrpcPtpServoStateErrCnt(18) --wrpcPtpClockOffsetErrCnt(19) --wrpcPtpRTTErrCnt(20) --wrpcPtpAsymmetry(22) --wrpcPtpTX(23) --wrpcPtpRX(24) --wrpcPtpAlpha(26) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add: -- wrpcSpllMode -- wrpcSpllIrqCnt -- wrpcSpllSeqState -- wrpcSpllAlignState -- wrpcSpllHlock -- wrpcSpllMlock -- wrpcSpllHY -- wrpcSpllMY -- wrpcSpllDelCnt Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add: -- wrpcDateTAI -- wrpcDateTAIString -- wrpcSystemUptime Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-