/* Unregister a protocol driver from the arc_proto_map. Protocol drivers are responsible for registering themselves, but the unregister routine is pretty generic so we'll do it here.  */
void arcnet_unregister_proto(struct ArcProto *proto)
/* Unregister a protocol driver from the arc_proto_map. Protocol drivers are responsible for registering themselves, but the unregister routine is pretty generic so we'll do it here.  */
void arcnet_unregister_proto(struct ArcProto *proto)
{
	int count;
	if (arc_proto_default == proto)
		arc_proto_default = &arc_proto_null;
	if (arc_bcast_proto == proto)
		arc_bcast_proto = arc_proto_default;
	if (arc_raw_proto == proto)
		arc_raw_proto = arc_proto_default;
	for (count = 0; count < 256; count++) {
		if (arc_proto_map[count] == proto)
			arc_proto_map[count] = arc_proto_default;
	}
}