X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fipfix.py;h=dd43560d9a68e27d4907776411b6e2764a9e1f73;hb=bb688a4dc188b097a2dbca91da58fc5585ab6838;hp=deaff67ba42fca4b0d385b65c162272156fbc274;hpb=eea28d78a3173341727aafee4c414bcb01001339;p=vpp.git diff --git a/test/ipfix.py b/test/ipfix.py index deaff67ba42..dd43560d9a6 100644 --- a/test/ipfix.py +++ b/test/ipfix.py @@ -1,7 +1,9 @@ #!/usr/bin/env python # IPFIX support for Scapy (RFC7011) -from scapy.all import * +from scapy.all import bind_layers, FieldLenField, IntField, Packet, \ + PacketListField, ShortEnumField, ShortField, StrLenField +from scapy.layers.inet import UDP # IPFIX Information Elements http://www.iana.org/assignments/ipfix/ipfix.xhtml @@ -436,7 +438,12 @@ information_elements = { 459: "httpRequestMethod", 460: "httpRequestHost", 461: "httpRequestTarget", - 462: "httpMessageVersion" + 462: "httpMessageVersion", + 466: "natQuotaExceededEvent", + 471: "maxSessionEntries", + 472: "maxBIBEntries", + 473: "maxEntriesPerUser", + 475: "maxFragmentsPendingReassembly" } @@ -502,7 +509,7 @@ class IPFIXDecoder(object): def add_template(self, template): """ - Add IPFIX tempalte + Add IPFIX template :param template: IPFIX template """