Logo Search packages:      
Sourcecode: libnl2 version File versions  Download package

int nl_cache_parse_and_add ( struct nl_cache *  cache,
struct nl_msg *  msg 

Parse a netlink message and add it to the cache.

  • cache cache to add element to
  • msg netlink message
Parses a netlink message by calling the cache specific message parser and adds the new element to the cache.

0 or a negative error code.

Definition at line 660 of file cache.c.

References nlmsg_hdr().

      struct nl_parser_param p = {
            .pp_cb = pickup_cb,
            .pp_arg = cache,

      return nl_cache_parse(cache->c_ops, NULL, nlmsg_hdr(msg), &p);

Generated by  Doxygen 1.6.0   Back to index