"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "epan/oids.c" between
wireshark-3.4.5.tar.xz and wireshark-3.4.6.tar.xz

About: Wireshark is a network protocol analyzer. It lets you capture and interactively browse the traffic running on a computer network.

oids.c  (wireshark-3.4.5.tar.xz):oids.c  (wireshark-3.4.6.tar.xz)
skipping to change at line 388 skipping to change at line 388
return size == 0xffffffff ? 0 : size; return size == 0xffffffff ? 0 : size;
} }
static inline oid_kind_t smikind(SmiNode* sN, oid_key_t** key_p) { static inline oid_kind_t smikind(SmiNode* sN, oid_key_t** key_p) {
*key_p = NULL; *key_p = NULL;
switch(sN->nodekind) { switch(sN->nodekind) {
case SMI_NODEKIND_ROW: { case SMI_NODEKIND_ROW: {
SmiElement* sE; SmiElement* sE;
oid_key_t* kl = NULL; oid_key_t* kl = NULL; /* points to last element in the list of oid_key_t's */
const oid_value_type_t* typedata = NULL; const oid_value_type_t* typedata = NULL;
gboolean implied; gboolean implied;
switch (sN->indexkind) { switch (sN->indexkind) {
case SMI_INDEX_INDEX: case SMI_INDEX_INDEX:
break; break;
case SMI_INDEX_AUGMENT: case SMI_INDEX_AUGMENT:
case SMI_INDEX_REORDER: case SMI_INDEX_REORDER:
case SMI_INDEX_SPARSE: case SMI_INDEX_SPARSE:
case SMI_INDEX_EXPAND: case SMI_INDEX_EXPAND:
skipping to change at line 462 skipping to change at line 462
k->num_subids = 1 ; k->num_subids = 1 ;
break; break;
default: default:
k->key_type = OID _KEY_TYPE_WRONG; k->key_type = OID _KEY_TYPE_WRONG;
k->num_subids = 0 ; k->num_subids = 0 ;
break; break;
} }
} else { } else {
k->key_type = OID_KEY_TYPE_WRONG; k->key_type = OID_KEY_TYPE_WRONG;
k->num_subids = 0; k->num_subids = 0;
break;
} }
} }
if (!*key_p) *key_p = k; if (!kl) {
if (kl) kl->next = k; /*
* The list is empty, so set the
* pointer to the head of the list
* to point to this entry.
*/
*key_p = k;
} else {
/*
* The list is non-empty, and kl
* points to its last element.
* Make the last element point to
* this entry as its successor.
*/
kl->next = k;
}
/*
* This entry is now the last entry in
* the list.
*/
kl = k; kl = k;
} }
if (implied && kl) { if (implied && kl) {
switch (kl->key_type) { switch (kl->key_type) {
case OID_KEY_TYPE_BYTES: kl->key_type = OID_KEY_TYPE_IMPLIED_BYTES; break; case OID_KEY_TYPE_BYTES: kl->key_type = OID_KEY_TYPE_IMPLIED_BYTES; break;
case OID_KEY_TYPE_STRING: kl->key_type = OID_KEY_TYPE_IMPLIED_STRING; break; case OID_KEY_TYPE_STRING: kl->key_type = OID_KEY_TYPE_IMPLIED_STRING; break;
case OID_KEY_TYPE_OID: kl->key_type = OID_KEY_TYPE_IMPLIED_OID; break; case OID_KEY_TYPE_OID: kl->key_type = OID_KEY_TYPE_IMPLIED_OID; break;
default: break; default: break;
} }
 End of changes. 4 change blocks. 
4 lines changed or deleted 21 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)