Answer the question
In order to leave comments, you need to log in
How to find out Source and Destination addresses from MPLS type packet (pcap.h, c/c++)?
I'm trying to write a program that extracts information from a pcap file (similar to Wireshark).
if (ethernet->ether_type == 8)
{
printf("IPv4: src address: %s ", inet_ntoa(ip->ip_src));
printf("dest address: %s\n", inet_ntoa(ip->ip_dst));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question