[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ns] nse error



hi everybody,
  Has anybody ever implement nse making on Redhat linux 7.1?Afer I make nse,I got the follow error code

-O2 -DTCP_DELAY_BIND_ALL -DNO_TK -DNIXVECTOR -DTCLCL_CLASSINSTVAR  -DNDEBUG -DHAVE_STL -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_0A7 -DHAVE_OTCL_H -DHAVE_LIBTK8_3 -DHAVE_TK_H -DHAVE_LIBTCL8_3 -DHAVE_TCL_H  -DHAVE_CONFIG_H -I. -I/ns-allinone-2.1b8/tclcl-1.0b11 -I/ns-allinone-2.1b8/otcl-1.0a7 -I/ns-allinone-2.1b8/include -I/ns-allinone-2.1b8/include -o emulate/tcptap.o emulate/tcptap.cc
emulate/tcptap.cc: In method `void TCPTapAgent::tcp_gen (char *, short 
unsigned int, short unsigned int, Packet *)':
emulate/tcptap.cc:230: `struct tcphdr' has no member named `th_sport'
emulate/tcptap.cc:231: `struct tcphdr' has no member named `th_dport'
emulate/tcptap.cc:233: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:234: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:236: `struct tcphdr' has no member named `th_off'
emulate/tcptap.cc:238: `struct tcphdr' has no member named `th_win'
emulate/tcptap.cc:248: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:249: `TH_FIN' undeclared (first use this function)
emulate/tcptap.cc:249: (Each undeclared identifier is reported only 
once for each function it appears in.)
emulate/tcptap.cc:250: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:251: `TH_SYN' undeclared (first use this function)
emulate/tcptap.cc:252: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:253: `TH_RST' undeclared (first use this function)
emulate/tcptap.cc:254: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:255: `TH_PUSH' undeclared (first use this function)
emulate/tcptap.cc:256: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:257: `TH_ACK' undeclared (first use this function)
emulate/tcptap.cc:258: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:259: `TH_URG' undeclared (first use this function)
emulate/tcptap.cc:260: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc: In method `void TCPTapAgent::recvpkt ()':
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:356: `struct tcphdr' has no member named `th_seq'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:357: `struct tcphdr' has no member named `th_ack'
emulate/tcptap.cc:358: `struct tcphdr' has no member named `th_off'
emulate/tcptap.cc:371: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:373: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:375: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:377: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:379: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc:381: `struct tcphdr' has no member named `th_flags'
emulate/tcptap.cc: In method `int TCPTapAgent::sendpkt (Packet *)':
emulate/tcptap.cc:455: `struct tcphdr' has no member named `th_sum'
make: *** [emulate/tcptap.o] Error 1

I don't know what I should modify as to compile nse successfully!
I am looking forward to comment on this,thanks!
Regards,
Li Zhang


_____________________________________________
[�㲻���� ��������] ����ר�úţ�95963���û���/���룺263
�ػݾ�Ʒ�յ�������  http://shopping.263.net/hotsale/aircondition/index.asp