Struct gnunet_sys::GNUNET_TUN_IPv6Header[][src]

#[repr(C, packed)]pub struct GNUNET_TUN_IPv6Header {
    pub _bitfield_1: __BindgenBitfieldUnit<[u8; 4], u32>,
    pub payload_length: u16,
    pub next_header: u8,
    pub hop_limit: u8,
    pub source_address: in6_addr,
    pub destination_address: in6_addr,
}

Standard IPv6 header.

Fields

_bitfield_1: __BindgenBitfieldUnit<[u8; 4], u32>payload_length: u16

Length of the payload, excluding this header.

next_header: u8

For example, IPPROTO_UDP or IPPROTO_TCP.

hop_limit: u8

How many more hops can this packet be forwarded?

source_address: in6_addr

Origin of the packet.

destination_address: in6_addr

Destination of the packet.

Implementations

impl GNUNET_TUN_IPv6Header[src]

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

pub fn set_traffic_class_h(&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 traffic_class_l(&self) -> c_uint[src]

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

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

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

pub fn new_bitfield_1(
    traffic_class_h: c_uint,
    version: c_uint,
    traffic_class_l: c_uint,
    flow_label: c_uint
) -> __BindgenBitfieldUnit<[u8; 4], u32>
[src]

Trait Implementations

impl Clone for GNUNET_TUN_IPv6Header[src]

impl Copy for GNUNET_TUN_IPv6Header[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.