Lines Matching refs:sdl
72 typedef void (action_fn)(struct sockaddr_dl *sdl, struct sockaddr_in *s_in,
83 struct sockaddr_in *dst, struct sockaddr_dl *sdl);
389 struct sockaddr_dl *sdl; in set_rtsock() local
406 sdl = (struct sockaddr_dl *)(SA_SIZE(addr) + (char *)addr); in set_rtsock()
408 if ((sdl->sdl_family != AF_LINK) || in set_rtsock()
410 !valid_type(sdl->sdl_type)) { in set_rtsock()
414 sdl_m->sdl_type = sdl->sdl_type; in set_rtsock()
415 sdl_m->sdl_index = sdl->sdl_index; in set_rtsock()
464 struct sockaddr_dl *sdl; in delete_rtsock() local
482 sdl = (struct sockaddr_dl *)(SA_SIZE(addr) + (char *)addr); in delete_rtsock()
492 if (sdl->sdl_family == AF_LINK && in delete_rtsock()
494 valid_type(sdl->sdl_type) ) { in delete_rtsock()
541 struct sockaddr_dl *sdl; in search() local
574 sdl = (struct sockaddr_dl *)((char *)sin2 + SA_SIZE(sin2)); in search()
576 (opts.rifindex != sdl->sdl_index)) in search()
582 (*action)(sdl, sin2, rtm); in search()
593 print_entry(struct sockaddr_dl *sdl, in print_entry() argument
620 if (sdl->sdl_alen) { in print_entry()
621 if ((sdl->sdl_type == IFT_ETHER || in print_entry()
622 sdl->sdl_type == IFT_L2VLAN || in print_entry()
623 sdl->sdl_type == IFT_BRIDGE) && in print_entry()
624 sdl->sdl_alen == ETHER_ADDR_LEN) in print_entry()
626 ether_ntoa((struct ether_addr *)LLADDR(sdl))); in print_entry()
628 int n = sdl->sdl_nlen > 0 ? sdl->sdl_nlen + 1 : 0; in print_entry()
630 xo_emit("{:mac-address/%s}", link_ntoa(sdl) + n); in print_entry()
636 if (p->if_index == sdl->sdl_index) { in print_entry()
660 switch(sdl->sdl_type) { in print_entry()
706 nuke_entry(struct sockaddr_dl *sdl __unused, in nuke_entry()
739 rtmsg(int cmd, struct sockaddr_in *dst, struct sockaddr_dl *sdl) in rtmsg() argument
799 NEXTADDR(RTA_GATEWAY, sdl); in rtmsg()