Date: Tue, 10 Jan 2006 12:03:51 +0000 From: "SPYRIDON PAPADOPOULOS" <SP373@student.apu.ac.uk> To: freebsd-questions@freebsd.org Subject: ip_icmp.h strange problem Message-ID: <1136894631.20dec60SP373@student.apu.ac.uk>
next in thread | raw e-mail | index | archive | help
Hi, I am include ip_icmp.h to a program. The icmp struct in there is exactly th= e same with the one on: http://fxr.watson.org/fxr/source/netinet/ip_icmp.h?v=3DTRUSTEDBSD-AUDIT3=20 (this is just the first exactly the same struct i found online) I am using FreeBSD 5.4-RELEASE #1 I have already included header files like tcp.h, ip.h, udp.h etc in my prog= ram. Now when i am trying to compile my program with the command: #gcc -o capTool capTool0.1 -lpcap it gives me syntax errors, where n_short values appear: lines: 60, 61, 67, = 68 and 89 (in my ip_icmp.h). 71, 72, 78, 79 and 100 (on the online one). After changing the first four to "u_short ..." it compiles properly... This also happened with some value in ip.h. However i am not sure which one= now, because i changed it and it worked immediately (so i didn't even no= te what exactly i changed..and since it worked to be honest i didn't mind= ) the problem is with the value in line 89: n_time its_otime; /* Originate */ even if i change that to: u_time its_otime; /* Originate */ it still gives me syntax error before "n_time" or "u_time" Can anyone help and explain briefly - if possible - how is this happening? = I cannot believe that the n_* values are wrong, but are working when chan= ging them to u_*. I like getting involved with the system header files...but it doesn't reall= y look appropriate to me ;o), or it is? This message is written quickly in case the problem is known. I can provide= with any required information if needed. Please advice thank you in advance Spiros Papadopoulos
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1136894631.20dec60SP373>