From 91683dc04d7fd95d32e38f0349f566def9a25bc6 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 17 Jun 2005 14:37:24 +0000 Subject: 2005-06-17 Joel Sherrill * libnetworking/net/if.h: Avoid use of struct mbuf to avoid unintended dependencies added by the RTEMS specific tap interface. --- cpukit/libnetworking/net/if.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpukit/libnetworking') diff --git a/cpukit/libnetworking/net/if.h b/cpukit/libnetworking/net/if.h index f01fbab429..55571e14f9 100644 --- a/cpukit/libnetworking/net/if.h +++ b/cpukit/libnetworking/net/if.h @@ -212,7 +212,8 @@ struct ifreq { int ifru_phys; int ifru_media; caddr_t ifru_data; - int (*ifru_tap)(struct ifnet *, struct ether_header *, struct mbuf *); + /* third argument must be cast to a struct mbuf * */ + int (*ifru_tap)(struct ifnet *, struct ether_header *, void *); } ifr_ifru; #define ifr_addr ifr_ifru.ifru_addr /* address */ #define ifr_dstaddr ifr_ifru.ifru_dstaddr /* other end of p-to-p link */ -- cgit v1.2.3