* libnetworking/netdb.h, libnetworking/libc/gethostbyht.c,
libnetworking/libc/gethostnamadr.c: This patch adds a functional
gethostbyname_r to RTEMS. We were having problems with multiple
threads calling gethostbyname, so we decided the best way to deal
with it was to do it properly, rather than kludge up our code to make
gethostbyname safe. We have found several slightly different
parameter lists for this function, it does not seem to be standard.
The one we used has the linux interface. In RTEMS there was an
existing gethostbyname_r inside a #ifdef _THREAD_SAFE which was NOT
Threadsafe, as this just called gethostbyname. So we have placed all
of the additional code inside the #ifdef _THREAD_SAFE.
* ftpd/ftpd.c, libcsupport/include/sys/ioccom.h,
libcsupport/src/ioctl.c, libnetworking/kern/uipc_mbuf.c,
libnetworking/libc/inet_addr.c, libnetworking/net/ethernet.h,
libnetworking/net/if.c, libnetworking/net/if_ethersubr.c,
libnetworking/net/if_ppp.c, libnetworking/net/if_pppvar.h,
libnetworking/net/if_var.h, libnetworking/net/ppp_tty.c,
libnetworking/netinet/in_cksum.c, libnetworking/nfs/bootp_subr.c,
libnetworking/rtems/rtems_bsdnet_internal.h,
libnetworking/sys/mbuf.h, pppd/md4.c, pppd/pppd.h: Remove warnings
due to improper use of int which shows up on 16 bit targets. Added
ioctl_command_t since IOCTL command argument does not reliably fit
into 16 bits.
* libcsupport/include/sys/ioccom.h, libnetworking/kern/uipc_socket2.c,
libnetworking/net/ethernet.h, libnetworking/net/if.h,
libnetworking/net/if_ethersubr.c, libnetworking/net/if_ppp.c,
libnetworking/net/if_pppvar.h, libnetworking/net/ppp_tty.c,
libnetworking/net/pppcompress.c, libnetworking/net/slcompress.c,
libnetworking/netinet/in.h, libnetworking/netinet/ip_icmp.c,
libnetworking/netinet/tcp.h, libnetworking/netinet/tcp_seq.h,
libnetworking/sys/protosw.h, libnetworking/sys/socketvar.h: Remove
warnings. Most of the warnings were 16/32 bit integer sizing issues.
Some constants had L appended, some had casts add, some types were
changed to reflect a bit width requirement.
* libnetworking/kern/kern_sysctl.c: Change int to int32_t.
* libnetworking/net/if_loop.c: Add cast to long.
These plus a patch to machine/param.h let the h8300 build multilib.
* libnetworking/machine/in_cksum.h: Replaced PPC and
i386 assembly algorithms (must not assume carry bit is preserved
across multiple asms). Added packet header as a 'm' input
operand for all CPU variants. Added carry bit to clobber list.
* 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.
* libnetworking/Makefile.am,
libnetworking/preinstall.am: Added simple implementation of ethernet
media ioctl SIOCSIFMEDIA/SIOCGIFMEDIA for mii compliant phys.
* libnetworking/rtems/rtems_mii_ioctl.c,
libnetworking/rtems/rtems_mii_ioctl.h,
libnetworking/rtems/rtems_mii_ioctl_kern.c: New files.