Merge remote-tracking branch 'jsoref/spelling-pac'

* jsoref/spelling-pac:
  spelling: variation
  spelling: value
  spelling: session
  spelling: repetitions
  spelling: params
  spelling: further
  spelling: confirm
  spelling: channel
  spelling: announcement
This commit is contained in:
Tim Wojtulewicz 2022-11-09 18:17:55 -07:00
commit cdae33fad8
9 changed files with 15 additions and 15 deletions

View file

@ -1 +1 @@
5.2.0-dev.220 5.2.0-dev.230

View file

@ -463,10 +463,10 @@ refine flow DHCP_Flow += {
function process_par_req_list_option(v: OptionValue): bool function process_par_req_list_option(v: OptionValue): bool
%{ %{
auto params = zeek::make_intrusive<zeek::VectorVal>(zeek::id::index_vec); auto params = zeek::make_intrusive<zeek::VectorVal>(zeek::id::index_vec);
int num_parms = ${v.par_req_list}->size(); int num_params = ${v.par_req_list}->size();
vector<uint8>* plist = ${v.par_req_list}; vector<uint8>* plist = ${v.par_req_list};
for ( int i = 0; i < num_parms; ++i ) for ( int i = 0; i < num_params; ++i )
{ {
uint8 param = (*plist)[i]; uint8 param = (*plist)[i];
params->Assign(i, zeek::val_mgr->Count(param)); params->Assign(i, zeek::val_mgr->Count(param));

View file

@ -317,7 +317,7 @@ type Request_Data_Object(function_code: uint8, qualifier_field: uint8, object_ty
0x7801 -> challenge: AuthChallenge(prefix.prefix_value); 0x7801 -> challenge: AuthChallenge(prefix.prefix_value);
0x7802 -> reply: AuthReply(prefix.prefix_value); 0x7802 -> reply: AuthReply(prefix.prefix_value);
0x7803 -> aggrRequest: AuthAggrRequest(prefix.prefix_value); 0x7803 -> aggrRequest: AuthAggrRequest(prefix.prefix_value);
0x7804 -> seesionKeyRequest: uint16; 0x7804 -> sessionKeyRequest: uint16;
0x7805 -> status: AuthSessionKeyStatus(prefix.prefix_value); 0x7805 -> status: AuthSessionKeyStatus(prefix.prefix_value);
0x7806 -> keyChange: AuthSessionKeyChange(prefix.prefix_value); 0x7806 -> keyChange: AuthSessionKeyChange(prefix.prefix_value);
0x7807 -> error: AuthError(prefix.prefix_value); 0x7807 -> error: AuthError(prefix.prefix_value);
@ -598,7 +598,7 @@ type Response_Data_Object(function_code: uint8, qualifier_field: uint8, object_t
0x7801 -> challenge: AuthChallenge(prefix.prefix_value); 0x7801 -> challenge: AuthChallenge(prefix.prefix_value);
0x7802 -> reply: AuthReply(prefix.prefix_value); 0x7802 -> reply: AuthReply(prefix.prefix_value);
0x7803 -> aggrRequest: AuthAggrRequest(prefix.prefix_value); 0x7803 -> aggrRequest: AuthAggrRequest(prefix.prefix_value);
0x7804 -> seesionKeyRequest: uint16; 0x7804 -> sessionKeyRequest: uint16;
0x7805 -> status: AuthSessionKeyStatus(prefix.prefix_value); 0x7805 -> status: AuthSessionKeyStatus(prefix.prefix_value);
0x7806 -> keyChange: AuthSessionKeyChange(prefix.prefix_value); 0x7806 -> keyChange: AuthSessionKeyChange(prefix.prefix_value);
0x7807 -> error: AuthError(prefix.prefix_value); 0x7807 -> error: AuthError(prefix.prefix_value);
@ -1295,7 +1295,7 @@ type File_Spec_Str = record {
type Dev_Store = record { type Dev_Store = record {
overflow: uint8; overflow: uint8;
obj_group: uint8; obj_group: uint8;
variatiion: uint8; variation: uint8;
} &byteorder = littleendian; } &byteorder = littleendian;
# device profile g82 # device profile g82
@ -1386,7 +1386,7 @@ type StatusEle = record {
# g101v3 # g101v3
type BCD_Large = record { type BCD_Large = record {
value_low: uint32; value_low: uint32;
vlaue_high: uint32; value_high: uint32;
} &byteorder = littleendian; } &byteorder = littleendian;
# authentication g120 # authentication g120

View file

@ -20,7 +20,7 @@ type DNP3_Request = record {
addin_header: Header_Block; ## added by Hui Lin in Zeek code addin_header: Header_Block; ## added by Hui Lin in Zeek code
app_header: DNP3_Application_Request_Header; app_header: DNP3_Application_Request_Header;
data: case ( app_header.function_code ) of { data: case ( app_header.function_code ) of {
CONFIRM -> none_coonfirm: empty; CONFIRM -> none_confirm: empty;
READ -> read_requests: Request_Objects(app_header.function_code)[]; READ -> read_requests: Request_Objects(app_header.function_code)[];
WRITE -> write_requests: Request_Objects(app_header.function_code)[]; WRITE -> write_requests: Request_Objects(app_header.function_code)[];
SELECT -> select_requests: Request_Objects(app_header.function_code)[]; SELECT -> select_requests: Request_Objects(app_header.function_code)[];

View file

@ -1,6 +1,6 @@
enum SMB_MailSlot_opcode { enum SMB_MailSlot_opcode {
HOST_ANNOUNCEMENT = 1, HOST_ANNOUNCEMENT = 1,
ANNOUCEMENT_REQUEST = 2, ANNOUNCEMENT_REQUEST = 2,
REQUEST_ELECTION = 8, REQUEST_ELECTION = 8,
GET_BACKUP_LIST_REQUEST = 9, GET_BACKUP_LIST_REQUEST = 9,
GET_BACKUP_LIST_RESPONSE = 10, GET_BACKUP_LIST_RESPONSE = 10,
@ -20,7 +20,7 @@ type SMB_MailSlot_message( unicode: bool, byte_count: uint16 ) = record {
type SMB_MailSlot_command(unicode: bool, code: uint8, byte_count: uint16 ) = case code of { type SMB_MailSlot_command(unicode: bool, code: uint8, byte_count: uint16 ) = case code of {
HOST_ANNOUNCEMENT -> announce : SMB_MailSlot_host_announcement(unicode); HOST_ANNOUNCEMENT -> announce : SMB_MailSlot_host_announcement(unicode);
ANNOUCEMENT_REQUEST -> announce_req : SMB_MailSlot_announcement_request(unicode); ANNOUNCEMENT_REQUEST -> announce_req : SMB_MailSlot_announcement_request(unicode);
REQUEST_ELECTION -> election_req : SMB_MailSlot_request_election(unicode); REQUEST_ELECTION -> election_req : SMB_MailSlot_request_election(unicode);
GET_BACKUP_LIST_REQUEST -> get_backup_req : SMB_MailSlot_get_backup_list_request(unicode); GET_BACKUP_LIST_REQUEST -> get_backup_req : SMB_MailSlot_get_backup_list_request(unicode);
GET_BACKUP_LIST_RESPONSE -> get_backup_resp : SMB_MailSlot_get_backup_list_response(unicode); GET_BACKUP_LIST_RESPONSE -> get_backup_resp : SMB_MailSlot_get_backup_list_response(unicode);

View file

@ -135,7 +135,7 @@ type SMB_Message(header: SMB_Header, offset: uint16, command: uint8, is_orig: bo
}; };
type SMB_andx_command(header: SMB_Header, is_orig: bool, offset: uint16, command: uint8) = case command of { type SMB_andx_command(header: SMB_Header, is_orig: bool, offset: uint16, command: uint8) = case command of {
0xff -> no_futher_commands : empty; 0xff -> no_further_commands : empty;
default -> message : SMB_Message(header, offset, command, is_orig); default -> message : SMB_Message(header, offset, command, is_orig);
}; };

View file

@ -2,7 +2,7 @@ enum smb3_capabilities {
SMB2_GLOBAL_CAP_DFS = 0x00, SMB2_GLOBAL_CAP_DFS = 0x00,
SMB2_GLOBAL_CAP_LEASING = 0x02, SMB2_GLOBAL_CAP_LEASING = 0x02,
SMB2_GLOBAL_CAP_LARGE_MTU = 0x04, SMB2_GLOBAL_CAP_LARGE_MTU = 0x04,
SMB2_GLOBAL_CAP_MULTI_CHANNE = 0x08, SMB2_GLOBAL_CAP_MULTI_CHANNEL = 0x08,
SMB2_GLOBAL_CAP_PERSISTENT_HANDLES = 0x10, SMB2_GLOBAL_CAP_PERSISTENT_HANDLES = 0x10,
SMB2_GLOBAL_CAP_DIRECTORY_LEASING = 0x20, SMB2_GLOBAL_CAP_DIRECTORY_LEASING = 0x20,
SMB2_GLOBAL_CAP_ENCRYPTION = 0x40, SMB2_GLOBAL_CAP_ENCRYPTION = 0x40,

View file

@ -194,7 +194,7 @@ zeek::RecordValPtr build_bulk_pdu(const GetBulkRequestPDU* pdu)
auto rv = zeek::make_intrusive<zeek::RecordVal>(zeek::BifType::Record::SNMP::BulkPDU); auto rv = zeek::make_intrusive<zeek::RecordVal>(zeek::BifType::Record::SNMP::BulkPDU);
rv->Assign(0, asn1_integer_to_val(pdu->request_id(), zeek::TYPE_INT)); 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(1, asn1_integer_to_val(pdu->non_repeaters(), zeek::TYPE_COUNT));
rv->Assign(2, asn1_integer_to_val(pdu->max_repititions(), zeek::TYPE_COUNT)); rv->Assign(2, asn1_integer_to_val(pdu->max_repetitions(), zeek::TYPE_COUNT));
rv->Assign(3, build_bindings(pdu->var_bindings())); rv->Assign(3, build_bindings(pdu->var_bindings()));
return rv; return rv;
} }

View file

@ -153,7 +153,7 @@ type TrapPDU(header: Header) = record {
type GetBulkRequestPDU(header: Header) = record { type GetBulkRequestPDU(header: Header) = record {
request_id: ASN1Integer; request_id: ASN1Integer;
non_repeaters: ASN1Integer; non_repeaters: ASN1Integer;
max_repititions: ASN1Integer; max_repetitions: ASN1Integer;
var_bindings: VarBindList; var_bindings: VarBindList;
}; };