Changeset 40e29f5 in mainline for uspace/srv/net/il/ip/ip_messages.h


Ignore:
Timestamp:
2010-03-24T18:54:50Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eaf22d4
Parents:
63f8966 (diff), 3db8889 (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 from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip_messages.h

    r63f8966 r40e29f5  
    7272 *  @param[in] call The message call structure.
    7373 */
    74 #define IP_GET_ADDRESS(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;})
     74#define IP_GET_ADDRESS(call) \
     75        ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;})
    7576
    7677/** Returns the gateway message parameter.
    7778 *  @param[in] call The message call structure.
    7879 */
    79 #define IP_GET_GATEWAY(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;})
     80#define IP_GET_GATEWAY(call) \
     81        ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;})
    8082
    8183/** Sets the header length in the message answer.
    8284 *  @param[out] answer The message answer structure.
    8385 */
    84 #define IP_SET_HEADERLEN(answer)        (&IPC_GET_ARG2(*answer))
     86#define IP_SET_HEADERLEN(answer, value) \
     87        {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);}
    8588
    8689/** Returns the network mask message parameter.
    8790 *  @param[in] call The message call structure.
    8891 */
    89 #define IP_GET_NETMASK(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;})
     92#define IP_GET_NETMASK(call) \
     93        ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;})
    9094
    9195/** Returns the protocol message parameter.
    9296 *  @param[in] call The message call structure.
    9397 */
    94 #define IP_GET_PROTOCOL(call)           ((ip_protocol_t) IPC_GET_ARG1(*call))
     98#define IP_GET_PROTOCOL(call) \
     99        ({ip_protocol_t protocol = (ip_protocol_t) IPC_GET_ARG1(*call); protocol;})
    95100
    96101/*@}*/
Note: See TracChangeset for help on using the changeset viewer.