• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/network_cmds-457/arp.tproj/

Lines Matching refs:sdl

107 typedef void (action_fn)(struct sockaddr_dl *sdl,
109 typedef void (action_ext_fn)(struct sockaddr_dl *sdl,
125 struct sockaddr_inarp *dst, struct sockaddr_dl *sdl);
385 struct sockaddr_dl *sdl;
463 sdl = (struct sockaddr_dl *)(SA_SIZE(addr) + (char *)addr);
466 if (sdl->sdl_family == AF_LINK &&
469 valid_type(sdl->sdl_type) )
490 if (sdl->sdl_family != AF_LINK) {
494 sdl_m.sdl_type = sdl->sdl_type;
495 sdl_m.sdl_index = sdl->sdl_index;
529 struct sockaddr_dl *sdl;
542 sdl = (struct sockaddr_dl *)(SA_SIZE(addr) + (char *)addr);
544 sdl->sdl_family == AF_LINK &&
547 valid_type(sdl->sdl_type) )
573 struct sockaddr_dl *sdl;
607 sdl = (struct sockaddr_dl *)((char *)sin2 + SA_SIZE(sin2));
608 if (rifname && if_indextoname(sdl->sdl_index, ifname) &&
616 (*action)(sdl, sin2, rtm);
626 print_lladdr(struct sockaddr_dl *sdl)
633 cp = (char *)LLADDR(sdl);
634 if ((n = sdl->sdl_alen) > 0) {
646 print_entry(struct sockaddr_dl *sdl,
670 if (sdl->sdl_alen) {
672 printf("%s", print_lladdr(sdl));
674 if ((sdl->sdl_type == IFT_ETHER ||
675 sdl->sdl_type == IFT_L2VLAN ||
676 sdl->sdl_type == IFT_BRIDGE) &&
677 sdl->sdl_alen == ETHER_ADDR_LEN)
678 printf("%s", ether_ntoa((struct ether_addr *)LLADDR(sdl)));
680 int n = sdl->sdl_nlen > 0 ? sdl->sdl_nlen + 1 : 0;
682 printf("%s", link_ntoa(sdl) + n);
687 if (if_indextoname(sdl->sdl_index, ifname) != NULL)
697 (SA_SIZE(sdl) + (char *)sdl);
703 switch(sdl->sdl_type) {
710 trld = SDL_ISO88025(sdl);
749 nuke_entry(struct sockaddr_dl *sdl __unused,
779 rtmsg(int cmd, struct sockaddr_inarp *dst, struct sockaddr_dl *sdl)
853 NEXTADDR(RTA_GATEWAY, sdl);
1011 struct sockaddr_dl *sdl;
1045 sdl = (struct sockaddr_dl *)((char *)sin2 + SA_SIZE(sin2));
1046 if (rifname && if_indextoname(sdl->sdl_index, ifname) &&
1054 (*action)(sdl, sin2, ertm);
1061 print_entry_ext(struct sockaddr_dl *sdl, struct sockaddr_inarp *addr,
1082 if (sdl->sdl_alen)
1083 printf("%-17s ", print_lladdr(sdl));
1105 if (if_indextoname(sdl->sdl_index, ifname) == NULL)