net: Allow connectionless convs to auto bind
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Feb 2017 16:20:01 +0000 (11:20 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 16 Feb 2017 18:34:59 +0000 (13:34 -0500)
commitd692397269ff98e67d2160b0174f786816afea4c
tree1ac58b4c86261bfe09b811cfe002f7bcdf9f6508
parent55f2f44a1fa6d48200afe986854a6211582dc2c8
net: Allow connectionless convs to auto bind

Conversations/sockets from connectionless protocols can immediately write
to Qdata, without a bind.  We'll automatically bind to a local port before
sending.  SOCK_DGRAM supports this, but instead of doing it in glibc,
it seemed like something Plan-9-networking apps could use too.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/src/net/devip.c