Skip to main content

find_cmsg

Function find_cmsg 

Source
fn find_cmsg(data: &[u8], level: i32, type_: i32) -> Option<&[u8]>
Expand description

Find the payload of the first control message matching (level, type) in an ancillary data buffer. Returns the buffer remainder starting at the payload. cmsghdr on 64-bit: [0..8] len, [8..12] level, [12..16] type, [16..] payload