diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2012-09-19 15:29:54 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2012-09-19 15:29:54 +0000 |
commit | c009a7194dd1b52cf29f3e3d5438ec0376f04042 (patch) | |
tree | e0da9d89a3bde59390459d737e2daf9c63dd0446 /sys/net/if_vlan.c | |
parent | 5d0553faff0d7f04567cb8502c1c04dc00cfe489 (diff) |
defina an IFCAP_CSUM_MASK, covering IFCAP_CSUM_*, and use it in if_vlan.c
to replace the list of them.
this actually makes vlan inherit the IPv6 CSUM flags from it's parent, that
had been commented out since this code was committed back in 2001.
ok benno mpf
Diffstat (limited to 'sys/net/if_vlan.c')
-rw-r--r-- | sys/net/if_vlan.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index a60d94ab85e..5ae0280ff7a 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.91 2011/11/27 00:46:07 haesbaert Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.92 2012/09/19 15:29:53 henning Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -424,9 +424,7 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p, u_int16_t tag) */ if (p->if_capabilities & IFCAP_VLAN_HWTAGGING) ifv->ifv_if.if_capabilities = p->if_capabilities & - (IFCAP_CSUM_IPv4|IFCAP_CSUM_TCPv4| - IFCAP_CSUM_UDPv4); - /* (IFCAP_CSUM_TCPv6|IFCAP_CSUM_UDPv6); */ + IFCAP_CSUM_MASK; /* * Hardware VLAN tagging only works with the default VLAN |