0082e6a570
specific parts to krping_dev.c, which leaves the other files as close to their upstream versions as possible.