ChinaUnix.net
相关文章推荐:

lwip makefile

lwip 没有实现UDP的分片机制。这里需要注意。 - UDP header struct struct udp_hdr { u16_t src; u16_t dest; u16_t len; u16_t chksum; }; - UDP functions err_t udp_bind(struct udp_pcb *pcb, struct ip_addr *ipaddr, u16_t port) 函数遍历整个UDP PCB链表,以排除在没有设置REUSE_ADDR或者REUSE_PORT标志的情况下绑定到一个以相同port绑定的pcb或者以相同port及ip绑定的pcb。如果需要绑定的port无效,则分配最小可...

by muddogxp - 网络技术文档中心 - 2006-02-23 21:28:55 阅读(827) 回复(0)

相关讨论

ICMP协议分析 - ICMP 数据结构 类型8的回显请求 struct icmp_echo_hdr { u16_t _type_code; u16_t chksum; u16_t id; u16_t seqno; }; 类型3的目的不可达应答 struct icmp_dur_hdr { u16_t _type_code; u16_t chksum; u32_t unused; }; 类型11的超时应答 struct icmp_te_hdr { u16_t _type_code; u16_t chksum; u32_t unused; }; - ICMP 处理函数 void icmp_input(struct pbuf *p, struct netif *inp); lwip I...

by muddogxp - 网络技术文档中心 - 2006-02-23 21:19:35 阅读(624) 回复(0)

ARP 协议分析 总的来说,lwip将链路层ethernet的协议分组格式分为ether和etherarp 分开处理。ip分组先进入etharp_ip_input更新一下arp表项,然后直接进入 netif的input传递给上层ip层。arp分组直接进入etharp_arp_input。 不送如ip层。 奇怪的是,lwip把ether header的结构定义在etharp中。 -ARP 数据结构 -- arp表状态 enum etharp_state { ETHARP_STATE_EMPTY, /* 表项空 */ ETHARP_STATE_PENDING, ETHARP_STATE_STABLE, ...

by muddogxp - 网络技术文档中心 - 2006-02-23 21:11:40 阅读(847) 回复(0)

1. 为什么它的包里面没有提供任何makefile?仅在CVS的ports中提供的一些Demo中有。按说可以做成一个标准的库的形式吧。 2. 移植是不是一是实现手册还是网站上(今天是大概看了一下代码,文档太长还没来得及看,这个好像在哪看到提过)提到的sys_arch部分,第二是实现struct netif并创建一个取包的线程?

by Cyberman.Wu - 网络技术 - 2009-04-08 20:25:24 阅读(1124) 回复(0)

makefile(1) 1.2 何时分解你的项目 很明显,把任何东西都分解是不合理的。象“世界,你们好”这样的简单程序根本就不能分,因为实在也没什么可分的。把用于测试用的小程序分解也是没什么意思的。但一 般来说,当分解项目有助于布局、发展和易读性的时候,我都会采取它。在大多数的情 况下,这都是适用的。(所谓“世界,你们好”,既 'hello world' ,只是一个介绍 一种编程语言时惯用的范例程序,它会在屏幕上显示一行 'hello w...

by w1_xiao - SCO文档中心 - 2009-10-13 14:51:40 阅读(4875) 回复(0)

大家好,我是个高中生,高中1年纪。 最近在学习linux下的编程。 // 文件main.c #include #include "hello.h" int main() { str_printf("hello"); return 0; } // hello.h #ifndef HELLO_H_ #define HELLO_H_ void str_printf(const char *str); #endif // hello.c #include "hello.h" void str_printf(const char *str) { printf("hello.c:%s\n", str); } 请问makefile文件该怎么写?

by 写自己的操作系 - C/C++ - 2009-07-27 17:15:17 阅读(1891) 回复(13)

test.h #ifndef _TEST_H_ #define _TEST_H_ void print(); #endif test.c #include #include "test.h" void print() { printf("hello,world\n"); } main.c #include "test.h" int main() { print(); return 0; } makefile: mycpp: main.o test.o gcc -o mycpp main.o test.o main.o: main.c test.h gcc -c main.c test.o: test.c gcc -c test.c makefile...

by hr_it - C/C++ - 2008-09-17 00:10:10 阅读(2690) 回复(11)

这是我写的一个makefile VPATH=../lib:../include:../bin lib = ../lib/ bin = ../bin/ objects=bank.o adminlogin.o mainmenu.o execute.o deposit.o withdraw.o query.o \ write.o read.o listall.o cancelaccount.o establishaccount.o bank : $(objects) gcc $(objects) -o $(bin)bank bank.o : bank.c includeofbank.h includeofstruct.h gcc -c bank.c -o $(lib)bank.o mainmenu.o : mainmen...

by wangxiaoguang - C/C++ - 2008-08-06 12:52:02 阅读(1371) 回复(10)

本人明天就要交程序 但是突然发现要求要makefile 但我对这个根本不太了解 我有5个目录,as.tgs.client.kdc 和sever_v 每个目录下基本都有main.cpp和tea.hpp等文件 请问如何构造makefile? 应该是在主目录下构造一个makefile,然后在5个目录下分别构造5个makefile, 但是该怎么写了? 更大的问题是,我的程序是在LINUX下编译通过 但是放到SUN的UNIX下编译无法通过 如果是在Solaris上编译,因该把相应的头文件包含进去,如:“sys /...

by babobo - Shell - 2005-09-19 10:39:02 阅读(707) 回复(1)

下了个java1.4源代码包,怎样执行make,我的操作系统是SCO UNIX

by zxllxz - Java - 2005-09-04 15:19:38 阅读(477) 回复(0)

为什么要加上-I . -g -Wall -ansi呀? 用gcc -c main.c 不就好了吗? :em14:

by qiqixiao - Linux论坛 - 2004-10-08 15:03:12 阅读(309) 回复(1)