- Jul 29, 2016
-
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Convert function fill_int32_saturate to take pointer to the data and asn. The interpretation of pointer in struct snmp_oid is done in fill_int32_saturate_pp. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now, struct snmp_oid contais the pointer (p) which is up to the callback function to know how to interpret the pointer. It is easier to handle **data and *data in declaration of the oid_array. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
From now function adding the data to snmp packet (fill_asn), just takes pointer to the data and asn type. Interpretation of a pointer in struct snmp_oid is now up to the callback function. It makes easier to handle different data types. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
objects: --oid_wrpcNicTX --oid_wrpcNicRX Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
add: --oid_wrsPtpServoState --oid_wrsPtpServoStateN --oid_wrsPtpClockOffsetPsHR --oid_wrsPtpSkew --oid_wrpcPtpRTTHR --oid_wrpcPtpDeltaMs --oid_wrpcPtpCurSetpoint Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Used to convert 64bit to 32bit. It is better to saturate 32bit during conversion than just passing 32 LSB bits. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
snmp_get_next works only when requesting oid is valid. Otherwise it fails to find next entry. Due to the above the snmpwalk works only when the walk is started from the existing oid. Since snmp walk scans only oids in the current branch, there was a need to create a special oid .1.3. $ snmpwalk -On -c public -v 1 192.168.1.20 1.3 .1.3.6.1.2.1.1.5.0 = STRING: "wrc" .1.3.6.1.2.1.25.1.1.0 = Timeticks: (792773) 2:12:07.73 .1.3.6.1.2.1.25.1.2.0 = Hex-STRING: 07 B2 00 01 05 00 00 00 .1.3.6.1.4.1.96.100.7.5.1.15.1 = Counter32: 445 .1.3.6.1.4.1.96.100.7.5.1.16.1 = INTEGER: 10 .1.3.6.1.4.1.96.100.7.5.1.17.1 = INTEGER: 174810 .1.3.6.1.4.1.96.100.7.5.1.18.1 = INTEGER: 191115 .1.3.6.1.4.1.96.100.7.5.1.19.1 = INTEGER: 157655 Timeout: No Response from 192.168.1.20 NOTE: Timeout message appears becasue there is no responce from node when wrong packet is sent. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Move SNMP just after syslog. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--add defines of ASN types --add 5 object from wrsPtpTable Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
The "community" string is public. We have tree items only: the host name, the date and uptime. The code is designed to make it simple any addition. But we only have snmpget support, not snmpwak (i.e. "get next" query). This is run on an host build (CONFIG_HOST_PROCESS) where the time and date are not related to the real world: # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.1.5.0 SNMPv2-MIB::sysName.0 = STRING: wrc # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0 HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:52:34.0 # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.2.0 HOST-RESOURCES-MIB::hrSystemDate.0 = STRING: 1970-0-1,19:53:2.0 # snmpget -v 1 -c public 192.168.16.1 .1.3.6.1.2.1.25.1.1.0 [...] hrSystemUptime.0 = Timeticks: (94193300) 10 days, 21:38:53.00 Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
/var/lib/mibs/ietf/SNMPv2-TC DateAndTime ::= TEXTUAL-CONVENTION DISPLAY-HINT "2d-1d-1d,1d:1d:1d.1d,1a1d:1d" STATUS current DESCRIPTION "A date-time specification. field octets contents range ----- ------ -------- ----- 1 1-2 year* 0..65536 2 3 month 1..12 3 4 day 1..31 4 5 hour 0..23 5 6 minutes 0..59 6 7 seconds 0..60 (use 60 for leap-second) 7 8 deci-seconds 0..9 8 9 direction from UTC '+' / '-' 9 10 hours from UTC* 0..13 10 11 minutes from UTC 0..59 * Notes: - the value of year is in network-byte order - daylight saving time in New Zealand is +13 For example, Tuesday May 26, 1992 at 1:30:15 PM EDT would be displayed as: 1992-5-26,13:30:15.0,-4:0 Note that if only local time is known, then timezone information (fields 8-10) is not present." SYNTAX OCTET STRING (SIZE (8 | 11)) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Adam Wujek authored
Improve sfp handling Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 10, 2016
-
-
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>
-
Adam Wujek authored
To update an entry when SFP database is in the eeprom, particular entry is searched then simply updated. On the other hand, when SFP database is in the flash simple update is not possible. First old database is copied to the memory, then updated in memory. After, the erase of the entire flash block is performed. At the end updated information is written into the flash. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
These stats will be used by SNMP. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Use git config --get-all user.name as an build author, if not available use user@hostname. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Additionally use type checking Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It was neither used nor successfully updated (there was no erase before write). To keep code backward compatible sfp's database is shifted by sizeof(sfpcount) from the beginnig of the partition. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
By making struct wr_minic non static it is possible for mini SNMP to get RX/TX counters' values directly from the memory instead of writing a separate function that will call minic_get_stats. Avoiding extra function saves about 100 bytes. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
It happened that sdbfs_open_id returned error after 2 consecutive adds to the SFP database using storage_get_sfp function (behaviour not seen when using shell commands). It looks like the problem was that reads were started before writes were finished. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
Return 0 when successful, otherwise < 0. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
Adam Wujek authored
--Don't use "static char pn" top store sfp's pn. --Print error when unable to read SFP 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
EE_BASE_INIT did not include t24p and sfpcount. Due to that init script was overwriten by adding the 4th SFP. Limit number of SFP in the database to 3. Keep init script's starting address unchanged for backward compatibility. SDB is not affected. Use maximum 4 SFPs in the database when SDB is used. Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- Jun 06, 2016
-
-
Adam Wujek authored
For other parties using the stats interface with the softpll we need the minimal file that can be easily used in other projects (like SNMP on the wr-switch). Move to the softpll_export.h: --struct spll_stats --defines of seq_state from softpll_ng.c (SEQ_* and AUX_*) --defines of align_state from spll_external.c (ALIGN_*) --defines of mode from softpll_ng.h (SPLL_MODE_*) Signed-off-by:
Adam Wujek <adam.wujek@cern.ch>
-
- May 20, 2016
-
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
"-I." is there, so instead of "../lib/ipv4.h" prefer <lib/ipv4.h>. I thought moving ipv4.h to include, but then the name is possibly ambiguous with other files in the -I search path. Thus I wanted to move it from lib/ipv4.h to include/wrc-ipv4.h but that would require several files to be changed. Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-
Alessandro Rubini authored
(one is just a comment update: most of that stanza was not true any more) Signed-off-by:
Alessandro Rubini <rubini@gnudd.com>
-