RTEMS CPU Kit with SuperCore
4.11.3
|
#include <string.h>
#include <stdarg.h>
#include <stdio.h>
#include <errno.h>
#include <rtems.h>
#include <rtems/libio.h>
#include <rtems/error.h>
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems/semimpl.h>
#include <rtems/score/coremuteximpl.h>
#include <sys/types.h>
#include <sys/param.h>
#include <sys/domain.h>
#include <sys/mbuf.h>
#include <sys/socketvar.h>
#include <sys/socket.h>
#include <sys/sockio.h>
#include <sys/callout.h>
#include <sys/proc.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <net/route.h>
#include <netinet/in.h>
#include <vm/vm.h>
#include <arpa/inet.h>
#include <net/netisr.h>
#include "loop.h"
Data Structures | |
struct | newtask |
Functions | |
void | sysctl_register_all (void *arg) |
uint32_t | rtems_bsdnet_semaphore_release_recursive (void) |
void | rtems_bsdnet_semaphore_obtain_recursive (uint32_t nest_count) |
void * | malloc (size_t) |
void | free (void *) |
void * | rtems_bsdnet_malloc (size_t size, int type, int flags) |
void | rtems_bsdnet_free (void *addr, int type) |
void | rtems_set_udp_buffer_sizes (u_long, u_long) |
void | rtems_set_tcp_buffer_sizes (u_long, u_long) |
void | rtems_set_sb_efficiency (u_long) |
void | rtems_bsdnet_semaphore_obtain (void) |
void | rtems_bsdnet_semaphore_release (void) |
int | sbwait (struct sockbuf *sb) |
void | sowakeup (struct socket *so, struct sockbuf *sb) |
int | sb_lock (struct sockbuf *sb) |
void | wakeup (void *p) |
int | soconnsleep (struct socket *so) |
void | soconnwakeup (struct socket *so) |
void | rtems_bsdnet_schednetisr (int n) |
rtems_id | rtems_bsdnet_newproc (char *name, int stacksize, void(*entry)(void *), void *arg) |
rtems_status_code | rtems_bsdnet_event_receive (rtems_event_set event_in, rtems_option option_set, rtems_interval ticks, rtems_event_set *event_out) |
unsigned long | rtems_bsdnet_random (void) |
void | rtems_bsdnet_timeout (void(*ftn)(void *), void *arg, int ticks) |
int | hzto (struct timeval *tv) |
void | rtems_bsdnet_log (int priority, const char *fmt,...) |
u_int | in_cksum_hdr (const void *ip) |
int | rtems_bsdnet_rtrequest (int req, struct sockaddr *dst, struct sockaddr *gateway, struct sockaddr *netmask, int flags, struct rtentry **net_nrt) |
int | rtems_bsdnet_initialize_network (void) |
void | rtems_bsdnet_attach (struct rtems_bsdnet_ifconfig *ifp) |
void | rtems_bsdnet_detach (struct rtems_bsdnet_ifconfig *ifp) |
int | rtems_bsdnet_ifconfig (const char *ifname, uint32_t cmd, void *param) |
int | rtems_bsdnet_parse_driver_name (const struct rtems_bsdnet_ifconfig *config, char **namep) |
Splits a network interface name with interface configuration config into the unit name and number parts. More... | |
int | m_mballoc (int nmb, int nowait) |
int | m_clalloc (int ncl, int nowait) |
Variables | |
uint32_t | nmbclusters = (128L * 1024L) / MCLBYTES |
Semaphore_Control * | the_networkSemaphore |
int | rtems_bsdnet_ticks_per_second |
int | rtems_bsdnet_microseconds_per_tick |
struct callout * | callfree = NULL |
struct callout | calltodo |
int | nfs_diskless_valid |
struct in_addr | rtems_bsdnet_log_host_address = {0} |
struct in_addr | rtems_bsdnet_bootp_server_address = {0} |
char * | rtems_bsdnet_bootp_boot_file_name = 0 |
char * | rtems_bsdnet_bootp_server_name = 0 |
char * | rtems_bsdnet_domain_name = 0 |
char * | rtems_bsdnet_bootp_cmdline = 0 |
struct in_addr * | rtems_bsdnet_nameserver = _rtems_bsdnet_nameserver |
int | rtems_bsdnet_nameserver_count = 0 |
struct in_addr * | rtems_bsdnet_ntpserver = _rtems_bsdnet_ntpserver |
int | rtems_bsdnet_ntpserver_count = 0 |
int32_t | rtems_bsdnet_timeoffset = 0 |
struct domain | routedomain |
struct domain | inetdomain |
int | rtems_bsdnet_log_priority |
int rtems_bsdnet_parse_driver_name | ( | const struct rtems_bsdnet_ifconfig * | config, |
char ** | namep | ||
) |
Splits a network interface name with interface configuration config into the unit name and number parts.
Memory for the unit name will be allocated from the heap and copied to namep. If namep is NULL nothing will be allocated and copied.
Returns the unit number or -1 on error.