Handling flags on vlan(4)



Hi folks,

Presently our vlan(4) driver sets interface's flags to 0 initially
and copies a subset of them from the parent interface when the vlan
interface is attached to its parent. In particular, copied are flags
IFF_BROADCAST and IFF_MULTICAST. This approach has an unpleasant
consequence: if you assign IP to vlan before attaching the latter to
its parent, IP won't be properly set up on vlanX because the IP code
does some special things for IFF_BROADCAST and IFF_MULTICAST
interfaces; at least it sets up a broadcast address and joins the
all-hosts group.

I can see two ways to deal with the problem. The ideal and hard
way is to provide hooks to notify upper network stack layers of
changes in interface properties. However, I doubt if such feature
is called for. The easy and practical way is to set IFF_BROADCAST
and IFF_MULTICAST on vlan from the beginning and prohibit vlan from
attaching to a non-bcast or non-mcast parent (which wouldn't work
anyway.)

Any comments?

--
Yar
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Handling flags on vlan(4)
    ... Y> interface is attached to its parent. ... if you assign IP to vlan before attaching the latter to ... GLEBIUS-RIPN GLEB-RIPE ...
    (freebsd-net)
  • Cisco 877w: Fa0-3 Interfaces up but no traffic passes
    ... Data Vlan101 only, no voice vlan required, WPA ... output errors, 0 collisions, 0 interface resets ... switchport trunk native vlan 101 ... bridge-group 101 subscriber-loop-control ...
    (comp.dcom.sys.cisco)
  • Re: Need help adding device to new vlan
    ... The vlan 99 ... - If I assign an ip address to the vlan 199 interface, ... switchport trunk encapsulation dot1q ... switchport trunk allowed vlan 40,51,99,199,997,998 ...
    (comp.dcom.sys.cisco)
  • Re: 2600 router + 2924 switch and vlans
    ... I can route from a port ... assigned to the def vlan, but not from any port assigned to vlan 2 ... interface FastEthernet0/0 ... switchport trunk encapsulation isl ...
    (comp.dcom.sys.cisco)
  • Need help adding device to new vlan
    ... The vlan 99 ... - If I assign an ip address to the vlan 199 interface, ... switchport trunk allowed vlan 40,51,99,199,997,998 ... no ip proxy-arp ...
    (comp.dcom.sys.cisco)