diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-13 17:24:27 +0100 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2008-12-13 17:24:27 +0100 |
commit | 74455dae1d095178b09ea3f1b1e8b005076e7a94 (patch) | |
tree | c1d559d89e972ee6e115c333093ca8a961cce1e6 /src/network.c | |
parent | 3de8d91c1fa7cadf68108c0c9c03193ac5e82a73 (diff) | |
download | conntrack-tools-74455dae1d095178b09ea3f1b1e8b005076e7a94.tar.gz conntrack-tools-74455dae1d095178b09ea3f1b1e8b005076e7a94.zip |
network: do more strict message type checking
This patch adds more strict checking in the message type. We add a
new message type NET_T_CTL for control messages.
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/network.c')
-rw-r--r-- | src/network.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network.c b/src/network.c index 34992ec..98df5ea 100644 --- a/src/network.c +++ b/src/network.c @@ -58,7 +58,7 @@ void nethdr_set(struct nethdr *net, int type) void nethdr_set_ack(struct nethdr *net) { - __nethdr_set(net, NETHDR_ACK_SIZ, 0); + __nethdr_set(net, NETHDR_ACK_SIZ, NET_T_CTL); } static size_t tx_buflenmax; |