Changeset db71e2a in mainline for uspace/srv/net/dnsrsrv/transport.h
- Timestamp:
- 2013-07-24T17:42:25Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 69b264a9
- Parents:
- 52f1882 (diff), cffa14e6 (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
-
uspace/srv/net/dnsrsrv/transport.h (moved) (moved from uspace/srv/net/inetsrv/inet_util.c ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/dnsrsrv/transport.h
r52f1882 rdb71e2a 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.
