pub struct ExtendedSocketIpv4 {
    pub protocol: u32,
    pub local_ip: Ipv4Addr,
    pub remote_ip: Ipv4Addr,
    pub local_port: u32,
    pub remote_port: u32,
}Expand description
Extended Socket IPv4 - Format (0,2100)
IPv4 socket information for application transactions
§XDR Definition (sFlow Host)
/* IPv4 Socket */
/* opaque = flow_data; enterprise = 0; format = 2100 */
struct extended_socket_ipv4 {
    unsigned int protocol;     /* IP Protocol type (e.g., TCP = 6, UDP = 17) */
    ip_v4 local_ip;            /* local IP address */
    ip_v4 remote_ip;           /* remote IP address */
    unsigned int local_port;   /* TCP/UDP local port number or equivalent */
    unsigned int remote_port;  /* TCP/UDP remote port number or equivalent */
}Fields§
§protocol: u32IP Protocol type (e.g., TCP = 6, UDP = 17)
local_ip: Ipv4AddrLocal IP address
remote_ip: Ipv4AddrRemote IP address
local_port: u32TCP/UDP local port number
remote_port: u32TCP/UDP remote port number
Trait Implementations§
Source§impl Clone for ExtendedSocketIpv4
 
impl Clone for ExtendedSocketIpv4
Source§fn clone(&self) -> ExtendedSocketIpv4
 
fn clone(&self) -> ExtendedSocketIpv4
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 ExtendedSocketIpv4
 
impl Debug for ExtendedSocketIpv4
Source§impl PartialEq for ExtendedSocketIpv4
 
impl PartialEq for ExtendedSocketIpv4
impl Eq for ExtendedSocketIpv4
impl StructuralPartialEq for ExtendedSocketIpv4
Auto Trait Implementations§
impl Freeze for ExtendedSocketIpv4
impl RefUnwindSafe for ExtendedSocketIpv4
impl Send for ExtendedSocketIpv4
impl Sync for ExtendedSocketIpv4
impl Unpin for ExtendedSocketIpv4
impl UnwindSafe for ExtendedSocketIpv4
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