summaryrefslogtreecommitdiffstats
path: root/ui/twin
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-10-25 14:34:30 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-11-01 15:31:59 +0800
commit896da834e7126759ef69c33347055c593abedde3 (patch)
treeb1bff122f3f61c46017cf671f0a01be7207e6cd0 /ui/twin
parent3df3cc38458bc2f6122d07a6ba348dbaf1c7267e (diff)
downloadtalos-petitboot-896da834e7126759ef69c33347055c593abedde3.tar.gz
talos-petitboot-896da834e7126759ef69c33347055c593abedde3.zip
discover/network: Allow for arbitrary-sized netlink messages
Currently, we drop any netlink data beyond our 4096-byte buffer. This means that we can only parse a limited number of network interfaces. This change uses recvmsg with MSG_PEEK to determine the size of an incoming netlink message before doing the actual recvmsg. This way, we can realloc our buffer to suit. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'ui/twin')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud