Changeset e846288 in rtems-libbsd for rtemsbsd


Ignore:
Timestamp:
06/21/17 12:35:19 (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5, 5-freebsd-12, 6-freebsd-12, master
Children:
33d82be1
Parents:
07c8680
git-author:
Sebastian Huber <sebastian.huber@…> (06/21/17 12:35:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:06)
Message:

Add rtems_bsd_set_if_input()

Location:
rtemsbsd
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • rtemsbsd/include/rtems/bsd/zerocopy.h

    r07c8680 re846288  
    88
    99/*
    10  * Copyright (c) 2015 embedded brains GmbH.  All rights reserved.
     10 * Copyright (c) 2015, 2017 embedded brains GmbH.  All rights reserved.
    1111 *
    1212 *  embedded brains GmbH
     
    6262    const struct sockaddr *dest_addr);
    6363
     64struct ifnet;
     65
     66typedef void (*rtems_bsd_if_input_init)(struct ifnet *, void *);
     67
     68typedef void (*rtems_bsd_if_input)(struct ifnet *, struct mbuf *);
     69
     70/**
     71 * @brief Sets the interface input handler of the specified network interface.
     72 *
     73 * @param ifname The network interface name.
     74 * @param init Initialization routine called right before the new interface
     75 *   input handler is registered in the context of the executing thread.
     76 * @param if_input The new interface input handler.
     77 * @param arg The interface input handler argument available via struct
     78 * ifnet::if_input_arg.
     79 *
     80 * @retval NULL An error occurred.
     81 * @retval other The old interface input handler.
     82 */
     83rtems_bsd_if_input rtems_bsd_set_if_input(const char *ifname,
     84    rtems_bsd_if_input_init init, rtems_bsd_if_input if_input,
     85    void *arg);
     86
    6487#ifdef __cplusplus
    6588}
Note: See TracChangeset for help on using the changeset viewer.