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

struct nl_msg* rtnl_qdisc_build_add_request ( struct rtnl_qdisc *  qdisc,
int  flags 
) [read]

Build a netlink message to add a new qdisc

  • qdisc qdisc to add
  • flags additional netlink message flags
Builds a new netlink message requesting an addition of a qdisc. The netlink message header isn't fully equipped with all relevant fields and must be sent out via nl_send_auto_complete() or supplemented as needed.

Common message flags used:

  • NLM_F_REPLACE - replace a potential existing qdisc

Returns:
New netlink message

Definition at line 332 of file qdisc.c.

Referenced by rtnl_qdisc_add().

{
      struct nl_msg *msg;

      msg = qdisc_build(qdisc, RTM_NEWQDISC, NLM_F_CREATE | flags);
      if (!msg)
            nl_errno(ENOMEM);

      return msg;
}


Generated by  Doxygen 1.6.0   Back to index