lib/ofp-msgs.c
/* Does the same job as ofpraw_pull(), except that it assert-fails if
 * ofpraw_pull() would have reported an error.  Thus, it's able to use the
 * return value for the OFPRAW_* message type instead of an error code.
 *
 * (It only makes sense to use this function if you previously called
 * ofpraw_decode() on the message and thus know that it's OK.) */
Does the same job as ofpraw_pull(), except that it assert-fails if
ofpraw_pull() would have reported an error.  Thus, it's able to use the
return value for the OFPRAW_* message type instead of an error code.

(It only makes sense to use this function if you previously called
ofpraw_decode() on the message and thus know that it's OK.)
Does the same job as ofpraw_pull () except that it assert - fails if ofpraw_pull () would have reported an error . Thus it ' s able to use the return value for the OFPRAW_ * message type instead of an error code . ( It only makes sense to use this function if you previously called ofpraw_decode () on the message and thus know that it ' s OK . )
enum ofpraw
ofpraw_pull_assert(struct ofpbuf *msg)
{
    enum ofpraw raw;
    ovs_assert(!ofpraw_pull(&raw, msg));
    return raw;
}
enum ofpraw ofpraw_pull_assert ( struct ofpbuf * msg ) { enum ofpraw raw ; ovs_assert ( ! ofpraw_pull ( & raw , msg ) ) ; return raw ; }
Does the same job as ofpraw_pull(), except that it assert-fails if
 ofpraw_pull() would have reported an error.
Does the same job as ofpraw_pull () except that it assert - fails if ofpraw_pull () would have reported an error .