Changeset 0383873 in rtems
- Timestamp:
- 04/18/05 16:26:58 (19 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 88d99508
- Parents:
- 69d3141
- Location:
- cpukit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
cpukit/ChangeLog
r69d3141 r0383873 1 1 2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org> 2 2 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. 3 6 * libnetworking/net/if_var.h: New (extracted from net/if.h). 4 7 * libnetworking/Makefile.am: Add net/if_var.h. -
cpukit/libnetworking/net/ethernet.h
r69d3141 r0383873 362 362 extern void ether_ifdetach(struct ifnet *); 363 363 extern int ether_ioctl(struct ifnet *, int, caddr_t); 364 extern void ether_input (struct ifnet *, struct ether_header *, struct mbuf *); 364 365 extern int ether_output(struct ifnet *, 365 366 struct mbuf *, struct sockaddr *, struct rtentry *); -
cpukit/libnetworking/net/if.c
r69d3141 r0383873 52 52 #include <net/if_dl.h> 53 53 #include <net/if_types.h> 54 #include <net/if_var.h> 54 55 #include <net/radix.h> 55 56 … … 80 81 /* ARGSUSED*/ 81 82 void 82 ifinit(dummy) 83 void *dummy; 83 ifinit(void *dummy) 84 84 { 85 85 struct ifnet *ifp; … … 476 476 */ 477 477 int 478 ifioctl(struct socket *so, intcmd, caddr_t data, struct proc *p)478 ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) 479 479 { 480 480 struct ifnet *ifp; … … 583 583 if (error) 584 584 return (error); 585 if (ifp->if_ioctl == 0)585 if (ifp->if_ioctl == NULL) 586 586 return (EOPNOTSUPP); 587 587 error = (*ifp->if_ioctl)(ifp, cmd, data); … … 591 591 592 592 case SIOCGIFMEDIA: 593 if (ifp->if_ioctl == 0)593 if (ifp->if_ioctl == NULL) 594 594 return (EOPNOTSUPP); 595 595 return ((*ifp->if_ioctl)(ifp, cmd, data)); -
cpukit/libnetworking/net/if_ethersubr.c
r69d3141 r0383873 521 521 */ 522 522 char * 523 ether_sprintf(const u_ int8_t *addr)523 ether_sprintf(const u_char *ap) 524 524 { 525 525 static char buf[32]; … … 528 528 529 529 for (i = 0; i < ETHER_ADDR_LEN; i++, b+=3) 530 sprintf(b, "%02x:", *a ddr++);530 sprintf(b, "%02x:", *ap++); 531 531 *--b = '\0'; 532 532 return buf; … … 849 849 case AF_IPX: 850 850 { 851 registerstruct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr);851 struct ipx_addr *ina = &(IA_SIPX(ifa)->sipx_addr); 852 852 struct arpcom *ac = (struct arpcom *) (ifp->if_softc); 853 853
Note: See TracChangeset
for help on using the changeset viewer.