snort plugin: Split the snort_read() function.