You can compile hping2 at least under:

Linux
OpenBSD
FreeBSD
NetBSD

With Linux you don't need any libs, nor to be root,
however you need uid 0 to run hping.

LINUX
-----

please, follows this steps:

$ ./configure (first try ./configure --help)
$ vi Makefile (optional)
$ make
$ su
# make install

FreeBSD, OpenBSD, NetBSD
------------------------

You will need the libpcap and the gmake utility installed on your system. 

Patch the configure file :
patch < configure.bsd.patch

and :
$ ./configure --force-libpcap
$ gmake
$ su (or calife)
# gmake install

ALL
---

If you need to run hping2 by your normal
account (i.e. antirez) try the following commands:

# chown root:antirez /usr/sbin/hping2
# chmod 4750 /usr/sbin/hping2

	WARNING: hping2 isn't so trusted code, i didn't
	audit for hidden buffers overflow and others
	security related problems. However if (as default)
	LIMITWHENSUID is defined if euid != uid
	it's not possible to use a lot of options
	trivially unsafe.

antirez
