openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/libnl/1_3.4.0-r0/libnl-3.4.0/lib/xfrm/selector.c
int xfrmnl_sel_cmp(struct xfrmnl_sel* a, struct xfrmnl_sel* b)
{
    /* Check for any differences */
    if ((nl_addr_cmp_prefix(a->daddr, b->daddr) != 0) ||
        (nl_addr_cmp_prefix(a->saddr, b->saddr) != 0) ||
        ((a->sport & a->sport_mask) != (b->sport & b->sport_mask)) ||
        ((a->dport & a->dport_mask) != (b->dport & b->dport_mask)) ||
        (a->family != b->family) || (a->proto && (a->proto != b->proto)) ||
        (a->ifindex && a->ifindex != b->ifindex) || (a->user != b->user))
        return 1;

    /* The objects are identical */
    return 0;
}
/**
 * Compares two selector objects.
 * @arg a		A selector object.
 * @arg b		Another selector object.
 *
 * @return Non zero if difference is found, 0 otherwise if both
 * the objects are identical.
 */
Compares two selector objects.
@arg a               A selector object.
@arg b               Another selector object.

@return Non zero if difference is found, 0 otherwise if both
the objects are identical.
Compares two selector objects . @arg a A selector object . @arg b Another selector object . @return Non zero if difference is found 0 otherwise if both the objects are identical .
int xfrmnl_sel_cmp(struct xfrmnl_sel* a, struct xfrmnl_sel* b)
{
    if ((nl_addr_cmp_prefix(a->daddr, b->daddr) != 0) ||
        (nl_addr_cmp_prefix(a->saddr, b->saddr) != 0) ||
        ((a->sport & a->sport_mask) != (b->sport & b->sport_mask)) ||
        ((a->dport & a->dport_mask) != (b->dport & b->dport_mask)) ||
        (a->family != b->family) || (a->proto && (a->proto != b->proto)) ||
        (a->ifindex && a->ifindex != b->ifindex) || (a->user != b->user))
        return 1;
    return 0;
}
int xfrmnl_sel_cmp ( struct xfrmnl_sel * a , struct xfrmnl_sel * b ) { if ( ( nl_addr_cmp_prefix ( a -> daddr , b -> daddr ) != 0 ) || ( nl_addr_cmp_prefix ( a -> saddr , b -> saddr ) != 0 ) || ( ( a -> sport & a -> sport_mask ) != ( b -> sport & b -> sport_mask ) ) || ( ( a -> dport & a -> dport_mask ) != ( b -> dport & b -> dport_mask ) ) || ( a -> family != b -> family ) || ( a -> proto && ( a -> proto != b -> proto ) ) || ( a -> ifindex && a -> ifindex != b -> ifindex ) || ( a -> user != b -> user ) ) return 1 ; return 0 ; }
Compares two selector objects.
Compares two selector objects .
/* Check for any differences */ /* The objects are identical */