View | Details | Raw Unified | Return to bug 136994 | Differences between
and this patch

Collapse All | Expand All

(-)sbin/ifconfig/af_link.c (+4 lines)
Lines 57-62 Link Here
57
	/* XXX no const 'cuz LLADDR is defined wrong */
57
	/* XXX no const 'cuz LLADDR is defined wrong */
58
	struct sockaddr_dl *sdl = (struct sockaddr_dl *) ifa->ifa_addr;
58
	struct sockaddr_dl *sdl = (struct sockaddr_dl *) ifa->ifa_addr;
59
59
60
	if (sdl != NULL && sdl->sdl_type == IFT_CARP)
61
		printf("\tether %s\n",
62
		    ether_ntoa((struct ether_addr *)LLADDR(sdl)));
63
60
	if (sdl != NULL && sdl->sdl_alen > 0) {
64
	if (sdl != NULL && sdl->sdl_alen > 0) {
61
		if (sdl->sdl_type == IFT_ETHER &&
65
		if (sdl->sdl_type == IFT_ETHER &&
62
		    sdl->sdl_alen == ETHER_ADDR_LEN)
66
		    sdl->sdl_alen == ETHER_ADDR_LEN)

Return to bug 136994