Changeset 5d1cb8a in mainline for uspace/srv/net/dnsrsrv/dnsrsrv.c


Ignore:
Timestamp:
2013-05-03T21:11:23Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4e716180
Parents:
8fdb18e
Message:

DNS configuration utility.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/dnsrsrv.c

    r8fdb18e r5d1cb8a  
    114114    ipc_call_t *call)
    115115{
    116 //      inet_addr_t remote;
    117 //      uint8_t tos;
    118 //      inet_addr_t local;
    119 //      int rc;
    120 
    121116        log_msg(LOG_DEFAULT, LVL_DEBUG, "inet_get_srvaddr_srv()");
    122 
    123 /*      remote.ipv4 = IPC_GET_ARG1(*call);
    124         tos = IPC_GET_ARG2(*call);
    125         local.ipv4 = 0;
    126 
    127         rc = inet_get_srcaddr(&remote, tos, &local);*/
    128         async_answer_1(callid, EOK, 0x01020304);
     117        async_answer_1(callid, EOK, dns_server_addr.ipv4);
    129118}
    130119
     
    132121    ipc_call_t *call)
    133122{
    134 //      inet_addr_t naddr;
    135 //      int rc;
    136 
    137123        log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_set_srvaddr_srv()");
    138124
    139 //      naddr.ipv4 = IPC_GET_ARG1(*call);
     125        dns_server_addr.ipv4 = IPC_GET_ARG1(*call);
    140126
    141         /*rc = inet_get_srcaddr(&remote, tos, &local);*/
    142127        async_answer_0(callid, EOK);
    143128}
     
    151136        /* Accept the connection */
    152137        async_answer_0(iid, EOK);
    153 
    154 //      inet_client_init(&client);
    155138
    156139        while (true) {
     
    179162                }
    180163        }
    181 
    182 //      inet_client_fini(&client);
    183164}
    184165
Note: See TracChangeset for help on using the changeset viewer.