iplib: Make netmkaddr() threadsafe
authorBarret Rhoden <brho@cs.berkeley.edu>
Sat, 7 Jan 2017 17:30:51 +0000 (12:30 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commitbe56da6dc60a107eb999d6510bd1c4f943faa3cc
tree491175c52f2764a463e379a429c8393bdbfa10f0
parentd77755805d7d369709e33c2e0abf67f8e4435ed6
iplib: Make netmkaddr() threadsafe

You can't use static arrays like that; either the caller provides the
memory (which is what I did) or the function dynamically allocates.

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
kern/include/ns.h
tests/ping.c
tests/ttcp.c
user/iplib/include/iplib/iplib.h
user/iplib/netmkaddr.c