git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated InitRD to new usermode layout, cleanups in networking
[tpg/acess2.git]
/
Modules
/
IPStack
/
interface.c
diff --git
a/Modules/IPStack/interface.c
b/Modules/IPStack/interface.c
index
50d4c22
..
fc79e9e
100644
(file)
--- a/
Modules/IPStack/interface.c
+++ b/
Modules/IPStack/interface.c
@@
-251,7
+251,7
@@
tInterface *IPStack_AddInterface(const char *Device, const char *Name)
iface = malloc(
sizeof(tInterface)
+ nameLen + 1
iface = malloc(
sizeof(tInterface)
+ nameLen + 1
- + IPStack_GetAddressSize(-1)
+ + IPStack_GetAddressSize(-1)
*3 // Address, Route->Network, Route->NextHop
);
if(!iface) {
LEAVE('n');
);
if(!iface) {
LEAVE('n');
@@
-261,6
+261,8
@@
tInterface *IPStack_AddInterface(const char *Device, const char *Name)
iface->Next = NULL;
iface->Type = 0; // Unset type
iface->Address = iface->Name + nameLen + 1; // Address
iface->Next = NULL;
iface->Type = 0; // Unset type
iface->Address = iface->Name + nameLen + 1; // Address
+ iface->Route.Network = iface->Address + IPStack_GetAddressSize(-1);
+ iface->Route.NextHop = iface->Route.Network + IPStack_GetAddressSize(-1);
// Create Node
iface->Node.ImplPtr = iface;
// Create Node
iface->Node.ImplPtr = iface;
UCC
git Repository :: git.ucc.asn.au