
< 		memcpy(nexthop_mac, neigh->ha, ETH_ALEN);
---
> 		if (neigh->ha != NULL) {
> 			memcpy(nexthop_mac, neigh->ha, ETH_ALEN);
> 		} else {
> 			// Handle the case where neigh->ha is NULL
> 			memset(nexthop_mac, 0, ETH_ALEN);
> 		}
