{"action":"opened","issue":{"url":"https://api.github.com/repos/KimiNewt/pyshark/issues/102","labels_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/102/comments","events_url":"https://api.github.com/repos/KimiNewt/pyshark/issues/102/events","html_url":"https://github.com/KimiNewt/pyshark/issues/102","id":114056878,"number":102,"title":"Layer class messes up nested fields","user":{"login":"JuhPuur","id":1352426,"avatar_url":"https://avatars.githubusercontent.com/u/1352426?v=3","gravatar_id":"","url":"https://api.github.com/users/JuhPuur","html_url":"https://github.com/JuhPuur","followers_url":"https://api.github.com/users/JuhPuur/followers","following_url":"https://api.github.com/users/JuhPuur/following{/other_user}","gists_url":"https://api.github.com/users/JuhPuur/gists{/gist_id}","starred_url":"https://api.github.com/users/JuhPuur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JuhPuur/subscriptions","organizations_url":"https://api.github.com/users/JuhPuur/orgs","repos_url":"https://api.github.com/users/JuhPuur/repos","events_url":"https://api.github.com/users/JuhPuur/events{/privacy}","received_events_url":"https://api.github.com/users/JuhPuur/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T14:05:32Z","updated_at":"2015-10-29T14:05:32Z","closed_at":null,"body":"I have an issue with the way the Layer class handles Mesh Link Establishment TLVs and nested fields in general. The class stores fields in the dictionary _all_fields, and if it finds any more fields with the same name it ignores or misses them. This leads to the field dictionary containing only a single 'mle.tlv' entry, with only the first showvalue stored. Same for any other fields with the same names. Apparently the Layer class is supposed to append values to the dictionary entry associated with the name, but for some reason it doesn't. The processing also completely loses any nesting and the result is a flat compressed structure of the layer that is useless."}}