pub struct ExtendedInfiniBandGrh {
pub flow_label: u32,
pub tc: u32,
pub s_gid: [u8; 16],
pub d_gid: [u8; 16],
pub next_header: u32,
pub length: u32,
}Expand description
Extended InfiniBand GRH - Format (0,1032)
InfiniBand Global Routing Header information
§XDR Definition (sFlow InfiniBand)
/* GID type 16 bytes long */
typedef opaque gid[16];
/* Extended IB GRH Data
- Global Routing Header definition from InfiniBand Architecture
Specification */
/* opaque = flow_data; enterprise = 0; format = 1032 */
struct extended_ib_grh {
unsigned int flow_label; /* flow label */
unsigned int tc; /* Traffic Class */
gid s_gid; /* source GID */
gid d_gid; /* destination GID */
unsigned int next_header; /* next header type */
unsigned int length; /* payload length */
}ERRATUM: The specification is missing semicolons after next_header and length,
violating RFC 4506 XDR syntax requirements. Additionally, the specification uses
non-standard data type ib_grh_data instead of flow_data. The corrected version is shown above.
Fields§
§flow_label: u32Flow label
tc: u32Traffic class
s_gid: [u8; 16]Source GID (16 bytes)
d_gid: [u8; 16]Destination GID (16 bytes)
next_header: u32Next header type
length: u32Payload length
Trait Implementations§
Source§impl Clone for ExtendedInfiniBandGrh
impl Clone for ExtendedInfiniBandGrh
Source§fn clone(&self) -> ExtendedInfiniBandGrh
fn clone(&self) -> ExtendedInfiniBandGrh
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtendedInfiniBandGrh
impl Debug for ExtendedInfiniBandGrh
Source§impl PartialEq for ExtendedInfiniBandGrh
impl PartialEq for ExtendedInfiniBandGrh
impl Eq for ExtendedInfiniBandGrh
impl StructuralPartialEq for ExtendedInfiniBandGrh
Auto Trait Implementations§
impl Freeze for ExtendedInfiniBandGrh
impl RefUnwindSafe for ExtendedInfiniBandGrh
impl Send for ExtendedInfiniBandGrh
impl Sync for ExtendedInfiniBandGrh
impl Unpin for ExtendedInfiniBandGrh
impl UnwindSafe for ExtendedInfiniBandGrh
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