VirtualBox

Ignore:
Timestamp:
Oct 7, 2013 9:41:00 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
89644
Message:

Devices: Whitespace and svn:keyword cleanups by scm.

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/dnsproxy/dnsproxy.c

    r48526 r48947  
    120120    /* be paranoid */
    121121    AssertPtrReturnVoid(arg);
    122    
     122
    123123    de = TAILQ_PREV(req->dns_server, dns_list_head, de_list);
    124    
     124
    125125    if (de == NULL)
    126126    {
     
    137137        struct mbuf *m = NULL;
    138138        char *data;
    139        
     139
    140140        m = slirpDnsMbufAlloc(pData);
    141141        if (m == NULL)
     
    168168
    169169        /* expiration will be bumped in dnsproxy_query */
    170        
     170
    171171        dnsproxy_query(pData, so, m, iphlen);
    172172        /* should we free so->so_m ? */
    173173        return;
    174174    }
    175  
    176  socket_clean_up:   
     175
     176 socket_clean_up:
    177177    /* This socket (so) will be detached, so we need to remove timeout(&_arg) references
    178      * before leave 
     178     * before leave
    179179     */
    180180    so->so_timeout = NULL;
     
    309309#else /* VBOX */
    310310    AssertPtr(pData);
    311    
     311
    312312    /* m->m_data points to IP header */
    313313#if 0
     
    340340
    341341
    342     req = so->so_timeout_arg; 
     342    req = so->so_timeout_arg;
    343343
    344344    if (!req)
     
    347347        Assert(!so->so_timeout_arg);
    348348
    349         if ((req = RTMemAllocZ(sizeof(struct request) + byte)) == NULL) 
     349        if ((req = RTMemAllocZ(sizeof(struct request) + byte)) == NULL)
    350350        {
    351351            LogRel(("calloc failed\n"));
     
    382382
    383383    req->recursion = 0;
    384        
     384
    385385    DPRINTF(("External query RD=%d\n", RD(buf)));
    386        
     386
    387387    if (retransmit == 0)
    388388        hash_add_request(pData, req);
     
    394394    /* let's slirp to care about expiration */
    395395    so->so_expire = curtime + recursive_timeout * 1000;
    396  
     396
    397397    memset(&addr, 0, sizeof(struct sockaddr_in));
    398398    addr.sin_family = AF_INET;
     
    408408    /* send it to our authoritative server */
    409409    Log2(("NAT: request will be sent to %RTnaipv4 on %R[natsock]\n", addr.sin_addr, so));
    410    
     410
    411411    byte = sendto(so->s, buf, (unsigned int)byte, 0,
    412412                  (struct sockaddr *)&addr,
    413413                  sizeof(struct sockaddr_in));
    414     if (byte == -1) 
     414    if (byte == -1)
    415415    {
    416416        /* XXX: is it really enough? */
     
    425425    ++authoritative_queries;
    426426
    427 # if 0   
    428     /* XXX: this stuff for _debugging_ only, 
    429      * first enforce guest to send next request 
    430      * and second for faster getting timeout callback 
    431      * other option is adding couple entries in resolv.conf with 
     427# if 0
     428    /* XXX: this stuff for _debugging_ only,
     429     * first enforce guest to send next request
     430     * and second for faster getting timeout callback
     431     * other option is adding couple entries in resolv.conf with
    432432     * invalid nameservers.
    433433     *
    434      * For testing purposes could be used 
    435      * namebench -S -q 10000 -m random or -m chunk 
     434     * For testing purposes could be used
     435     * namebench -S -q 10000 -m random or -m chunk
    436436     */
    437437    /* RTThreadSleep(3000); */
     
    497497        LogRel(("sendto failed: %s\n", strerror(errno)));
    498498        ++dropped_answers;
    499     } 
     499    }
    500500    else
    501501        ++answered_queries;
     
    509509
    510510    AssertPtr(pData);
    511    
     511
    512512    /* XXX: mbuf->data points to ??? */
    513513    byte = m->m_len;
     
    524524
    525525    /* find corresponding query */
    526     if (query == NULL) 
     526    if (query == NULL)
    527527    {
    528         /* XXX: if we haven't found anything for this request ... 
     528        /* XXX: if we haven't found anything for this request ...
    529529         * What we are expecting later?
    530530         */
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r48526 r48947  
    354354    /* set default addresses */
    355355    inet_aton("127.0.0.1", &loopback_addr);
    356    
     356
    357357    if (!fUseHostResolver)
    358358    {
     
    744744                if (so->so_timeout != NULL)
    745745                {
    746                     /* so_timeout - might change the so_expire value or 
    747                      * drop so_timeout* from so. 
     746                    /* so_timeout - might change the so_expire value or
     747                     * drop so_timeout* from so.
    748748                     */
    749749                    so->so_timeout(pData, so, so->so_timeout_arg);
    750                     /* on 4.2 so-> 
     750                    /* on 4.2 so->
    751751                     */
    752752                    if (   so_next->so_prev != so /* so_timeout freed the socket */
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette