summaryrefslogtreecommitdiffstats
path: root/lib/netfilter/queue_msg_obj.c
diff options
context:
space:
mode:
authorKarl Hiramoto <karl@hiramoto.org>2010-02-24 21:29:14 +0100
committerThomas Graf <tgraf@suug.ch>2010-03-10 16:02:01 +0100
commitcafdaa4e065a2ee658d7e361158100f4c7abe445 (patch)
tree13a8910da4b1f1241b6b0462c7944728193b2684 /lib/netfilter/queue_msg_obj.c
parent27c505eb89f7a689416f822e26c0ccea0b351ba3 (diff)
downloadandroid_external_libnl-cafdaa4e065a2ee658d7e361158100f4c7abe445.tar.gz
android_external_libnl-cafdaa4e065a2ee658d7e361158100f4c7abe445.tar.bz2
android_external_libnl-cafdaa4e065a2ee658d7e361158100f4c7abe445.zip
new function nfnl_queue_msg_send_verdict_payload()
nfnl_queue_msg_send_verdict_payload() will to send the verdict, mark, and possibly changed payload through the netlink socket. Add a few docbook comments in other funcs. Signed-off-by: Karl Hiramoto <karl@hiramoto.org>
Diffstat (limited to 'lib/netfilter/queue_msg_obj.c')
-rw-r--r--lib/netfilter/queue_msg_obj.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/netfilter/queue_msg_obj.c b/lib/netfilter/queue_msg_obj.c
index aa03b15..97813e8 100644
--- a/lib/netfilter/queue_msg_obj.c
+++ b/lib/netfilter/queue_msg_obj.c
@@ -197,6 +197,11 @@ uint16_t nfnl_queue_msg_get_group(const struct nfnl_queue_msg *msg)
return msg->queue_msg_group;
}
+/**
+* Set the protocol family
+* @arg msg NF queue message
+* @arg family AF_XXX address family example: AF_INET, AF_UNIX, etc
+*/
void nfnl_queue_msg_set_family(struct nfnl_queue_msg *msg, uint8_t family)
{
msg->queue_msg_family = family;
@@ -424,6 +429,11 @@ const void *nfnl_queue_msg_get_payload(const struct nfnl_queue_msg *msg, int *le
return msg->queue_msg_payload;
}
+/**
+* Return the number of items matching a filter in the cache
+* @arg msg queue msg
+* @arg verdict NF_DROP, NF_ACCEPT, NF_REPEAT, etc
+*/
void nfnl_queue_msg_set_verdict(struct nfnl_queue_msg *msg,
unsigned int verdict)
{