If you use an extended Fronkey style bug net he could lay under the hammock, though from my experience dogs are not great with netting, they have trouble finding the door so tend to make their own!
I wonder if one of those clip-on bug repellant devices would work?