hping2 complation problem on solaris

I encountered errors when compling hping2 on my solaris x86 box. I spent some time to find out what's the matter and finally got it solved.

libpcap_stuff.c
net/bpf.h not found.

To work around: just remove "#include <net/bpf.h>", 'cos it is changed to pcap-bpf.h and included by pcap.h

ars.h
error: parse error before "u_int8_t"

To work around: just add these to ars.h:

#define u_int8_t unsigned char
#define u_int16_t unsigned short
#define u_int32_t unsigned int

See also: hping open bugs

0 Comments so far

  1. There are currently no comments.
Leave a Comment?


« 也开始准备找工作了  —  General Tips To Overcome An Interview »

Tags

Blogroll

Fairy World | STUPiD | 阅微草堂 | ShelleX | 流浪五天