ethernet

所属分类:VxWorks
开发工具:C/C++
文件大小:7KB
下载次数:29
上传日期:2008-06-19 15:08:58
上 传 者200433
说明:  vxworks 下的网络程序源码以太网源代码
(under VxWorks source Ethernet network program source code)

文件列表:
ethernet\etherDemo.h (842, 2002-07-17)
ethernet\etherInputDemo.c (3487, 2002-07-17)
ethernet\etherOutputDemo.c (3074, 2002-07-17)
ethernet\printEtherAddrs.c (2266, 2002-07-17)
ethernet (0, 2008-06-19)

FILE LIST - etherInputDemo.c DESCRIPTION - Handles (receives) raw input frames (input data) from the network interface using the ether input hook routine etHandle(). This is a demonstration of using low-level input ethernet routines. The other half of the demonstration of using low-level output ethernet routines is in etherOutputDemo.c. etherInputDemo runs on one VxWorks system, and etherOutputDemo runs on an other VxWrks system in the same physical network. RUNNING DEMO - Place the etherInputDemo.c in your dir. Depending on the target you have, define the CPU in your compile line and use the Makefile in the BSP dir. to compile. To run this demo invoke the function etherInputDemo() TESTED ON - Host/Target : Solaris 2.5.1 / mv1604 VxWorks : 5.3.1 EXAMPLE COMPILE LINE - make CPU=PPC604 etherInputDemo.o % make CPU=PPC604 etherInputDemo.o ccppc -B/petaluma1/mayur/tor101-ppc/host/sun4-solaris2/lib/gcc-lib/ -mstrict-align -ansi -nostdinc -O2 -fvolatile -fno-builtin -fno-for-scope -Wall -I/h -I. -I/petaluma1/mayur/tor101-ppc/target/config/all -I/petaluma1/mayur/tor101-ppc/target/h -I/petaluma1/mayur/tor101-ppc/target/src/config -I/petaluma1/mayur/tor101-ppc/target/src/drv -DCPU=PPC604 -DMV1600 -DTARGET_DIR="\"mv1604\"" -c etherInputDemo.c OUTPUTS/LOGFILE - On VxWorks target: ================== -> ld sp (etherInputDemo) task spawned: id = 5d1ca0, name = u0 value = 6102176 = 0x5d1ca0 The Output on Console: ====================== etherInputHookAdd successful

近期下载者

相关文件


收藏者