0

So basically I currently have my socket set up with

setsockopt(nativeSock, SOL_SOCKET, SO_TIMESTAMPING,
            &so_timestamping_flags, sizeof(so_timestamping_flags)

because I need access to the msghdr for timestamping reasons. However, I also need access to the iphdr to pull ttl and a few other values from incoming datagrams.

Is it possible to setsockopt at more than one level per socket?

notAChance
  • 1,360
  • 4
  • 15
  • 47

0 Answers0