Lines Matching refs:result
134 int result = 0;
153 result = ifnet_output_raw(ifp, np->nd_proto_family, m);
157 return (result);
323 int result;
364 result = 0;
370 result = ifnet_attach_protocol(ifp, PF_NDRV, &ndrv_proto);
372 if (result && result != EEXIST) {
373 return result;
805 int result = 0;
812 result = ifnet_detach_protocol(np->nd_if, np->nd_proto_family);
815 return result;
889 int result;
906 result = copyin(sopt->sopt_val, &ndrv_multi->addr, sopt->sopt_valsize);
909 if (result == 0 && sopt->sopt_valsize != ndrv_multi->addr.sa_len)
910 result = EINVAL;
912 if (result == 0 && ndrv_have_multicast(np, &ndrv_multi->addr))
913 result = EEXIST;
915 if (result == 0)
918 result = ifnet_add_multicast(np->nd_if, &ndrv_multi->addr,
922 if (result == 0)
935 return result;
943 int result;
958 result = copyin(sopt->sopt_val, multi_addr, sopt->sopt_valsize);
961 if (result == 0 && sopt->sopt_valsize != multi_addr->sa_len)
962 result = EINVAL;
964 if (result == 0)
970 result = ENOENT;
973 if (result == 0)
976 result = ifnet_remove_multicast(ndrv_entry->ifma);
979 if (result == 0)
1009 return result;