summaryrefslogtreecommitdiffstats
path: root/include/network.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2008-12-07 12:03:37 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2008-12-07 12:03:37 +0100
commit2676982afacd502f3119cd323d060bbb88446057 (patch)
treef05fdb50245b30c94e2d6cf95176816ba258d658 /include/network.h
parent65ad316d921930c9d5c1c8640fbf2f05ecd0ca49 (diff)
netlink: use NFCT_Q_[CREATE|UPDATE] instead of NFCT_Q_CREATE_UPDATE
This patch uses NFCT_Q_CREATE in nl_create_conntrack() and NFCT_Q_UPDATE in nl_update_conntrack(). The NFCT_Q_CREATE_UPDATE query does not set the NLM_F_EXCL flag, so that it tries to update the entry if we fail to create. Under several scenarios, this may lead to problems. For example, the creation of related conntracks contain the master information. This is fine to create an entry, but an update will hit EOPNOTSUPP as ctnetlink considers that you are trying to change the master of an existing conntrack - and this is not a supported operation, of course. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'include/network.h')
0 files changed, 0 insertions, 0 deletions