Changeset 4a5a18be in mainline
- Timestamp:
- 2013-05-23T17:11:10Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c90aed4
- Parents:
- 6e8ed225
- Location:
- uspace/srv/net/inetsrv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/inet_link.c
r6e8ed225 r4a5a18be 196 196 197 197 static int first = 1; 198 /* XXX For testing: set static IP address 1 92.168.0.4/24 */198 /* XXX For testing: set static IP address 10.0.2.15/24 */ 199 199 addr = inet_addrobj_new(); 200 200 if (first) { … … 202 202 first = 0; 203 203 } else { 204 addr->naddr.ipv4 = (1 92 << 24) + (168 << 16) + (0 << 8) + 4;204 addr->naddr.ipv4 = (10 << 24) + (0 << 16) + (2 << 8) + 15; 205 205 } 206 206 addr->naddr.bits = 24; -
uspace/srv/net/inetsrv/inetsrv.c
r6e8ed225 r4a5a18be 106 106 sroute->dest.ipv4 = 0; 107 107 sroute->dest.bits = 0; 108 sroute->router.ipv4 = (1 92 << 24) | (168 << 16) | (0 << 8) | 1;108 sroute->router.ipv4 = (10 << 24) | (0 << 16) | (2 << 8) | 2; 109 109 sroute->name = str_dup("default"); 110 110 inet_sroute_add(sroute);
Note:
See TracChangeset
for help on using the changeset viewer.