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