Created attachment 387188 [details, diff] PyObject_AsReadBuffer api fix PyObject_AsReadBuffer api changed to use Py_ssize_t instead of int for length argument. ignoring this leads to segfaults, using the ip_cksum_add method. this patch fixes the python api used in dnet.pyx as well as replacing the 'type' argument names with 'type_' as the first is now prohibited in pyrex. a newly generated dnet.c is also included.