[][src]Function mynewt::kernel::os::os_mbuf_cmpm

pub unsafe extern "C" fn os_mbuf_cmpm(
    om1: *const os_mbuf,
    offset1: u16,
    om2: *const os_mbuf,
    offset2: u16,
    len: u16
) -> c_int

Compares the contents of two mbuf chains. The ranges of the two chains to be compared are specified via the two offset parameters and the len parameter. Neither mbuf chain is required to contain a packet header.

Return: 0 if both mbuf segments are identical; A memcmp() return code if the segment contents differ; INT_MAX if a specified range extends beyond the end of its corresponding mbuf chain.