Changeset f8c3d6e in rtems-libbsd


Ignore:
Timestamp:
Jan 20, 2014, 2:01:35 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, b96abfd647154f10ea8f7fac68e25676636eded5, debc0aed8b9bef9996b8ec0ae7a70b0b41912e27, 0ad342ae5f65d22eb6c914d58664d3b5d1d3d43f, freebsd-9.3, 98d197895b6162050176ea18d66783a1dc216d82
Children:
7831313
Parents:
c4ee445
git-author:
Sebastian Huber <sebastian.huber@…> (01/20/14 14:01:35)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/30/14 14:04:19)
Message:

Add an ARP packet processor

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    rc4ee445 rf8c3d6e  
    5353LIB_C_FILES += rtemsbsd/rtems/ipsec_get_policylen.c
    5454LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-assert.c
     55LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-arp-processor.c
    5556LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-autoconf.c
    5657LIB_C_FILES += rtemsbsd/rtems/rtems-bsd-bus-dma.c
  • freebsd-to-rtems.py

    rc4ee445 rf8c3d6e  
    640640                'rtems/ipsec_get_policylen.c',
    641641                'rtems/rtems-bsd-assert.c',
     642                'rtems/rtems-bsd-arp-processor.c',
    642643                'rtems/rtems-bsd-autoconf.c',
    643644                'rtems/rtems-bsd-bus-dma.c',
  • rtemsbsd/include/rtems/bsd/util.h

    rc4ee445 rf8c3d6e  
    3535#include <sys/types.h>
    3636
     37#include <net/if.h>
     38#include <net/if_arp.h>
    3739#include <net/ethernet.h>
    3840
     
    5860rtems_bsd_get_ethernet_addr(const char *ifname, uint8_t eaddr[ETHER_ADDR_LEN]);
    5961
     62typedef void (*rtems_bsd_arp_processor)(void *arg, int fd,
     63    const uint8_t eaddr[ETHER_ADDR_LEN], const struct arphdr *ar,
     64    uint32_t spa, uint32_t tpa, const uint8_t *sha, const uint8_t *tha);
     65
     66typedef struct rtems_bsd_arp_processor_context rtems_bsd_arp_processor_context;
     67
     68rtems_bsd_arp_processor_context *
     69rtems_bsd_arp_processor_create(const char *ifname);
     70
     71int
     72rtems_bsd_arp_processor_get_file_descriptor(
     73    const rtems_bsd_arp_processor_context *ctx);
     74
     75int
     76rtems_bsd_arp_processor_process(
     77    rtems_bsd_arp_processor_context *ctx,
     78    rtems_bsd_arp_processor processor, void *arg);
     79
    6080#ifdef __cplusplus
    6181}
Note: See TracChangeset for help on using the changeset viewer.