-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bugfix/ipfix-attribute-error #50
base: release
Are you sure you want to change the base?
Conversation
Hi @dolevha, thanks for your contribution!
|
Hi @bitkeks, thank you for the quick response. The main issue I have is the error thrown by parse_packet. Looking at the case when |
Ah, I see, the original check does not catch your combination, since you are using an enterprise field. Hmm.. According to https://www.rfc-editor.org/rfc/rfc7011#appendix-A.2.2 the enterprise "Information Element ids" might overlap with the IANA registered ones. I'd therefore propose to extend your patch by adding a second check: Where do you define the ID for your field, if that's an enterprise field? I mean: do you have a list of identifiers for your enterprise-specific fields? In v9 for example there are Cisco ASA-extension IDs, see python-netflow-v9-softflowd/netflow/v9.py Lines 134 to 155 in 71fb316
But there do not seem to be public enterprise identifier lists for IPFIX. |
Sounds good, I'll change my patch. |
@bitkeks I Found Cisco's field types: |
line 740 would be reached when field_type is None, So field_type.type raises AttributeError. Replacing with the more indicative error.