Home
last modified time | relevance | path

Searched refs:nhp (Results 1 – 7 of 7) sorted by relevance

/freebsd/sys/net/
H A Dnetisr.c385 netisr_register(const struct netisr_handler *nhp) in netisr_register() argument
392 proto = nhp->nh_proto; in netisr_register()
393 name = nhp->nh_name; in netisr_register()
400 KASSERT(nhp->nh_name != NULL, in netisr_register()
402 KASSERT(nhp->nh_handler != NULL, in netisr_register()
404 KASSERT(nhp->nh_policy == NETISR_POLICY_SOURCE || in netisr_register()
405 nhp->nh_policy == NETISR_POLICY_FLOW || in netisr_register()
406 nhp->nh_policy == NETISR_POLICY_CPU, in netisr_register()
408 nhp->nh_policy, name)); in netisr_register()
409 KASSERT(nhp in netisr_register()
479 netisr_clearqdrops(const struct netisr_handler * nhp) netisr_clearqdrops() argument
510 netisr_getqdrops(const struct netisr_handler * nhp,u_int64_t * qdropp) netisr_getqdrops() argument
543 netisr_getqlimit(const struct netisr_handler * nhp,u_int * qlimitp) netisr_getqlimit() argument
572 netisr_setqlimit(const struct netisr_handler * nhp,u_int qlimit) netisr_setqlimit() argument
634 netisr_unregister(const struct netisr_handler * nhp) netisr_unregister() argument
681 netisr_register_vnet(const struct netisr_handler * nhp) netisr_register_vnet() argument
756 netisr_unregister_vnet(const struct netisr_handler * nhp) netisr_unregister_vnet() argument
[all...]
H A Dnetisr.h204 void netisr_clearqdrops(const struct netisr_handler *nhp);
205 void netisr_getqdrops(const struct netisr_handler *nhp,
207 void netisr_getqlimit(const struct netisr_handler *nhp, u_int *qlimitp);
208 void netisr_register(const struct netisr_handler *nhp);
209 int netisr_setqlimit(const struct netisr_handler *nhp, u_int qlimit);
210 void netisr_unregister(const struct netisr_handler *nhp);
212 void netisr_register_vnet(const struct netisr_handler *nhp);
213 void netisr_unregister_vnet(const struct netisr_handler *nhp);
/freebsd/contrib/libucl/src/
H A Ducl_internal.h476 ucl_hash_t *nhp; in ucl_hash_insert_object() local
479 nhp = ucl_hash_create (ignore_case); in ucl_hash_insert_object()
480 if (nhp == NULL) { in ucl_hash_insert_object()
484 nhp = hashlin; in ucl_hash_insert_object()
486 if (!ucl_hash_insert (nhp, obj, obj->key, obj->keylen)) { in ucl_hash_insert_object()
487 if (nhp != hashlin) { in ucl_hash_insert_object()
488 ucl_hash_destroy(nhp, NULL); in ucl_hash_insert_object()
493 return nhp; in ucl_hash_insert_object()
/freebsd/lib/libc/net/
H A Dname6.c402 struct hostent *nhp; in _hpcopy() local
437 if ((nhp = (struct hostent *)malloc(size)) == NULL) { in _hpcopy()
441 cp = (char *)&nhp[1]; in _hpcopy()
443 nhp->h_name = cp; in _hpcopy()
447 nhp->h_name = NULL; in _hpcopy()
448 nhp->h_aliases = (char **)((char *)nhp + al_off); in _hpcopy()
452 nhp->h_aliases[i++] = cp; in _hpcopy()
458 nhp->h_aliases[nalias] = NULL; in _hpcopy()
459 cp = (char *)&nhp->h_aliases[nalias + 1]; in _hpcopy()
460 nhp->h_addrtype = hp->h_addrtype; in _hpcopy()
[all …]
/freebsd/usr.sbin/rpc.lockd/
H A Dlockd_lock.c2007 struct host *ihp, *nhp; in monitor_lock_host() local
2030 nhp = malloc(sizeof(*nhp) - sizeof(nhp->name) + n + 1); in monitor_lock_host()
2031 if (nhp == NULL) { in monitor_lock_host()
2037 memcpy(nhp->name, hostname, n); in monitor_lock_host()
2038 nhp->name[n] = 0; in monitor_lock_host()
2039 nhp->refcnt = 1; in monitor_lock_host()
2046 smon.mon_id.mon_name = nhp->name; in monitor_lock_host()
2070 LIST_INSERT_HEAD(&hostlst_head, nhp, hostlst); in monitor_lock_host()
2072 free(nhp); in monitor_lock_host()
/freebsd/contrib/sendmail/src/
H A Denvelope.c674 register HDR **nhp; local
728 nhp = &e->e_header;
731 *nhp = (HDR *) sm_rpool_malloc_x(rpool, sizeof(*bh));
732 memmove((char *) *nhp, (char *) bh, sizeof(*bh));
734 nhp = &(*nhp)->h_link;
/freebsd/crypto/openssh/
H A Dumac.c892 UINT64 *nhp = (UINT64 *)nh_res; in ip_short() local
894 t = ip_aux(0,ahc->ip_keys, nhp[0]); in ip_short()
897 t = ip_aux(0,ahc->ip_keys+4, nhp[1]); in ip_short()
901 t = ip_aux(0,ahc->ip_keys+8, nhp[2]); in ip_short()
905 t = ip_aux(0,ahc->ip_keys+12, nhp[3]); in ip_short()