sendmsg() arguments

Alex Belits (abelits@phobos.illtel.denver.co.us)
Sat, 15 May 1999 03:23:26 -0700 (PDT)


In Linux 2.0.x and other systems sendmsg() in its second argument msg
allows msg->msg_namelen to contain nonsense if msg->msg_name is NULL (what
kinda makes sense -- NULL in msg->msg_name means that there is no address
involved, so its size is meaningless). However 2.2.x checks msg->msg_namelen
instead -- if it's nonzero, msg->msg_name is considered to be an address
even if it's NULL (and therefore error is returned). Why?

-- 
Alex

---------------------------------------------------------------------- Excellent.. now give users the option to cut your hair you hippie! -- Anonymous Coward

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/