Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
arcnet.h
Package: export.zip [view]
Upload User: hepax88
Upload Date: 2007-01-03
Package Size: 1101k
Code Size: 1k
Category:
TCP/IP Stack
Development Platform:
Visual C++
- /* Generic ARCnet constants and templates */
- #ifndef _ARCNET_H
- #define _ARCNET_H
- #ifndef _GLOBAL_H
- #include "global.h"
- #endif
- #ifndef _MBUF_H
- #include "mbuf.h"
- #endif
- #ifndef _IFACE_H
- #include "iface.h"
- #endif
- #define AADDR_LEN 1
- /* Format of an ARCnet header */
- struct arc {
- uint8 source[AADDR_LEN];
- uint8 dest[AADDR_LEN];
- uint8 type;
- };
- #define ARCLEN 3
- /* ARCnet broadcast address */
- extern uint8 ARC_bdcst[];
- /* ARCnet type fields */
- #define ARC_IP 0xf0 /* Type field for IP */
- #define ARC_ARP 0xf1 /* Type field for ARP */
- /* In file arcnet.c: */
- void htonarc(struct arc *arc,struct mbuf **data);
- int ntoharc(struct arc *arc,struct mbuf **bpp);
- char *parc(char *out,uint8 *addr);
- int garc(uint8 *out,char *cp);
- int anet_send(struct mbuf **bp,struct iface *iface,int32 gateway,uint8 tos);
- int anet_output(struct iface *iface,uint8 dest[],uint8 source[],uint16 type,
- struct mbuf **data);
- void aproc(struct iface *iface,struct mbuf **bp);
- #endif /* _ARCNET_H */