Struct gnunet_sys::GNUNET_TUN_TcpHeader[][src]

#[repr(C, packed)]pub struct GNUNET_TUN_TcpHeader {
    pub source_port: u16,
    pub destination_port: u16,
    pub seq: u32,
    pub ack: u32,
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub flags: u8,
    pub window_size: u16,
    pub crc: u16,
    pub urgent_pointer: u16,
}

TCP packet header.

Fields

source_port: u16

Source port (in NBO).

destination_port: u16

Destination port (in NBO).

seq: u32

Sequence number.

ack: u32

Acknowledgement number.

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>flags: u8

Flags (SYN, FIN, ACK, etc.)

window_size: u16

Window size.

crc: u16

Checksum.

urgent_pointer: u16

Urgent pointer.

Implementations

impl GNUNET_TUN_TcpHeader[src]

pub fn reserved(&self) -> c_uint[src]

pub fn set_reserved(&mut self, val: c_uint)[src]

pub fn off(&self) -> c_uint[src]

pub fn set_off(&mut self, val: c_uint)[src]

pub fn new_bitfield_1(
    reserved: c_uint,
    off: c_uint
) -> __BindgenBitfieldUnit<[u8; 1], u8>
[src]

Trait Implementations

impl Clone for GNUNET_TUN_TcpHeader[src]

impl Copy for GNUNET_TUN_TcpHeader[src]

impl Debug for GNUNET_TUN_TcpHeader[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.