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

int nfnlmsg_put ( struct nl_msg *  msg,
uint32_t  pid,
uint32_t  seq,
uint8_t  subsys_id,
uint8_t  type,
int  flags,
uint8_t  family,
uint16_t  res_id 

Add netlink and netfilter netlink headers to netlink message

  • msg netlink message
  • pid netlink process id
  • seq sequence number of message
  • subsys_id nfnetlink subsystem
  • type nfnetlink message type
  • flags message flags
  • family nfnetlink address family
  • res_id nfnetlink resource id

Definition at line 230 of file nfnl.c.

References nlmsg_put().

      struct nlmsghdr *nlh;

      nlh = nlmsg_put(msg, pid, seq, NFNLMSG_TYPE(subsys_id, type), 0, flags);
      if (nlh == NULL)
            return -NLE_MSGSIZE;

      return nfnlmsg_append(msg, family, res_id);

Generated by  Doxygen 1.6.0   Back to index