Changeset 98abd40 in mainline for uspace/srv/net/inetsrv/inetping6.h
- Timestamp:
- 2013-07-06T21:57:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c8bb1633, cdc8a391
- Parents:
- b8e72fd1 (diff), 507c6f3 (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/inetsrv/inetping6.h
rb8e72fd1 r98abd40 1 1 /* 2 * Copyright (c) 201 2 Jiri Svoboda2 * Copyright (c) 2013 Martin Decky 3 3 * All rights reserved. 4 4 * … … 35 35 */ 36 36 37 #include <assert.h> 38 #include <bitops.h> 39 #include <sys/types.h> 40 #include "inet_util.h" 37 #ifndef INETPING6_H_ 38 #define INETPING6_H_ 41 39 42 uint32_t inet_netmask(int bits) 43 { 44 assert(bits >= 0); 45 assert(bits < 32); 40 #include "inetsrv.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 void inetping6_conn(ipc_callid_t, ipc_call_t *, void *); 43 extern int inetping6_recv(uint16_t, inetping6_sdu_t *); 44 45 #endif 52 46 53 47 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.