Michael Brown
9ea782d339
Make pcap_inject non-static, so that its prototype doesn't conflict with
the real pcap_inject in the case where we do have it.
18 роки тому
Michael Brown
1c607470e3
Put in a substitute pcap_inject() function, since earlier versions of
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.
18 роки тому
Michael Brown
c5a9c38606
Terminate cleanly on SIGINT or SIGHUP
18 роки тому
Michael Brown
e072baeb8c
Use libpcap API to send/receive packets.
Include automatic filtering (based on source MAC address of first
transmitted packet).
Proven to successfully elicit a ping response from a remote host.
18 роки тому
Michael Brown
4485df516c
Basic structure in place: can daemonise, listen on a Unix domain
socket, accept new connections, open a network interface using libpcap
and forward (all) traffic.
18 роки тому