Skip to content

Commit

Permalink
More fields`
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemiles-dev authored and mikemiles-dev committed Jun 21, 2024
1 parent a33b34f commit 6387733
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions src/variable_versions/v9_lookup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,16 @@ pub enum V9Field {
Layer2packetSectionOffset = 102,
Layer2packetSectionSize = 103,
Layer2packetSectionData = 104,
IcmpTypeValue = 176,
IcmpCodeValue = 177,
IcmpIpv6TypeValue = 178,
ImpIpv6CodeValue = 179,
PostNATSourceIPv4Address = 225,
PostNATDestinationIPv4Address = 226,
PostNAPTSourceTransportPort = 227,
PostNAPTDestinationTransportPort = 228,
PostNATTSourceTransportPort = 227,
PostNATTDestinationTransportPort = 228,
PostNATSourceIpv6Address = 281,
PostNATDestinationIpv6Address = 282,
Vendor,
Unknown,
}
Expand Down Expand Up @@ -226,10 +232,16 @@ impl From<V9Field> for FieldDataType {
96 => FieldDataType::String,
98 => FieldDataType::UnsignedDataNumber,
99 => FieldDataType::UnsignedDataNumber,
176 => FieldDataType::UnsignedDataNumber,
177 => FieldDataType::UnsignedDataNumber,
178 => FieldDataType::UnsignedDataNumber,
179 => FieldDataType::UnsignedDataNumber,
225 => FieldDataType::Ip4Addr,
226 => FieldDataType::Ip4Addr,
227 => FieldDataType::UnsignedDataNumber,
228 => FieldDataType::UnsignedDataNumber,
281 => FieldDataType::Ip6Addr,
282 => FieldDataType::Ip6Addr,
_ => FieldDataType::Unknown,
}
}
Expand Down Expand Up @@ -340,10 +352,16 @@ impl From<u16> for V9Field {
102 => V9Field::Layer2packetSectionOffset,
103 => V9Field::Layer2packetSectionSize,
104 => V9Field::Layer2packetSectionData,
176 => V9Field::IcmpTypeValue,
177 => V9Field::IcmpCodeValue,
178 => V9Field::IcmpIpv6TypeValue,
179 => V9Field::ImpIpv6CodeValue,
225 => V9Field::PostNATSourceIPv4Address,
226 => V9Field::PostNATDestinationIPv4Address,
227 => V9Field::PostNAPTSourceTransportPort,
228 => V9Field::PostNAPTDestinationTransportPort,
227 => V9Field::PostNATTSourceTransportPort,
228 => V9Field::PostNATTDestinationTransportPort,
281 => V9Field::PostNATSourceIpv6Address,
282 => V9Field::PostNATDestinationIpv6Address,
_ => V9Field::Unknown,
}
}
Expand Down

0 comments on commit 6387733

Please sign in to comment.