JNodeOS v1.1.5 API

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.


Constructor Summary
ARPHandler()
           
 
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
 

Constructor Detail

ARPHandler

public ARPHandler()
Method Detail

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.

JNodeOS v1.1.5 API

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/