History

netfilter: ctnetlink: allow to set expectfn for expectations

This patch allows you to set expectfn which is specifically used by the NAT side of most of the existing conntrack helpers. I have added a symbol map that uses a string as key to look up for the function that is attached to the expectation object. This is the best solution I came out with to solve this issue.

Pablo Neira Ayuso committed 14 years ago

Commit 544d5c71 parent 076a0ca7 files · +115 −1Browse files

Showing the changes to include/linux/netfilter (1 of 7 files). Show all

Unified · Split

include/linux/netfilter/nfnetlink_conntrack.h+1−0
@@ -175,6 +175,7 @@ enum ctattr_expect { · 174 unmodified lines
175 CTA_EXPECT_FLAGS,175 CTA_EXPECT_FLAGS,
176 CTA_EXPECT_CLASS,176 CTA_EXPECT_CLASS,
177 CTA_EXPECT_NAT,177 CTA_EXPECT_NAT,
178 CTA_EXPECT_FN,
178 __CTA_EXPECT_MAX179 __CTA_EXPECT_MAX
179};180};
180#define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)181#define CTA_EXPECT_MAX (__CTA_EXPECT_MAX - 1)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t