diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-11-08 14:24:28 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2005-11-08 14:24:28 +0000 |
commit | 7554bb3a75ef437583b5590fd9daadaac112ef3f (patch) | |
tree | bc9e9e3c3931e408af37f8a68e51103d0d536595 /cpukit/libnetworking/net/if.h | |
parent | changes (diff) | |
download | rtems-7554bb3a75ef437583b5590fd9daadaac112ef3f.tar.bz2 |
2005-11-08 Joel Sherrill <joel@OARcorp.com>
* libnetworking/net/if.h: Add forward reference declaration to
struct mbuf so ifru_tap callback is properly typed.
* libnetworking/rtems/rtems_bsdnet.h: Add definition of _BSD_VISIBLE
which needs to be defined so various pieces of the .h files are
visible to device drives.
Diffstat (limited to '')
-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 */ |