My vet said that it looked like roundworms but that using the heartworm preventative that I have should have prevented that.
The parasite, spread by mosquitos, can be life-threatening.