pub struct ExtendedNatPort {
pub src_port: u32,
pub dst_port: u32,
}Expand description
Extended NAT Port Data - Format (0,1020)
Layer 4 port translation information for NAT
§XDR Definition (sFlow Port NAT)
/* Extended NAT L4 Port Data
Packet header reports ports as seen at the sFlowDataSource.
The extended_nat_port structure reports on translated source and/or
destination layer 4 (TCP/UDP) ports for this packet. If port was not
translated it should be equal to that reported for the header. */
/* opaque = flow_data; enterprise = 0; format = 1020 */
struct extended_nat_port {
unsigned int src_port; /* Source port */
unsigned int dst_port; /* Destination port */
}Fields§
§src_port: u32Translated source port
dst_port: u32Translated destination port
Trait Implementations§
Source§impl Clone for ExtendedNatPort
impl Clone for ExtendedNatPort
Source§fn clone(&self) -> ExtendedNatPort
fn clone(&self) -> ExtendedNatPort
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtendedNatPort
impl Debug for ExtendedNatPort
Source§impl PartialEq for ExtendedNatPort
impl PartialEq for ExtendedNatPort
impl Eq for ExtendedNatPort
impl StructuralPartialEq for ExtendedNatPort
Auto Trait Implementations§
impl Freeze for ExtendedNatPort
impl RefUnwindSafe for ExtendedNatPort
impl Send for ExtendedNatPort
impl Sync for ExtendedNatPort
impl Unpin for ExtendedNatPort
impl UnwindSafe for ExtendedNatPort
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more