Logo Search packages:      
Sourcecode: libnetfilter-queue version File versions  Download package

struct nfqnl_msg_packet_hdr* nfq_get_msg_packet_hdr ( struct nfq_data *  nfad  )  [read]

nfqnl_msg_packet_hdr - return the metaheader that wraps the packet

Parameters:
nfad Netlink packet data handle passed to callback function
Returns:
the netfilter queue netlink packet header for the given nfq_data argument. Typically, the nfq_data value is passed as the 3rd parameter to the callback function set by a call to nfq_create_queue().
The nfqnl_msg_packet_hdr structure is defined in libnetfilter_queue.h as:

	struct nfqnl_msg_packet_hdr {
		u_int32_t	packet_id;	// unique ID of packet in queue
		u_int16_t	hw_protocol;	// hw protocol (network order)
		u_int8_t	hook;		// netfilter hook
	} __attribute__ ((packed));

Definition at line 726 of file libnetfilter_queue.c.

{
      return nfnl_get_pointer_to_data(nfad->data, NFQA_PACKET_HDR,
                              struct nfqnl_msg_packet_hdr);
}


Generated by  Doxygen 1.6.0   Back to index