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
Usermode/libc - Fix strchr and strrchr behavior
[tpg/acess2.git]
/
Usermode
/
Applications
/
dhcpclient_src
/
main.c
diff --git
a/Usermode/Applications/dhcpclient_src/main.c
b/Usermode/Applications/dhcpclient_src/main.c
index
afe7bf7
..
d6f4cda
100644
(file)
--- a/
Usermode/Applications/dhcpclient_src/main.c
+++ b/
Usermode/Applications/dhcpclient_src/main.c
@@
-333,7
+333,8
@@
void Send_DHCPREQUEST(tInterface *Iface, void *OfferPacket, int TypeOffset)
int i;
msg = (void*) ((char*)OfferPacket) + 8;
int i;
msg = (void*) ((char*)OfferPacket) + 8;
- if( msg->xid != Iface->TransactionID ) {
+ if( msg->xid != htonl(Iface->TransactionID) ) {
+ _SysDebug("DHCPREQUEST: Transaction ID mismatch");
return ;
}
return ;
}
@@
-505,7
+506,9
@@
void Update_State(tInterface *Iface, int newState)
// TODO: Exponential backoff
Iface->Timeout = _SysTimestamp() + 3000;
Iface->nTimeouts ++;
// TODO: Exponential backoff
Iface->Timeout = _SysTimestamp() + 3000;
Iface->nTimeouts ++;
- _SysDebug("State %i repeated, timeout is 3000ms now", newState);
+ _SysDebug("%s: State %i repeated, timeout is 3000ms now",
+ Iface->Adapter,
+ newState);
}
}
}
}
UCC
git Repository :: git.ucc.asn.au