共1条
1/1 1 跳转至页
if_type和if_flag对end driver的影响(vxworks)(老站转)

bridge
工程师
来自:
发表总数:31
查看 短消息 电子邮件
--------------------------------------------------------------------------------
初来乍到,想和各位高手请教有关end driver的问题。我在设计一个下层是point-point的硬件,上层需要tcp/ip的driver,不需要arp。网络拓扑如下:
pc ---- 860 A ---- 860 B
pc -- 860 A是ethernet, 860 A --- 860 B是hdlc,即我的开发内容。测试方法是从pc ping 860 B.
如果我设置if_type = M2_ifType_ethernet_csmacd,能看见icmp request 从860A-->860B, icmp response 从860 B --> 860 A,也能看见860 A的ethernet的发送led亮. 可是pc不确认,即ping不通。如果ping -r 2/4/6/8,能ping通,ping -r 1/3/5/7/9,ping不通。
如果我设置if_type = M2_ifType_other,能ping通。
这是怎么回事?if_type和if_flag在vxworks中如何工作的?我没有找到相关资料。
请大家参与讨论。如果有英语好的,愿意把这个贴子放到google vxworks newsgroup,不胜感激。(http://groups.google.com/groups?hl=zh-CN&group=comp.os.vxworks)
--------------------------------------------------------------------------------
编辑 发表於:2002-01-11 - 15:21:55 IP: 61.157.*.*
stony
工程师
来自:
发表总数:62
查看 短消息 电子邮件
--------------------------------------------------------------------------------
我认为这个可能跟你所用的网络设备有关。
M2_ifType_ethernet_csmacd代表的是ethernet设备,物理层上所传送的数据帧格式是ethernet packet格式,即:DestinationAddr(6bytes)-SourceAddr(6bytes)-Type(2bytes)-Data(64~1500bytes)-CRC(4bytes)
你的860B不是ethernet adapter,所以我猜想由于if_type设置的错误而导致该网络设备无法正常工作。
以下列出所有可能的if_type,供参考:
/* possible values for ifType */
#define M2_ifType_other 1
#define M2_ifType_regular1822 2
#define M2_ifType_hdh1822 3
#define M2_ifType_ddn_x25 4
#define M2_ifType_rfc877_x25 5
#define M2_ifType_ethernet_csmacd 6
#define M2_ifType_iso88023_csmacd 7
#define M2_ifType_iso88024_tokenBus 8
#define M2_ifType_iso88025_tokenRing 9
#define M2_ifType_iso88026_man 10
#define M2_ifType_starLan 11
#define M2_ifType_proteon_10Mbit 12
#define M2_ifType_proteon_80Mbit 13
#define M2_ifType_hyperchannel 14
#define M2_ifType_fddi 15
#define M2_ifType_lapb 16
#define M2_ifType_sdlc 17
#define M2_ifType_ds1 18
#define M2_ifType_e1 19
#define M2_ifType_basicISDN 20
#define M2_ifType_primaryISDN 21
#define M2_ifType_propPointToPointSerial 22
#define M2_ifType_ppp 23
#define M2_ifType_softwareLoopback 24
#define M2_ifType_eon 25
#define M2_ifType_ethernet_3Mbit 26
#define M2_ifType_nsip 27
#define M2_ifType_slip 28
#define M2_ifType_ultra 29
#define M2_ifType_ds3 30
#define M2_ifType_sip 31
#define M2_ifType_frame_relay 32
Edited by - stony 重新编辑於 2002-01-11 17:52:18
--------------------------------
清风拂山冈
明月照大江
关键词: driver 影响 vxworks 老站转 ifT
共1条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【EEPW电子工程师创研计划】技术变现通道已开启~ | |
发原创文章 【每月瓜分千元赏金 凭实力攒钱买好礼~】 | |
【EEPW在线】E起听工程师的声音! | |
“我踩过的那些坑”主题活动——第001期 | |
高校联络员开始招募啦!有惊喜!! | |
【工程师专属福利】每天30秒,积分轻松拿!EEPW宠粉打卡计划启动! | |
送您一块开发板,2025年“我要开发板活动”又开始了! | |
打赏了!打赏了!打赏了! |
打赏帖 | |
---|---|
【我踩过的那些坑】STM32的硬件通讯调试过程的“坑”被打赏50分 | |
【我踩过的那些坑】晶振使用的问题被打赏100分 | |
【我踩过的那些坑】电感选型错误导致的处理器连接不上被打赏50分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏10分 | |
【我踩过的那些坑】DRC使用位置错误导致的问题被打赏100分 | |
我踩过的那些坑之混合OTL功放与落地音箱被打赏50分 | |
汽车电子中巡航控制系统的使用被打赏10分 | |
【我踩过的那些坑】工作那些年踩过的记忆深刻的坑被打赏100分 | |
分享汽车电子中巡航控制系统知识被打赏10分 | |
分享安全气囊系统的检修注意事项被打赏10分 |