Changeset dd0c8a0 in mainline for uspace/srv/net/dnsrsrv/transport.h
- Timestamp:
- 2013-09-29T06:56:33Z (12 years ago)
- 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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/transport.h
r3deb0155 rdd0c8a0 27 27 */ 28 28 29 /** @addtogroup inet29 /** @addtogroup dnsres 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @brief35 34 */ 36 35 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 41 38 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" 46 41 47 if (bits == 0) 48 return 0; 49 else 50 return BIT_RANGE(uint32_t, 31, 31 - (bits - 1)); 51 } 42 extern inet_addr_t dns_server_addr; 43 44 extern int transport_init(void); 45 extern void transport_fini(void); 46 extern int dns_request(dns_message_t *, dns_message_t **); 47 48 #endif 52 49 53 50 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.