|
|
| version 1.1.1.1, 2012/10/09 09:06:54 | version 1.1.1.1.2.1, 2013/07/22 00:29:21 |
|---|---|
| Line 577 get_hw_addr(const char *name, struct hardware *hw) { | Line 577 get_hw_addr(const char *name, struct hardware *hw) { |
| */ | */ |
| switch (sa->sdl_type) { | switch (sa->sdl_type) { |
| case IFT_ETHER: | case IFT_ETHER: |
| case IFT_L2VLAN: | |
| hw->hlen = sa->sdl_alen + 1; | hw->hlen = sa->sdl_alen + 1; |
| hw->hbuf[0] = HTYPE_ETHER; | hw->hbuf[0] = HTYPE_ETHER; |
| memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen); | memcpy(&hw->hbuf[1], LLADDR(sa), sa->sdl_alen); |