diff options
author | zec <zec@FreeBSD.org> | 2011-05-24 08:02:55 +0000 |
---|---|---|
committer | zec <zec@FreeBSD.org> | 2011-05-24 08:02:55 +0000 |
commit | 0e7fcf0b2c501486bd6b360883ed49ada96af947 (patch) | |
tree | d8c2acfc3c1259517a50160a288212dd93a9c9a1 /sys/net | |
parent | 3ab76c6800181fa87d0bd8da19106d58a62debee (diff) | |
download | FreeBSD-src-0e7fcf0b2c501486bd6b360883ed49ada96af947.zip FreeBSD-src-0e7fcf0b2c501486bd6b360883ed49ada96af947.tar.gz |
Allow for vlan(4) interfaces with MTU of 1500 bytes to be configured
on top of epair(4) virtual interfaces, since there's no physical
hardware associated with epair interfaces which would imply any
constraints on MTU sizes.
MFC after: 3 days
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if_epair.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c index a8d4711..dff9efc 100644 --- a/sys/net/if_epair.c +++ b/sys/net/if_epair.c @@ -810,6 +810,8 @@ epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) ifp->if_dname = ifc->ifc_name; ifp->if_dunit = unit; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capenable = IFCAP_VLAN_MTU; ifp->if_start = epair_start; ifp->if_ioctl = epair_ioctl; ifp->if_init = epair_init; @@ -834,6 +836,8 @@ epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) ifp->if_dname = ifc->ifc_name; ifp->if_dunit = unit; ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; + ifp->if_capabilities = IFCAP_VLAN_MTU; + ifp->if_capenable = IFCAP_VLAN_MTU; ifp->if_start = epair_start; ifp->if_ioctl = epair_ioctl; ifp->if_init = epair_init; |