- @param retval - return code for the request
- @param handle - session handle obtained via accept/connect
-*/
-define reset_session_reply {
- u32 client_index;
- u32 context;
- i32 retval;
- u64 handle;
-};
-
-/** \brief Bind to an ip:port pair for a given transport protocol
- @param client_index - opaque cookie to identify the sender
- @param context - sender context, to match reply w/ request
- @param vrf - bind namespace
- @param is_ip4 - flag that is 1 if ip address family is IPv4
- @param ip - ip address
- @param port - port
- @param proto - protocol 0 - TCP 1 - UDP
- @param options - socket options, fifo sizes, etc.
-*/
-define bind_sock {
- u32 client_index;
- u32 context;
- u32 vrf;
- u8 is_ip4;
- u8 ip[16];
- u16 port;
- u8 proto;
- u64 options[16];
-};
-
-/** \brief Unbind
- @param client_index - opaque cookie to identify the sender
- @param context - sender context, to match reply w/ request
- @param handle - bind handle obtained from bind reply
-*/
-autoreply define unbind_sock {
- u32 client_index;
- u32 context;
- u64 handle;
-};
-
-/** \brief Connect to a remote peer
- @param client_index - opaque cookie to identify the sender
- @param context - sender context, to match reply w/ request
- @param client_queue_address - client's API queue address. Non-zero when
- used to perform redirects
- @param options - socket options, fifo sizes, etc. when doing redirects
- @param vrf - connection namespace
- @param is_ip4 - flag that is 1 if ip address family is IPv4
- @param ip - ip address
- @param port - port
- @param proto - protocol 0 - TCP 1 - UDP