Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

Chapter 2

TCP/IP Porting

This chapter discusses porting the TCP/IP stack to a new environment. It is assumed that the stack is being ported to a small, embedded system with a network interface and that the ARM Software Development Toolkit, version 2.50, is available.

If you are using PPP, refer also to Chapter 3 PPP Porting.

This chapter contains the following sections:

Porting procedure on page 2-2

Portable and nonportable files on page 2-3

Creating the IP port file on page 2-4

Coding the glue layer on page 2-10

Specifying IP addresses on page 2-14

Testing the TCP/IP port on page 2-16.

ARM DUI 0079B

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

2-1

TCP/IP Porting

2.1Porting procedure

To create a working version of the TCP/IP stack on your target system:

1.Copy the portable source files into your development environment (see Portable and nonportable files on page 2-3).

2.Create a version of ipport.h (see Creating the IP port file on page 2-4) and compile the portable sources.

3.Write and compile the necessary code for the glue layers (see Coding the glue layer on page 2-10).

4.Specify the IP address information (see Specifying IP addresses on page 2-14).

5.Add your own code to use the stack.

6.Build a target system image, test, and debug (see Testing the TCP/IP port on page 2-16).

2-2

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B