Fixed. I'm sorry, my ignorance of sockets caused me to place the blame on unknown bytes being swapped when in fact my IP header struct had 1 short as a long which resulted in a shift in the entire structure. As a result, when I byte swapped the IP addresses, I was really byte swapping the first 4 bytes of my header.
|