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
Working on UDP, removed debug from some code, fixed ARP setting hwtype to 0x100 ...
[tpg/acess2.git]
/
Usermode
/
Applications
/
ifconfig_src
/
main.c
diff --git
a/Usermode/Applications/ifconfig_src/main.c
b/Usermode/Applications/ifconfig_src/main.c
index
ea8dcb8
..
eb8fa19
100644
(file)
--- a/
Usermode/Applications/ifconfig_src/main.c
+++ b/
Usermode/Applications/ifconfig_src/main.c
@@
-61,7
+61,6
@@
void DumpInterfaces(int DumpAll)
while( readdir(dp, filename) )
{
if(filename[0] == '.') continue;
while( readdir(dp, filename) )
{
if(filename[0] == '.') continue;
- if(filename[0] != 'i' || filename[1] != 'p') continue;
fd = open(path, OPENFLAG_READ);
if(fd == -1) {
fd = open(path, OPENFLAG_READ);
if(fd == -1) {
@@
-135,14
+134,14
@@
int DoAutoConfig( char *Device )
{
int tmp, fd;
char path[sizeof(IPSTACK_ROOT)+5+1]; // ip000
{
int tmp, fd;
char path[sizeof(IPSTACK_ROOT)+5+1]; // ip000
- uint8_t addr[4] = {10,0,
0
,55};
- uint8_t gw[4] = {10,0,
0
,1};
+ uint8_t addr[4] = {10,0,
2
,55};
+ uint8_t gw[4] = {10,0,
2
,1};
int subnet = 8;
tmp = AddInterface(Device);
if( tmp < 0 ) return tmp;
int subnet = 8;
tmp = AddInterface(Device);
if( tmp < 0 ) return tmp;
- sprintf(path, IPSTACK_ROOT"/
ip
%i", tmp);
+ sprintf(path, IPSTACK_ROOT"/%i", tmp);
fd = open(path, OPENFLAG_READ);
if( fd == -1 ) {
fd = open(path, OPENFLAG_READ);
if( fd == -1 ) {
UCC
git Repository :: git.ucc.asn.au