lkml.org 
[lkml]   [1997]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Ping
Richard B. Johnson wrote:

> Where can I find a version of ping that will compile with the latest
> kernel??? struct icmp is no longer defined anywhere although I hacked
> something that works....

The ones from NetKit 0.08 and 0.09 (NetKit-0.09.tar.gz) work for me with
2.1.20. I got this familiar error many times while compiling the NetKit
programs:

/usr/include/linux/socket.h:72: warning: no previous prototype for
`cmsg_nxthdr'

Are there problems with this patch, posted to the list awhile back by
Roel Lascano?

*** /usr/src/linux-2.1.13/include/linux/socket.h Sat Nov 30
12:28:20 1996
--- /usr/src/linux-2.1.13/include/linux/socket.h.~1~ Sat Nov 30
12:27:31 1996
***************
*** 60,67 ****
#define CMSG_DATA(cmsg) cmsg->cmsg_data
#define CMSG_NXTHDR(mhdr, cmsg) cmsg_nxthdr(mhdr, cmsg)
#define CMSG_FIRST(mhdr) ((struct cmsghdr *) (mhdr)->msg_control)
- extern __inline__ struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
- struct cmsghdr *cmsg);
extern __inline__ struct cmsghdr * cmsg_nxthdr(struct msghdr *mhdr,
struct cmsghdr *cmsg)
--- 60,65 ----
___
Trevor Johnson <trevor@jpj.net>



\
 
 \ /
  Last update: 2005-03-22 13:38    [from the cache]
©2003-2011 Jasper Spaans