vendredi 28 avril 2017

Getting the destination port of incoming UDP packet

I've read through the ip man page along with the socket man page, all I could find was the destination IP address within the IP_PKTINFO control message in the header, there seems to be no way of pulling the destination port from the packet's header. Or is there?

If not, is there any way to get the port from the socket a packet has arrived to?

Aucun commentaire:

Enregistrer un commentaire