updated ringbuffer_init function and replaced inet_ntoa_r with inet_ntop as the former symbol is missing in SmartOS