X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Modules%2FIPStack%2Fipstack.h;h=95f93c478181bd444441c30d01db1fd3ad2c09d3;hb=ca4c99972c5224fba8e77a971e73d0277877f3d0;hp=faf8cb8cff54a211aa80a7e5f3cf09ab2af23654;hpb=25f19babe7a0ab75d04ff7e6f98f7bcb65fb8941;p=tpg%2Facess2.git diff --git a/Modules/IPStack/ipstack.h b/Modules/IPStack/ipstack.h index faf8cb8c..95f93c47 100644 --- a/Modules/IPStack/ipstack.h +++ b/Modules/IPStack/ipstack.h @@ -13,6 +13,7 @@ typedef union uIPv6 tIPv6; typedef struct sMacAddr tMacAddr; typedef struct sAdapter tAdapter; typedef struct sInterface tInterface; +typedef struct sSocketFile tSocketFile; typedef void (*tIPCallback)(tInterface *Interface, void *Address, int Length, void *Buffer); @@ -60,9 +61,21 @@ struct sAdapter { int NRef; tMacAddr MacAddr; + int DeviceLen; char Device[]; }; +/** + * \brief Describes a socket file definition + */ +struct sSocketFile +{ + struct sSocketFile *Next; + const char *Name; + + tVFS_Node *(*Init)(tInterface *Interface); +}; + static const tMacAddr cMAC_BROADCAST = {{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}}; #define MAC_SET(t,v) memcpy(&(t),&(v),sizeof(tMacAddr)) @@ -81,4 +94,6 @@ static const tMacAddr cMAC_BROADCAST = {{0xFF,0xFF,0xFF,0xFF,0xFF,0xFF}}; #define ntohs(in) BigEndian16(in) #define ntohl(in) BigEndian32(in) +extern int IPStack_AddFile(tSocketFile *File); + #endif