Changeset dd0c8a0 in mainline for uspace/srv/net/dnsrsrv/transport.h


Ignore:
Timestamp:
2013-09-29T06:56:33Z (12 years ago)
Author:
Beniamino Galvani <b.galvani@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a9bd960d
Parents:
3deb0155 (diff), 13be2583 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/transport.h

    r3deb0155 rdd0c8a0  
    2727 */
    2828
    29 /** @addtogroup inet
     29/** @addtogroup dnsres
    3030 * @{
    3131 */
    3232/**
    3333 * @file
    34  * @brief
    3534 */
    3635
    37 #include <assert.h>
    38 #include <bitops.h>
    39 #include <sys/types.h>
    40 #include "inet_util.h"
     36#ifndef TRANSPORT_H
     37#define TRANSPORT_H
    4138
    42 uint32_t inet_netmask(int bits)
    43 {
    44         assert(bits >= 0);
    45         assert(bits < 32);
     39#include <inet/addr.h>
     40#include "dns_type.h"
    4641
    47         if (bits == 0)
    48                 return 0;
    49         else
    50                 return BIT_RANGE(uint32_t, 31, 31 - (bits - 1));
    51 }
     42extern inet_addr_t dns_server_addr;
     43
     44extern int transport_init(void);
     45extern void transport_fini(void);
     46extern int dns_request(dns_message_t *, dns_message_t **);
     47
     48#endif
    5249
    5350/** @}
Note: See TracChangeset for help on using the changeset viewer.