cma_get_ip_ver
switch (cma_get_ip_ver(hdr)) {
if (cma_get_ip_ver(hdr) != 4)
if (cma_get_ip_ver(hdr) != 6)