Exemplo n.º 1
0
static int __init llc2_init(void)
{
	int rc;

	llc_build_offset_table();
	llc_station_init();
	llc_ui_sap_last_autoport = LLC_SAP_DYN_START;
	rc = llc_proc_init();
	if (!rc) {
		sock_register(&llc_ui_family_ops);
		llc_add_pack(LLC_DEST_SAP, llc_sap_handler);
		llc_add_pack(LLC_DEST_CONN, llc_conn_handler);
	}
	return rc;
}
Exemplo n.º 2
0
static int __init llc2_init(void)
{
	int rc = proto_register(&llc_proto, 0);

	if (rc != 0)
		goto out;

	llc_build_offset_table();
	llc_station_init();
	llc_ui_sap_last_autoport = LLC_SAP_DYN_START;
	rc = llc_proc_init();
	if (rc != 0)
		goto out_unregister_llc_proto;
	sock_register(&llc_ui_family_ops);
	llc_add_pack(LLC_DEST_SAP, llc_sap_handler);
	llc_add_pack(LLC_DEST_CONN, llc_conn_handler);
out:
	return rc;
out_unregister_llc_proto:
	proto_unregister(&llc_proto);
	goto out;
}