Changeset 4a5a18be in mainline


Ignore:
Timestamp:
2013-05-23T17:11:10Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c90aed4
Parents:
6e8ed225
Message:

use default IP address 10.0.2.15 and default gateway 10.0.2.2
this should be convenient for the majority of people running HelenOS in QEMU

Location:
uspace/srv/net/inetsrv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inet_link.c

    r6e8ed225 r4a5a18be  
    196196
    197197        static int first = 1;
    198         /* XXX For testing: set static IP address 192.168.0.4/24 */
     198        /* XXX For testing: set static IP address 10.0.2.15/24 */
    199199        addr = inet_addrobj_new();
    200200        if (first) {
     
    202202                first = 0;
    203203        } else {
    204                 addr->naddr.ipv4 = (192 << 24) + (168 << 16) + (0 << 8) + 4;
     204                addr->naddr.ipv4 = (10 << 24) + (0 << 16) + (2 << 8) + 15;
    205205        }
    206206        addr->naddr.bits = 24;
  • uspace/srv/net/inetsrv/inetsrv.c

    r6e8ed225 r4a5a18be  
    106106        sroute->dest.ipv4 = 0;
    107107        sroute->dest.bits = 0;
    108         sroute->router.ipv4 = (192 << 24) | (168 << 16) | (0 << 8) | 1;
     108        sroute->router.ipv4 = (10 << 24) | (0 << 16) | (2 << 8) | 2;
    109109        sroute->name = str_dup("default");
    110110        inet_sroute_add(sroute);
Note: See TracChangeset for help on using the changeset viewer.