diff options
Diffstat (limited to 'cpukit/libnetworking/net/if.h')
-rw-r--r-- | cpukit/libnetworking/net/if.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/libnetworking/net/if.h b/cpukit/libnetworking/net/if.h index 55571e14f9..8f7b6d95ba 100644 --- a/cpukit/libnetworking/net/if.h +++ b/cpukit/libnetworking/net/if.h @@ -194,6 +194,9 @@ struct ifa_msghdr { int ifam_metric; /* value of ifa_metric */ }; +/* forward declaration */ +struct mbuf; + /* * Interface request structure used for socket * ioctl's. All interface ioctl's must have parameter @@ -212,8 +215,7 @@ struct ifreq { int ifru_phys; int ifru_media; caddr_t ifru_data; - /* third argument must be cast to a struct mbuf * */ - int (*ifru_tap)(struct ifnet *, struct ether_header *, void *); + int (*ifru_tap)(struct ifnet *, struct ether_header *, struct mbuf *); } ifr_ifru; #define ifr_addr ifr_ifru.ifru_addr /* address */ #define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ |