Struct linux_raw_sys::net::tcphdr
source · #[repr(C)]pub struct tcphdr {
pub source: __be16,
pub dest: __be16,
pub seq: __be32,
pub ack_seq: __be32,
pub _bitfield_align_1: [u8; 0],
pub _bitfield_1: __BindgenBitfieldUnit<[u8; 2]>,
pub window: __be16,
pub check: __sum16,
pub urg_ptr: __be16,
}
Fields§
§source: __be16
§dest: __be16
§seq: __be32
§ack_seq: __be32
§_bitfield_align_1: [u8; 0]
§_bitfield_1: __BindgenBitfieldUnit<[u8; 2]>
§window: __be16
§check: __sum16
§urg_ptr: __be16
Implementations§
source§impl tcphdr
impl tcphdr
pub fn res1(&self) -> __u16
pub fn set_res1(&mut self, val: __u16)
pub fn doff(&self) -> __u16
pub fn set_doff(&mut self, val: __u16)
pub fn fin(&self) -> __u16
pub fn set_fin(&mut self, val: __u16)
pub fn syn(&self) -> __u16
pub fn set_syn(&mut self, val: __u16)
pub fn rst(&self) -> __u16
pub fn set_rst(&mut self, val: __u16)
pub fn psh(&self) -> __u16
pub fn set_psh(&mut self, val: __u16)
pub fn ack(&self) -> __u16
pub fn set_ack(&mut self, val: __u16)
pub fn urg(&self) -> __u16
pub fn set_urg(&mut self, val: __u16)
pub fn ece(&self) -> __u16
pub fn set_ece(&mut self, val: __u16)
pub fn cwr(&self) -> __u16
pub fn set_cwr(&mut self, val: __u16)
pub fn new_bitfield_1( res1: __u16, doff: __u16, fin: __u16, syn: __u16, rst: __u16, psh: __u16, ack: __u16, urg: __u16, ece: __u16, cwr: __u16 ) -> __BindgenBitfieldUnit<[u8; 2]>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for tcphdr
impl Send for tcphdr
impl Sync for tcphdr
impl Unpin for tcphdr
impl UnwindSafe for tcphdr
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