commit 06f74102be1aa0e5c4a8ca523ac23dad3aa3e282 Author: Dr. David Alan Gilbert (git/414) Date: Wed May 27 14:53:55 2015 -0400 Hacks to build with 4.1 Changes needed due to: 238e54c9 David S. Miller 2015-04-03 Make nf_hookfn use nf_hook_state. 1d1de89b David S. Miller 2015-04-03 Use nf_hook_state in nf_queue_entry. Signed-off-by: Dr. David Alan Gilbert diff --git a/xt_PMYCOLO.c b/xt_PMYCOLO.c index f5d7cda..626e170 100644 --- a/xt_PMYCOLO.c +++ b/xt_PMYCOLO.c @@ -829,7 +829,7 @@ static int colo_enqueue_packet(struct nf_queue_entry *entry, unsigned int ptr) pr_dbg("master: gso again???!!!\n"); } - if (entry->hook != NF_INET_PRE_ROUTING) { + if (entry->state.hook != NF_INET_PRE_ROUTING) { pr_dbg("packet is not on pre routing chain\n"); return -1; } @@ -839,7 +839,7 @@ static int colo_enqueue_packet(struct nf_queue_entry *entry, unsigned int ptr) pr_dbg("%s: Could not find node: %d\n",__func__, conn->vm_pid); return -1; } - switch (entry->pf) { + switch (entry->state.pf) { case NFPROTO_IPV4: skb->protocol = htons(ETH_P_IP); break; @@ -1133,8 +1133,7 @@ out: static unsigned int colo_slaver_queue_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, - const struct net_device *in, const struct net_device *out, - int (*okfn)(struct sk_buff *)) + const struct nf_hook_state *state) { struct nf_conn *ct; struct nf_conn_colo *conn; @@ -1193,8 +1192,7 @@ out_unlock: static unsigned int colo_slaver_arp_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, - const struct net_device *in, const struct net_device *out, - int (*okfn)(struct sk_buff *)) + const struct nf_hook_state *state) { unsigned int ret = NF_ACCEPT; const struct arphdr *arp; diff --git a/xt_SECCOLO.c b/xt_SECCOLO.c index fe8b4da..8bdef15 100644 --- a/xt_SECCOLO.c +++ b/xt_SECCOLO.c @@ -28,8 +28,7 @@ MODULE_DESCRIPTION("Xtables: secondary proxy module for colo."); static unsigned int colo_secondary_hook(const struct nf_hook_ops *ops, struct sk_buff *skb, - const struct net_device *in, const struct net_device *out, - int (*okfn)(struct sk_buff *)) + const struct nf_hook_state *hook_state) { enum ip_conntrack_info ctinfo; struct nf_conn_colo *conn;