example of xmacros for rpc packets