Functions | Variables
rarp.c File Reference

Reverse Address Resolution Protocol. More...

#include <stdint.h>
#include <byteswap.h>
#include <ipxe/netdevice.h>
#include <ipxe/iobuf.h>
#include <ipxe/if_ether.h>
#include <ipxe/rarp.h>

Go to the source code of this file.


static int rarp_rx (struct io_buffer *iobuf, struct net_device *netdev __unused, const void *ll_dest __unused, const void *ll_source __unused, unsigned int flags __unused)
 Process incoming ARP packets.
static const char * rarp_ntoa (const void *net_addr __unused)
 Transcribe RARP address.


struct net_protocol rarp_protocol __net_protocol
 RARP protocol.

Detailed Description

Reverse Address Resolution Protocol.

Definition in file rarp.c.

Function Documentation

static int rarp_rx ( struct io_buffer iobuf,
struct net_device *netdev  __unused,
const void *ll_dest  __unused,
const void *ll_source  __unused,
unsigned int flags  __unused 
) [static]

Process incoming ARP packets.

iobufI/O buffer
netdevNetwork device
ll_destLink-layer destination address
ll_sourceLink-layer source address
flagsPacket flags
Return values:
rcReturn status code

This is a dummy method which simply discards RARP packets.

Definition at line 51 of file rarp.c.

References free_iob().

        free_iob ( iobuf );
        return 0;
static const char* rarp_ntoa ( const void *net_addr  __unused) [static]

Transcribe RARP address.

net_addrRARP address
Return values:

This operation is meaningless for the RARP protocol.

Definition at line 69 of file rarp.c.

        return "<RARP>";

Variable Documentation

struct net_protocol rarp_protocol __net_protocol
Initial value:
        .name = "RARP",
        .net_proto = htons ( ETH_P_RARP ),
        .rx = rarp_rx,
        .ntoa = rarp_ntoa,

RARP protocol.

AoE protocol.

Definition at line 74 of file rarp.c.