X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=KernelLand%2FModules%2FIPStack%2Frouting.c;h=24bb8fa2e43ac4370ccf0e872324eedd22133c80;hb=845b6f9d90bb87b5e760e4d49aa93b0e003ab750;hp=e86f333b3f451eab2e2cea2bc40f1b90d4e7b522;hpb=da91486679507cd3dc4a139318e05ce04e151145;p=tpg%2Facess2.git diff --git a/KernelLand/Modules/IPStack/routing.c b/KernelLand/Modules/IPStack/routing.c index e86f333b..24bb8fa2 100644 --- a/KernelLand/Modules/IPStack/routing.c +++ b/KernelLand/Modules/IPStack/routing.c @@ -18,7 +18,7 @@ extern tVFS_Node *IPStack_Root_FindDir(tVFS_Node *Node, const char *Filename); // === PROTOTYPES === // - Routes directory int IPStack_RouteDir_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]); -tVFS_Node *IPStack_RouteDir_FindDir(tVFS_Node *Node, const char *Name); +tVFS_Node *IPStack_RouteDir_FindDir(tVFS_Node *Node, const char *Name, Uint Flags); tVFS_Node *IPStack_RouteDir_MkNod(tVFS_Node *Node, const char *Name, Uint Flags); int IPStack_RouteDir_Unlink(tVFS_Node *Node, const char *OldName); tRoute *_Route_FindExactRoute(int Type, void *Network, int Subnet, int Metric); @@ -27,8 +27,8 @@ tRoute *_Route_FindExactRoute(int Type, void *Network, int Subnet, int Metric); // - Route Management tRoute *IPStack_Route_Create(int AddrType, void *Network, int SubnetBits, int Metric); tRoute *IPStack_AddRoute(const char *Interface, void *Network, int SubnetBits, void *NextHop, int Metric); -tRoute *_Route_FindInterfaceRoute(int AddressType, void *Address); -tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, void *Address); +tRoute *_Route_FindInterfaceRoute(int AddressType, const void *Address); +tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, const void *Address); // - Individual Routes int IPStack_Route_IOCtl(tVFS_Node *Node, int ID, void *Data); @@ -78,7 +78,7 @@ int IPStack_RouteDir_ReadDir(tVFS_Node *Node, int Pos, char Dest[FILENAME_MAX]) /** * \brief FindDir for the /Devices/ip/routes/ directory */ -tVFS_Node *IPStack_RouteDir_FindDir(tVFS_Node *Node, const char *Name) +tVFS_Node *IPStack_RouteDir_FindDir(tVFS_Node *Node, const char *Name, Uint Flags) { // Interpret the name as :, returning the interface for // needed to access that address. @@ -444,7 +444,7 @@ tRoute *IPStack_AddRoute(const char *Interface, void *Network, int SubnetBits, v /** * \brief Locates what interface should be used to get directly to an address */ -tRoute *_Route_FindInterfaceRoute(int AddressType, void *Address) +tRoute *_Route_FindInterfaceRoute(int AddressType, const void *Address) { tRoute *best = NULL, *rt; int addrSize = IPStack_GetAddressSize(AddressType); @@ -487,7 +487,7 @@ tRoute *_Route_FindInterfaceRoute(int AddressType, void *Address) /** */ -tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, void *Address) +tRoute *IPStack_FindRoute(int AddressType, tInterface *Interface, const void *Address) { tRoute *rt; tRoute *best = NULL;