[−][src]Struct nc::types::bpf_sock_ops_t
User bpf_sock_ops struct to access socket values and specify request ops and their replies. Some of this fields are in network (bigendian) byte order and may need to be converted before use (bpf_ntohl() defined in samples/bpf/bpf_endian.h). New fields can only be added at the end of this structure
Fields
op: u32
reply: bpf_sock_ops_reply_t
family: u32
remote_ip4: u32
Stored in network byte order
local_ip4: u32
Stored in network byte order
remote_ip6: [u32; 4]
Stored in network byte order
local_ip6: [u32; 4]
Stored in network byte order
remote_port: u32
Stored in network byte order
local_port: u32
stored in host byte order
is_fullsock: u32
Some TCP fields are only valid if there is a full socket. If not, the fields read as zero.
snd_cwnd: u32
srtt_us: u32
Averaged RTT << 3 in usecs
bpf_sock_ops_cb_flags: u32
flags defined in uapi/linux/tcp.h
state: u32
rtt_min: u32
snd_ssthresh: u32
rcv_nxt: u32
snd_nxt: u32
snd_una: u32
mss_cache: u32
ecn_flags: u32
rate_delivered: u32
rate_interval_us: u32
packets_out: u32
retrans_out: u32
total_retrans: u32
segs_in: u32
data_segs_in: u32
segs_out: u32
data_segs_out: u32
lost_out: u32
sacked_out: u32
sk_txhash: u32
bytes_received: u64
bytes_acked: u64
Auto Trait Implementations
impl Send for bpf_sock_ops_t
[src]
impl Sync for bpf_sock_ops_t
[src]
impl Unpin for bpf_sock_ops_t
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,