/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/ |
H A D | nd6_nbr.c | 107 char *lladdr = NULL; local 169 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); 173 if (IN6_IS_ADDR_UNSPECIFIED(&ip6->ip6_src) && lladdr) { 249 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 309 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_NEIGHBOR_SOLICIT, 0); 556 char *lladdr = NULL; local 615 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); 644 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 664 * If the link-layer has address, and no lladdr option came, 667 if (ifp->if_addrlen && !lladdr) [all...] |
H A D | nd6.c | 1681 char *lladdr, 1720 /* nothing must be done if there's no lladdr */ 1721 if (!lladdr || !lladdrlen) 1755 if (olladdr && lladdr) { 1756 if (bcmp(lladdr, LLADDR(sdl), ifp->if_addrlen)) 1764 * newentry olladdr lladdr llchange (*=record) 1774 if (lladdr) { /* (3-5) and (7) */ 1780 bcopy(lladdr, LLADDR(sdl), ifp->if_addrlen); 1784 if ((!olladdr && lladdr) /* (3) */ 1785 || (olladdr && lladdr 1678 nd6_cache_lladdr( struct ifnet *ifp, struct in6_addr *from, char *lladdr, __unused int lladdrlen, int type, int code) argument [all...] |
H A D | nd6_rtr.c | 150 char *lladdr = NULL; local 201 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); 205 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 213 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_ROUTER_SOLICIT, 0); 438 char *lladdr = NULL; local 442 lladdr = (char *)(ndopts.nd_opts_src_lladdr + 1); 446 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 454 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, ND_ROUTER_ADVERT, 0);
|
H A D | icmp6.c | 2232 char *lladdr = NULL; local 2360 lladdr = (char *)(ndopts.nd_opts_tgt_lladdr + 1); 2369 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 2379 nd6_cache_lladdr(ifp, &redtgt6, lladdr, lladdrlen, ND_REDIRECT, 2568 /* target lladdr option */ 2573 char *lladdr; local 2591 lladdr = (char *)(nd_opt + 1); 2592 bcopy(LLADDR(sdl), lladdr, ifp->if_addrlen); local
|
/macosx-10.5.8/xnu-1228.15.4/bsd/net/ |
H A D | kpi_interface.c | 884 void* lladdr, 888 if (interface == NULL || lladdr == NULL) return EINVAL; 894 bzero(lladdr, lladdr_len); 897 bcopy(LLADDR(sdl), lladdr, lladdr_len); local 898 if (bcmp(lladdr, LLADDR(sdl), lladdr_len) == 0 && 908 const void *lladdr, 919 if (lladdr_len != 0 && (lladdr_len != interface->if_addrlen || lladdr == 0)) 927 bcopy(lladdr, LLADDR(sdl), lladdr_len); 955 const void* lladdr, 958 return ifnet_set_lladdr_internal(interface, lladdr, lladdr_le 882 ifnet_lladdr_copy_bytes( ifnet_t interface, void* lladdr, size_t lladdr_len) argument 906 ifnet_set_lladdr_internal( ifnet_t interface, const void *lladdr, size_t lladdr_len, u_char new_type, int apply_type) argument 953 ifnet_set_lladdr( ifnet_t interface, const void* lladdr, size_t lladdr_len) argument 962 ifnet_set_lladdr_and_type( ifnet_t interface, const void* lladdr, size_t lladdr_len, u_char type) argument [all...] |
H A D | kpi_interface.h | 1339 @param lladdr A pointer to the raw link layer address (pointer to 1343 errno_t ifnet_set_lladdr(ifnet_t interface, const void* lladdr, size_t lladdr_len); 1350 @param lladdr The buffer to copy the link-layer address in to. 1354 errno_t ifnet_lladdr_copy_bytes(ifnet_t interface, void* lladdr, size_t length); 1386 @param lladdr A pointer to the raw link layer address (pointer to 1391 errno_t ifnet_set_lladdr_and_type(ifnet_t interface, const void* lladdr, size_t length, u_char type);
|
H A D | if.c | 2094 if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len) argument
|
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/ |
H A D | in_arp.c | 348 const u_char * lladdr = (u_char *)sdl->sdl_data; local 356 snprintf(buf, 3, "%02x", lladdr[i]);
|