Lines Matching refs:entp

603 	ipmp_arpent_t *entp;  in ipmp_illgrp_add_ipif()  local
613 entp = ipmp_illgrp_lookup_arpent(illg, &ipif->ipif_lcl_addr); in ipmp_illgrp_add_ipif()
614 if (entp != NULL) in ipmp_illgrp_add_ipif()
615 ipmp_illgrp_destroy_arpent(illg, entp); in ipmp_illgrp_add_ipif()
841 ipmp_arpent_t *entp, *oentp; in ipmp_illgrp_create_arpent() local
845 if ((entp = kmem_alloc(sizeof (ipmp_arpent_t) + lladdr_len, in ipmp_illgrp_create_arpent()
852 if ((oentp = ipmp_illgrp_lookup_arpent(illg, &entp->ia_ipaddr)) != NULL) in ipmp_illgrp_create_arpent()
858 entp->ia_ipaddr = ipaddr; in ipmp_illgrp_create_arpent()
859 entp->ia_flags = flags; in ipmp_illgrp_create_arpent()
860 entp->ia_lladdr_len = lladdr_len; in ipmp_illgrp_create_arpent()
861 entp->ia_lladdr = (uchar_t *)&entp[1]; in ipmp_illgrp_create_arpent()
862 bcopy(lladdr, entp->ia_lladdr, lladdr_len); in ipmp_illgrp_create_arpent()
863 entp->ia_proxyarp = proxyarp; in ipmp_illgrp_create_arpent()
864 entp->ia_notified = B_TRUE; in ipmp_illgrp_create_arpent()
865 list_insert_head(&illg->ig_arpent, entp); in ipmp_illgrp_create_arpent()
866 return (entp); in ipmp_illgrp_create_arpent()
873 ipmp_illgrp_destroy_arpent(ipmp_illgrp_t *illg, ipmp_arpent_t *entp) in ipmp_illgrp_destroy_arpent() argument
877 list_remove(&illg->ig_arpent, entp); in ipmp_illgrp_destroy_arpent()
878 kmem_free(entp, sizeof (ipmp_arpent_t) + entp->ia_lladdr_len); in ipmp_illgrp_destroy_arpent()
887 ipmp_illgrp_mark_arpent(ipmp_illgrp_t *illg, ipmp_arpent_t *entp) in ipmp_illgrp_mark_arpent() argument
889 entp->ia_notified = B_TRUE; in ipmp_illgrp_mark_arpent()
899 ipmp_arpent_t *entp = list_head(&illg->ig_arpent); in ipmp_illgrp_lookup_arpent() local
904 return (entp); in ipmp_illgrp_lookup_arpent()
906 for (; entp != NULL; entp = list_next(&illg->ig_arpent, entp)) in ipmp_illgrp_lookup_arpent()
907 if (entp->ia_ipaddr == *addrp) in ipmp_illgrp_lookup_arpent()
909 return (entp); in ipmp_illgrp_lookup_arpent()
922 ipmp_arpent_t *entp; in ipmp_illgrp_refresh_arpent() local
930 entp = list_head(&illg->ig_arpent); in ipmp_illgrp_refresh_arpent()
931 for (; entp != NULL; entp = list_next(&illg->ig_arpent, entp)) { in ipmp_illgrp_refresh_arpent()
933 entp->ia_notified = B_FALSE; in ipmp_illgrp_refresh_arpent()
944 if (entp->ia_proxyarp) { in ipmp_illgrp_refresh_arpent()
945 if (bcmp(ill->ill_phys_addr, entp->ia_lladdr, in ipmp_illgrp_refresh_arpent()
946 paddrlen) == 0 && entp->ia_notified) in ipmp_illgrp_refresh_arpent()
948 bcopy(ill->ill_phys_addr, entp->ia_lladdr, paddrlen); in ipmp_illgrp_refresh_arpent()
951 (void) nce_lookup_then_add_v4(ipmp_ill, entp->ia_lladdr, in ipmp_illgrp_refresh_arpent()
952 paddrlen, &entp->ia_ipaddr, entp->ia_flags, ND_UNCHANGED, in ipmp_illgrp_refresh_arpent()
954 if (nce == NULL || !entp->ia_proxyarp) { in ipmp_illgrp_refresh_arpent()
964 ipmp_illgrp_mark_arpent(illg, entp); in ipmp_illgrp_refresh_arpent()
1227 ipmp_arpent_t *entp; in ipmp_ill_leave_illgrp() local
1295 while ((entp = ipmp_illgrp_lookup_arpent(illg, NULL)) != NULL) in ipmp_ill_leave_illgrp()
1296 ipmp_illgrp_destroy_arpent(illg, entp); in ipmp_ill_leave_illgrp()