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

int nfnl_send_simple ( struct nl_sock *  sk,
uint8_t  subsys_id,
uint8_t  type,
int  flags,
uint8_t  family,
uint16_t  res_id 

Send trivial netfilter netlink message

  • sk Netlink socket.
  • subsys_id nfnetlink subsystem
  • type nfnetlink message type
  • flags message flags
  • family nfnetlink address family
  • res_id nfnetlink resource id
Newly allocated netlink message or NULL.

Definition at line 107 of file nfnl.c.

References nl_send_simple().

      struct nfgenmsg hdr = {
            .nfgen_family = family,
            .version = NFNETLINK_V0,
            .res_id = htons(res_id),

      return nl_send_simple(sk, NFNLMSG_TYPE(subsys_id, type), flags,
                        &hdr, sizeof(hdr));

Generated by  Doxygen 1.6.0   Back to index