nh = nexthop_alloc(); nh->state = NEXTHOP_REACH; nh->exit_nexthop.af = AF_INET; nh->exit_nexthop.v4.s_addr = INADDR_ANY;  LIST_INSERT_HEAD(NEXTHOP_HASH(nh->exit_nexthop.v4), nh, nexthop_l);  memcpy(&nh->true_nexthop, &nh->exit_nexthop, sizeof(nh->true_nexthop)); nh->nexthop_netlen = 0; nh->nexthop_net.af = AF_INET; nh->nexthop_net.v4.s_addr = INADDR_ANY;  nh->flags = NEXTHOP_ANNOUNCE;
nexthop_init(u_int32_t hashsize){	struct nexthop	*nh;	u_int32_t	 hs, i;	for (hs = 1; hs < hashsize; hs <<= 1)		;	nexthoptable.nexthop_hashtbl = calloc(hs, sizeof(struct nexthop_table));	if (nexthoptable.nexthop_hashtbl == NULL)		fatal("nextop_init");	for (i = 0; i < hs; i++)		LIST_INIT(&nexthoptable.nexthop_hashtbl[i]);	nexthoptable.nexthop_hashmask = hs - 1;	/* add dummy entry for connected networks */	nh = nexthop_alloc();	nh->state = NEXTHOP_REACH;	nh->exit_nexthop.af = AF_INET;	nh->exit_nexthop.v4.s_addr = INADDR_ANY;	LIST_INSERT_HEAD(NEXTHOP_HASH(nh->exit_nexthop.v4), nh,	    nexthop_l);	memcpy(&nh->true_nexthop, &nh->exit_nexthop,	    sizeof(nh->true_nexthop));	nh->nexthop_netlen = 0;	nh->nexthop_net.af = AF_INET;	nh->nexthop_net.v4.s_addr = INADDR_ANY;	nh->flags = NEXTHOP_ANNOUNCE;}