X-Git-Url: http://git.onelab.eu/?p=ipfw.git;a=blobdiff_plain;f=dummynet%2Fipfw2_mod.c;h=076571805071324d172fbcfc66d331d4b76cdda5;hp=c6a0699f0594dd5dda139f4decbf5046bbe124a6;hb=1f3693d89c1c88e895721e21751c354e74b99627;hpb=1a406635eb894da69f2435c4d3ae7517e3c5cd70 diff --git a/dummynet/ipfw2_mod.c b/dummynet/ipfw2_mod.c index c6a0699..0765718 100644 --- a/dummynet/ipfw2_mod.c +++ b/dummynet/ipfw2_mod.c @@ -156,7 +156,7 @@ fini_children(void) mods[i].mod->evhand(NULL, MOD_UNLOAD, mods[i].mod->priv); } } -/*--- end of module bindinghelper functions ---*/ +/*--- end of module binding helper functions ---*/ /*--- * Control hooks: @@ -256,18 +256,18 @@ static struct nf_sockopt_ops ipfw_sockopts = { * - the hook names change between macros (NF_IP*) and enum NF_INET_* * * - the second argument to the netfilter hook is - * struct sk_buff ** in kernels <= 2.6.22 - * struct sk_buff * in kernels > 2.6.22 + * struct sk_buff ** in kernels <= 2.6.22 + * struct sk_buff * in kernels > 2.6.22 * * - NF_STOP is not defined before 2.6 so we remap it to NF_ACCEPT * * - the packet descriptor passed to the queue handler is - * struct nf_info in kernels <= 2.6.24 - * struct nf_queue_entry in kernels <= 2.6.24 + * struct nf_info in kernels <= 2.6.24 + * struct nf_queue_entry in kernels <= 2.6.24 * * - the arguments to the queue handler also change; */ - + /* * declare hook to grab packets from the netfilter interface. * The NF_* names change in different versions of linux, in some @@ -464,15 +464,15 @@ ip_output(struct mbuf *m, struct mbuf __unused *opt, * * The chain is the following * sk_buff* sock* socket* file* - * skb -> sk ->sk_socket->file ->f_owner ->pid - * skb -> sk ->sk_socket->file ->f_uid (direct) - * skb -> sk ->sk_socket->file ->f_cred->fsuid (2.6.29+) + * skb -> sk ->sk_socket->file ->f_owner ->pid + * skb -> sk ->sk_socket->file ->f_uid (direct) + * skb -> sk ->sk_socket->file ->f_cred->fsuid (2.6.29+) * * Related headers: - * linux/skbuff.h struct skbuff - * net/sock.h struct sock - * linux/net.h struct socket - * linux/fs.h struct file + * linux/skbuff.h struct skbuff + * net/sock.h struct sock + * linux/net.h struct socket + * linux/fs.h struct file * * With vserver we may have sk->sk_xid and sk->sk_nid that * which we store in fw_groups[1] (matches O_JAIL) and fw_groups[2] @@ -512,7 +512,7 @@ linux_lookup(const int proto, const __be32 saddr, const __be16 sport, #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,26) /* there is no dev_net() on 2.6.25 */ #define _OPT_NET_ARG (skb->dev->nd_net), -#else /* 2.6.26 and above */ +#else /* 2.6.26 and above */ #define _OPT_NET_ARG dev_net(skb->dev), #endif #endif