FreeBSD/sys/netinet/toecore.c
/*
 * Fill up a freshly allocated toedev struct with reasonable defaults.
 */
Fill up a freshly allocated toedev struct with reasonable defaults.
Fill up a freshly allocated toedev struct with reasonable defaults .
void
init_toedev(struct toedev *tod)
{
	tod->tod_softc = NULL;
	tod->tod_connect = toedev_connect;
	tod->tod_listen_start = toedev_listen_start;
	tod->tod_listen_stop = toedev_listen_stop;
	tod->tod_input = toedev_input;
	tod->tod_rcvd = toedev_rcvd;
	tod->tod_output = toedev_output;
	tod->tod_send_rst = toedev_output;
	tod->tod_send_fin = toedev_output;
	tod->tod_pcb_detach = toedev_pcb_detach;
	tod->tod_l2_update = toedev_l2_update;
	tod->tod_route_redirect = toedev_route_redirect;
	tod->tod_syncache_added = toedev_syncache_added;
	tod->tod_syncache_removed = toedev_syncache_removed;
	tod->tod_syncache_respond = toedev_syncache_respond;
	tod->tod_offload_socket = toedev_offload_socket;
	tod->tod_ctloutput = toedev_ctloutput;
}
void init_toedev ( struct toedev * tod ) { tod -> tod_softc = NULL ; tod -> tod_connect = toedev_connect ; tod -> tod_listen_start = toedev_listen_start ; tod -> tod_listen_stop = toedev_listen_stop ; tod -> tod_input = toedev_input ; tod -> tod_rcvd = toedev_rcvd ; tod -> tod_output = toedev_output ; tod -> tod_send_rst = toedev_output ; tod -> tod_send_fin = toedev_output ; tod -> tod_pcb_detach = toedev_pcb_detach ; tod -> tod_l2_update = toedev_l2_update ; tod -> tod_route_redirect = toedev_route_redirect ; tod -> tod_syncache_added = toedev_syncache_added ; tod -> tod_syncache_removed = toedev_syncache_removed ; tod -> tod_syncache_respond = toedev_syncache_respond ; tod -> tod_offload_socket = toedev_offload_socket ; tod -> tod_ctloutput = toedev_ctloutput ; }
Fill up a freshly allocated toedev struct with reasonable defaults.
Fill up a freshly allocated toedev struct with reasonable defaults .
/*
	 * Provide no-op defaults so that the kernel can call any toedev
	 * function without having to check whether the TOE driver supplied one
	 * or not.
	 */