commit | 3f8a28e61ffb444cd45eb5f125868634c9692b98 | [log] [tgz] |
---|---|---|
author | Jeremy Kerr <jk@ozlabs.org> | Thu Feb 25 18:56:01 2016 +0800 |
committer | Jeremy Kerr <jk@ozlabs.org> | Thu Feb 25 19:08:35 2016 +0800 |
tree | 0f8734c90f642c230e706eb35600b84f8f0618d2 | |
parent | 5bb869d07e48aa3b89e431d0541a63b233b9fd84 [diff] |
Fix packet buffer management The current inarp code keeps a large array ("buffer"), and casts this to a struct arp_request when parsing. There's no need for the buffer; just use a struct arp_request directly. We also just pass the maximum size to recvmsg, and ensure that we have enough data for a full arp request. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>