PIM_VERSION
if (!pimhdr || pim_hdr_version(pimhdr) != PIM_VERSION ||
if (pim->type != ((PIM_VERSION << 4) | (PIM_TYPE_REGISTER)) ||
if (pim->type != ((PIM_VERSION << 4) | PIM_TYPE_REGISTER) ||