Undefine the struct. I'm assuming you're getting the error in unp.h,
line 114. If so, then do this:
/* The structure returned by recvfrom_flags() */
// struct in_pktinfo {
// struct in_addr ipi_addr; /* dst IPv4 address */
// int ipi_ifindex;/* received interface index */
//};
If for some strange reason your compiler doesn't like the '//' sequence
for comments, then do this:
/* The structure returned by recvfrom_flags() */
/* struct in_pktinfo {
struct in_addr ipi_addr;
int ipi_ifindex;
Quote:};
*/
BTW, you'll get answers quicker in a programming NG. Your post is off
topic here, just as a fyi.
David Means
> Please help!
> I try to study source code from W. Richard Stevens book:
> Unix networking programming Networking APIs:Sockets
> and XTI in Linux Red Hat 7.0 platform.
> I download the file
> unpv12e.tar.gz, my operation is as following:
> gunzip -c unpv12e.tar.gz |tar -xvf-
> cd unpv12e
> ./configure
> cd lib
> make
> then appear in_pktinfo redifination error
> I am a biginner about Linux ,Unix, Networking, I have no ieda about this
> error. please give me
> some guide,what should I do next. thank in advance!
> David
> Email:
--
No trees were killed in the sending of this message. However,
a large number of electrons were terribly inconvenienced.