diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-01-21 22:25:43 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1999-01-21 22:25:43 +0000 |
commit | 94b3ee1366fddb9aca95f2f1ec61d633deb66510 (patch) | |
tree | 343ae71bb853274c8608e0792832a6f72cf33a71 /cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | |
parent | Added common problems section after post by Philippe Le Foll (diff) | |
download | rtems-94b3ee1366fddb9aca95f2f1ec61d633deb66510.tar.bz2 |
Made to compile after hacking tftp driver into beginnings of a mini-filesystem.
Diffstat (limited to 'cpukit/libnetworking/rtems/rtems_bsdnet_internal.h')
-rw-r--r-- | cpukit/libnetworking/rtems/rtems_bsdnet_internal.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h index 453fb23c66..5d355f4a36 100644 --- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h +++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h @@ -166,7 +166,7 @@ extern int rtems_bsdnet_nameserver_count; /* * Some extra prototypes */ -int sethostname (char *name, int namelen); +int sethostname (char *name, size_t namelen); void domaininit (void *); void ifinit (void *); void ipintr (void); @@ -174,5 +174,19 @@ void arpintr (void); void bootpc_init(void); int socket (int, int, int); int ioctl (int, unsigned long, ...); +struct socket *rtems_bsdnet_fdToSocket (int fd); +int rtems_bsdnet_makeFdForSocket (struct socket *); + +/* + * Events used by networking routines. + * Everything will break if the application + * tries to use these events or if the `sleep' + * events are equal to any of the NETISR * events. + */ +#define SBWAIT_EVENT RTEMS_EVENT_24 +#define SOSLEEP_EVENT RTEMS_EVENT_25 +#define NETISR_IP_EVENT (1 << NETISR_IP) +#define NETISR_ARP_EVENT (1 << NETISR_ARP) +#define NETISR_EVENTS (NETISR_IP_EVENT|NETISR_ARP_EVENT) #endif /* _RTEMS_BSDNET_INTERNAL_H_ */ |