source: network-demos/netlink/init.c @ 3d7557e

4.11netdemos-4-5-branchnetwork-demos-4-10-branchnetwork-demos-4-6-branchnetwork-demos-4-7-branchnetwork-demos-4-8-branchnetwork-demos-4-9-branchrtems-4-5-branch
Last change on this file since 3d7557e was 3d7557e, checked in by Joel Sherrill <joel.sherrill@…>, on 11/12/99 at 20:14:13

New test to determine network application sizes.

  • Property mode set to 100644
File size: 1.9 KB
Line 
1/*  Init
2 *
3 *  This routine is the initialization task for this test program.
4 *
5 *  Don't forget to change the IP addresses
6 */
7
8#include <bsp.h>
9
10#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
11#define CONFIGURE_TEST_NEEDS_CLOCK_DRIVER
12#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
13
14#define CONFIGURE_EXECUTIVE_RAM_SIZE    (512*1024)
15#define CONFIGURE_MAXIMUM_SEMAPHORES    20
16#define CONFIGURE_MAXIMUM_TASKS         20
17
18#define CONFIGURE_INIT_TASK_STACK_SIZE  (10*1024)
19#define CONFIGURE_INIT_TASK_PRIORITY    120
20#define CONFIGURE_INIT_TASK_INITIAL_MODES (RTEMS_PREEMPT | \
21                                           RTEMS_NO_TIMESLICE | \
22                                           RTEMS_NO_ASR | \
23                                           RTEMS_INTERRUPT_LEVEL(0))
24
25#define CONFIGURE_INIT
26
27rtems_task Init(
28  rtems_task_argument argument
29);
30
31/* configuration information */
32
33#include <confdefs.h>
34
35#include <errno.h>
36#include <time.h>
37
38#include <confdefs.h>
39#include <stdio.h>
40#include <rtems/rtems_bsdnet.h>
41#include <ftpd.h>
42
43     
44#include <rtems/error.h>
45#include <rpc/rpc.h>
46#include <netinet/in.h>
47#include <time.h>
48
49#include <arpa/inet.h>
50#include <sys/socket.h>
51#include "networkconfig.h"
52
53#include <rtems_webserver.h>
54
55#define ARGUMENT 0
56
57extern int _binary_tarfile_start;
58extern int _binary_tarfile_size;
59
60struct rtems_ftpd_configuration rtems_ftpd_configuration = {
61   10,                     /* FTPD task priority            */
62   1024,                   /* Maximum buffersize for hooks  */
63   80,                     /* Well-known port     */
64   NULL                    /* List of hooks       */
65};
66
67rtems_task Init(
68  rtems_task_argument argument
69)
70{
71  rtems_status_code status;
72
73  rtems_bsdnet_initialize_network ();
74
75  rtems_initialize_ftpd();
76
77  status = Untar_FromMemory((unsigned char *)(&_binary_tarfile_start),
78                            &_binary_tarfile_size);
79   
80  rtems_initialize_webserver();
81#if 0
82
83  status = rtems_task_delete( RTEMS_SELF );
84#endif
85}
86
87
88
89
Note: See TracBrowser for help on using the repository browser.