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 setsockopts
at more than one level per socket?
Aucun commentaire:
Enregistrer un commentaire