Function

sock_inject_data_in

Declaration

errno_t sock_inject_data_in(socket_t so, const struct sockaddr *from, mbuf_t data, mbuf_t control, sflt_data_flag_t flags);

Parameters

so

The socket to inject the data on.

from

The address the data is from, only necessary on un-connected sockets. A copy of the address will be made, caller is responsible for freeing the address after calling this function.

data

The data and possibly control mbufs.

control

The separate control mbufs.

flags

Flags indicating the type of data.

Return Value

0 on success otherwise the errno error. If the function returns an error, the caller is responsible for freeing the mbuf.

Discussion

Inject data in to the receive buffer of the socket as if it had come from the network.

See Also

Miscellaneous

sflt_attach

Deprecated
sflt_detach

Deprecated
sflt_register

Deprecated
sflt_unregister

Deprecated
sockopt_copyin

Deprecated
sockopt_copyout

Deprecated
sockopt_level

Deprecated
sockopt_name

Deprecated
sockopt_valsize

Deprecated