diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2003-03-02 15:18:08 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2003-03-02 15:18:08 +0000 |
commit | 8ed17d12ee94aed32464c0cedbd8b94e47fed3ab (patch) | |
tree | fb68636019976ccad346c86ae1fef48d2fee9800 /kernel/linux2.5/net/bridge/netfilter/ebt_arp.c | |
parent | d43d7ed07f94ee0ede64529c9dbc5a85ec713f3a (diff) |
trivial things
Diffstat (limited to 'kernel/linux2.5/net/bridge/netfilter/ebt_arp.c')
-rw-r--r-- | kernel/linux2.5/net/bridge/netfilter/ebt_arp.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/kernel/linux2.5/net/bridge/netfilter/ebt_arp.c b/kernel/linux2.5/net/bridge/netfilter/ebt_arp.c index f3dae30..8673967 100644 --- a/kernel/linux2.5/net/bridge/netfilter/ebt_arp.c +++ b/kernel/linux2.5/net/bridge/netfilter/ebt_arp.c @@ -37,10 +37,10 @@ static int ebt_filter_arp(const struct sk_buff *skb, const struct net_device *in uint32_t dst; uint32_t src; - // Make sure the packet is long enough. + /* Make sure the packet is long enough */ if ((((*skb).nh.raw) + arp_len) > (*skb).tail) return EBT_NOMATCH; - // IPv4 addresses are always 4 bytes. + /* IPv4 addresses are always 4 bytes */ if (((*skb).nh.arph)->ar_pln != sizeof(uint32_t)) return EBT_NOMATCH; @@ -82,8 +82,10 @@ static int ebt_arp_check(const char *tablename, unsigned int hookmask, static struct ebt_match filter_arp = { - {NULL, NULL}, EBT_ARP_MATCH, ebt_filter_arp, ebt_arp_check, NULL, - THIS_MODULE + .name = EBT_ARP_MATCH, + .match = ebt_filter_arp, + .check = ebt_arp_check, + .me = THIS_MODULE }; static int __init init(void) |