summaryrefslogtreecommitdiffstats
path: root/src/util/hijack.c
Commit message (Collapse)AuthorAgeFilesLines
* Make pcap_inject non-static, so that its prototype doesn't conflict withMichael Brown2006-04-051-1/+1
| | | | the real pcap_inject in the case where we do have it.
* Put in a substitute pcap_inject() function, since earlier versions ofMichael Brown2006-03-241-0/+32
| | | | | | libpcap are lacking the function. For now, we always use the substitute version, since there's no easy way to determine whether or not we need it.
* Terminate cleanly on SIGINT or SIGHUPMichael Brown2006-03-211-11/+41
|
* Use libpcap API to send/receive packets.Michael Brown2006-03-211-17/+114
| | | | | | | Include automatic filtering (based on source MAC address of first transmitted packet). Proven to successfully elicit a ping response from a remote host.
* Basic structure in place: can daemonise, listen on a Unix domainMichael Brown2006-03-211-0/+469
socket, accept new connections, open a network interface using libpcap and forward (all) traffic.