Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41982
b: refs/heads/master
c: f9aae95
h: refs/heads/master
v: v3
  • Loading branch information
Patrick McHardy authored and David S. Miller committed Dec 3, 2006
1 parent 84fa4b9 commit 7b22108
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 0c4ca1bd8638d04796553b6e678063c4fadb92cc
refs/heads/master: f9aae95828d3478520f4bd73221bcb450ec1a5c0
1 change: 1 addition & 0 deletions trunk/include/net/netfilter/nf_conntrack.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ static inline struct nf_conn_help *nfct_help(const struct nf_conn *ct)
if (!(ct->features & NF_CT_F_HELP))
return NULL;

offset = ALIGN(offset, __alignof__(struct nf_conn_help));
return (struct nf_conn_help *) ((void *)ct + offset);
}

Expand Down
9 changes: 5 additions & 4 deletions trunk/net/netfilter/nf_conntrack_helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,14 @@ static inline int unhelp(struct nf_conntrack_tuple_hash *i,

int nf_conntrack_helper_register(struct nf_conntrack_helper *me)
{
int ret;
int size, ret;

BUG_ON(me->timeout == 0);

size = ALIGN(sizeof(struct nf_conn), __alignof__(struct nf_conn_help)) +
sizeof(struct nf_conn_help);
ret = nf_conntrack_register_cache(NF_CT_F_HELP, "nf_conntrack:help",
sizeof(struct nf_conn)
+ sizeof(struct nf_conn_help)
+ __alignof__(struct nf_conn_help));
size);
if (ret < 0) {
printk(KERN_ERR "nf_conntrack_helper_register: Unable to create slab cache for conntracks\n");
return ret;
Expand Down

0 comments on commit 7b22108

Please sign in to comment.