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>
1 file changed
tree: 0f8734c90f642c230e706eb35600b84f8f0618d2
  1. inarp.c
  2. Makefile