framer: Added missing length function to contikimac-framer.c