mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
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
This commit is contained in:
parent
2dccdd4562
commit
9f8cab7fc2
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=222247
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user