/** * Builds an ARP request using the supplied parameters. * * @param senderMacAddress the mac address of the sender * @param senderIpAddress the ip address of the sender * @param targetIpAddress the ip address to resolve * @param vlanId the vlan id * @return the Ethernet frame containing the ARP request */ public static Ethernet buildArpRequest(byte[] senderMacAddress, byte[] senderIpAddress, byte[] targetIpAddress, short vlanId) { return buildArpRequest(senderMacAddress, senderIpAddress, MacAddress.ZERO.toBytes(), targetIpAddress, MacAddress.BROADCAST.toBytes(), vlanId); }