[SQUASH ME] pktbuf: add diagnostic functions