Changeset 6e81d04 in mainline
- Timestamp:
- 2010-03-15T21:06:02Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 89c09ae
- Parents:
- 5d2e976 (diff), 02d9fec (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. - Location:
- uspace/srv/net
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/ip/ip.c
r5d2e976 r6e81d04 895 895 ip_pseudo_header_ref header; 896 896 size_t headerlen; 897 device_id_t device_id; 897 898 898 899 *answer_count = 0; … … 921 922 case NET_IP_GET_ROUTE: 922 923 ERROR_PROPAGATE(data_receive((void **) &addr, &addrlen)); 923 ERROR_PROPAGATE(ip_get_route_req(0, IP_GET_PROTOCOL(call), addr, (socklen_t) addrlen, IPC_SET_DEVICE(answer), &header, &headerlen)); 924 ERROR_PROPAGATE(ip_get_route_req(0, IP_GET_PROTOCOL(call), addr, (socklen_t) addrlen, 925 &device_id, &header, &headerlen)); 926 *IPC_SET_DEVICE(answer) = device_id; 924 927 *IP_SET_HEADERLEN(answer) = headerlen; 925 928 *answer_count = 2; -
uspace/srv/net/il/ip/ip_messages.h
r5d2e976 r6e81d04 82 82 * @param[out] answer The message answer structure. 83 83 */ 84 #define IP_SET_HEADERLEN(answer) ( (size_t *)&IPC_GET_ARG2(*answer))84 #define IP_SET_HEADERLEN(answer) (&IPC_GET_ARG2(*answer)) 85 85 86 86 /** Returns the network mask message parameter. -
uspace/srv/net/messages.h
r5d2e976 r6e81d04 391 391 * @param[out] answer The message answer structure. 392 392 */ 393 #define IPC_SET_DEVICE(answer) ( (device_id_t *)&IPC_GET_ARG1(*answer))393 #define IPC_SET_DEVICE(answer) (&IPC_GET_ARG1(*answer)) 394 394 395 395 /** Sets the minimum address length in the message answer. 396 396 * @param[out] answer The message answer structure. 397 397 */ 398 #define IPC_SET_ADDR(answer) ( (size_t *)&IPC_GET_ARG1(*answer))398 #define IPC_SET_ADDR(answer) (&IPC_GET_ARG1(*answer)) 399 399 400 400 /*@}*/ … … 407 407 * @param[out] answer The message answer structure. 408 408 */ 409 #define IPC_SET_PREFIX(answer) ( (size_t *)&IPC_GET_ARG2(*answer))409 #define IPC_SET_PREFIX(answer) (&IPC_GET_ARG2(*answer)) 410 410 411 411 /*@}*/ … … 418 418 * @param[out] answer The message answer structure. 419 419 */ 420 #define IPC_SET_CONTENT(answer) ( (size_t *)&IPC_GET_ARG3(*answer))420 #define IPC_SET_CONTENT(answer) (&IPC_GET_ARG3(*answer)) 421 421 422 422 /*@}*/ … … 429 429 * @param[out] answer The message answer structure. 430 430 */ 431 #define IPC_SET_SUFFIX(answer) ( (size_t *)&IPC_GET_ARG4(*answer))431 #define IPC_SET_SUFFIX(answer) (&IPC_GET_ARG4(*answer)) 432 432 433 433 /*@}*/
Note:
See TracChangeset
for help on using the changeset viewer.