I require a program to be written using libpcap in Linux and want to sniff all data it sees (promiscuous mode), filter out all TCP connections for port 80 and 443 and parse the destination URL, domain and IP address (all three) and then output the three fields in a log file.
Also, I require the ability to pass the interface name to the program on execution, rather than have it hard-coded into the code.