edu.utah.janos.services.arp
Class ARPHandler
java.lang.Object
|
+--edu.utah.janos.services.arp.ARPHandler
- public class ARPHandler
- extends java.lang.Object
Simple wrapper for the Moab arplib.
Just reference it to initialize.
Method Summary |
static int |
arpfor(int iface,
byte[] ipaddr,
byte[] ethaddr)
Ask for an IP address's ethaddr via a specific interface |
static void |
config_iface(int iface,
byte[] ipaddr)
Setup an interface to respond to remote ARPs. |
static void |
find_ethaddr(int iface,
byte[] myEthAddr)
Get the hardware address associated with the given iface on this node. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
ARPHandler
public ARPHandler()
config_iface
public static void config_iface(int iface,
byte[] ipaddr)
- Setup an interface to respond to remote ARPs.
arpfor
public static int arpfor(int iface,
byte[] ipaddr,
byte[] ethaddr)
- Ask for an IP address's ethaddr via a specific interface
find_ethaddr
public static void find_ethaddr(int iface,
byte[] myEthAddr)
- Get the hardware address associated with the given iface on this node.
This documentation is Copyright (C) 1998-2001 The University of Utah. All Rights Reserved. See the file LICENSE for distribution terms.
Documentation, software, and mailing list archives for Janos can be found at the Janos Project: http://www.cs.utah.edu/flux/janos/