mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
spelling: repetitions
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
53394bca0c
commit
186fe346ad
4 changed files with 7 additions and 4 deletions
|
@ -4661,7 +4661,8 @@ export {
|
|||
type SNMP::BulkPDU: record {
|
||||
request_id: int;
|
||||
non_repeaters: count;
|
||||
max_repititions: count;
|
||||
max_repititions: count &deprecated="Remove in v6.1. Use max_repetitions instead";
|
||||
max_repetitions: count;
|
||||
bindings: SNMP::Bindings;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -195,7 +195,9 @@ zeek::RecordValPtr build_bulk_pdu(const GetBulkRequestPDU* pdu)
|
|||
rv->Assign(0, asn1_integer_to_val(pdu->request_id(), zeek::TYPE_INT));
|
||||
rv->Assign(1, asn1_integer_to_val(pdu->non_repeaters(), zeek::TYPE_COUNT));
|
||||
rv->Assign(2, asn1_integer_to_val(pdu->max_repetitions(), zeek::TYPE_COUNT));
|
||||
rv->Assign(3, build_bindings(pdu->var_bindings()));
|
||||
// Remove in v6.1: Misspelled repititions/repetitions backwards compat
|
||||
rv->Assign(3, asn1_integer_to_val(pdu->max_repetitions(), zeek::TYPE_COUNT));
|
||||
rv->Assign(4, build_bindings(pdu->var_bindings()));
|
||||
return rv;
|
||||
}
|
||||
%}
|
||||
|
|
|
@ -5,7 +5,7 @@ snmp_get_bulk_request
|
|||
[community=]
|
||||
request_id: 1817072941
|
||||
non_repeaters: 0
|
||||
max_repititions: 0
|
||||
max_repetitions: 0
|
||||
oid: 1.3.6.1.2.1.1.5.0
|
||||
value (tag=0x05): <unspecified>
|
||||
snmp_response
|
||||
|
|
|
@ -87,7 +87,7 @@ function print_snmp_bulk_pdu(pdu: SNMP::BulkPDU)
|
|||
{
|
||||
print fmt(" request_id: %s", pdu$request_id);
|
||||
print fmt(" non_repeaters: %s", pdu$non_repeaters);
|
||||
print fmt(" max_repititions: %s", pdu$max_repititions);
|
||||
print fmt(" max_repetitions: %s", pdu$max_repetitions);
|
||||
print_snmp_bindings(pdu$bindings);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue