modify netbuffer.cpp