Changeset 0383873 in rtems


Ignore:
Timestamp:
04/18/05 16:26:58 (19 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
88d99508
Parents:
69d3141
Message:

2005-04-18 Ralf Corsepius <ralf.corsepius@…>

  • libnetworking/net/ethernet.h: Add RTEMS outdated either_input.
  • libnetworking/net/if.c: Partial update from FreeBSD.
  • libnetworking/net/if_ethersubr.c: Partial update from FreeBSD.
Location:
cpukit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r69d3141 r0383873  
    112005-04-18      Ralf Corsepius <ralf.corsepius@rtems.org>
    22
     3        * libnetworking/net/ethernet.h: Add RTEMS outdated either_input.
     4        * libnetworking/net/if.c: Partial update from FreeBSD.
     5        * libnetworking/net/if_ethersubr.c: Partial update from FreeBSD.
    36        * libnetworking/net/if_var.h: New (extracted from net/if.h).
    47        * libnetworking/Makefile.am: Add net/if_var.h.
  • cpukit/libnetworking/net/ethernet.h

    r69d3141 r0383873  
    362362extern  void ether_ifdetach(struct ifnet *);
    363363extern  int  ether_ioctl(struct ifnet *, int, caddr_t);
     364extern  void    ether_input (struct ifnet *, struct ether_header *, struct mbuf *);
    364365extern  int  ether_output(struct ifnet *,
    365366                   struct mbuf *, struct sockaddr *, struct rtentry *);
  • cpukit/libnetworking/net/if.c

    r69d3141 r0383873  
    5252#include <net/if_dl.h>
    5353#include <net/if_types.h>
     54#include <net/if_var.h>
    5455#include <net/radix.h>
    5556
     
    8081/* ARGSUSED*/
    8182void
    82 ifinit(dummy)
    83         void *dummy;
     83ifinit(void *dummy)
    8484{
    8585        struct ifnet *ifp;
     
    476476 */
    477477int
    478 ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p)
     478ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p)
    479479{
    480480        struct ifnet *ifp;
     
    583583                if (error)
    584584                        return (error);
    585                 if (ifp->if_ioctl == 0)
     585                if (ifp->if_ioctl == NULL)
    586586                        return (EOPNOTSUPP);
    587587                error = (*ifp->if_ioctl)(ifp, cmd, data);
     
    591591
    592592        case SIOCGIFMEDIA:
    593                 if (ifp->if_ioctl == 0)
     593                if (ifp->if_ioctl == NULL)
    594594                        return (EOPNOTSUPP);
    595595                return ((*ifp->if_ioctl)(ifp, cmd, data));
  • cpukit/libnetworking/net/if_ethersubr.c

    r69d3141 r0383873  
    521521 */
    522522char *
    523 ether_sprintf(const u_int8_t *addr)
     523ether_sprintf(const u_char *ap)
    524524{
    525525        static char buf[32];
     
    528528
    529529        for (i = 0; i < ETHER_ADDR_LEN; i++, b+=3)
    530                 sprintf(b, "%02x:", *addr++);
     530                sprintf(b, "%02x:", *ap++);
    531531        *--b = '\0';
    532532        return buf;
     
    849849                case AF_IPX:
    850850                        {
    851                         register struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
     851                        struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);
    852852                        struct arpcom *ac = (struct arpcom *) (ifp->if_softc);
    853853
Note: See TracChangeset for help on using the changeset viewer.