Struct gnunet_sys::iphdr[][src]

#[repr(C)]pub struct iphdr {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>,
    pub tos: u8,
    pub tot_len: u16,
    pub id: u16,
    pub frag_off: u16,
    pub ttl: u8,
    pub protocol: u8,
    pub check: u16,
    pub saddr: u32,
    pub daddr: u32,
}

Fields

_bitfield_1: __BindgenBitfieldUnit<[u8; 1], u8>tos: u8tot_len: u16id: u16frag_off: u16ttl: u8protocol: u8check: u16saddr: u32daddr: u32

Implementations

impl iphdr[src]

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

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

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

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

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

Trait Implementations

impl Clone for iphdr[src]

impl Copy for iphdr[src]

impl Debug for iphdr[src]

Auto Trait Implementations

impl RefUnwindSafe for iphdr

impl Send for iphdr

impl Sync for iphdr

impl Unpin for iphdr

impl UnwindSafe for iphdr

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.