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/ChangeLog | 5 +++++ cpukit/libnetworking/net/if.h | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index d643274639..b0e708ccf9 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +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. + 2005-06-09 Jacques Seronie Vivien PR 790/rtems 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