Ignore:
File:
1 edited

Legend:

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

    r3db8889 r02d9fec  
    7272 *  @param[in] call The message call structure.
    7373 */
    74 #define IP_GET_ADDRESS(call) \
    75         ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;})
     74#define IP_GET_ADDRESS(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG3(*call); addr;})
    7675
    7776/** Returns the gateway message parameter.
    7877 *  @param[in] call The message call structure.
    7978 */
    80 #define IP_GET_GATEWAY(call) \
    81         ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;})
     79#define IP_GET_GATEWAY(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG2(*call); addr;})
    8280
    8381/** Sets the header length in the message answer.
    8482 *  @param[out] answer The message answer structure.
    8583 */
    86 #define IP_SET_HEADERLEN(answer, value) \
    87         {ipcarg_t argument = (ipcarg_t) (value); IPC_SET_ARG2(*answer, argument);}
     84#define IP_SET_HEADERLEN(answer)        (&IPC_GET_ARG2(*answer))
    8885
    8986/** Returns the network mask message parameter.
    9087 *  @param[in] call The message call structure.
    9188 */
    92 #define IP_GET_NETMASK(call) \
    93         ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;})
     89#define IP_GET_NETMASK(call)            ({in_addr_t addr; addr.s_addr = IPC_GET_ARG4(*call); addr;})
    9490
    9591/** Returns the protocol message parameter.
    9692 *  @param[in] call The message call structure.
    9793 */
    98 #define IP_GET_PROTOCOL(call) \
    99         ({ip_protocol_t protocol = (ip_protocol_t) IPC_GET_ARG1(*call); protocol;})
     94#define IP_GET_PROTOCOL(call)           ((ip_protocol_t) IPC_GET_ARG1(*call))
    10095
    10196/*@}*/
Note: See TracChangeset for help on using the changeset viewer.