Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/nic/src/nic_driver.c

    r6d8455d rfbcdeb8  
    114114                if (!iface->set_state)
    115115                        iface->set_state = nic_set_state_impl;
    116                 if (!iface->send_frame)
    117                         iface->send_frame = nic_send_frame_impl;
     116                if (!iface->send_message)
     117                        iface->send_message = nic_send_message_impl;
    118118                if (!iface->connect_to_nil)
    119119                        iface->connect_to_nil = nic_connect_to_nil_impl;
     
    168168 *
    169169 * @param nic_data
    170  * @param sffunc        Function handling the send_frame request
    171  */
    172 void nic_set_send_frame_handler(nic_t *nic_data, send_frame_handler sffunc)
    173 {
    174         nic_data->send_frame = sffunc;
     170 * @param wpfunc                Function handling the write_packet request
     171 */
     172void nic_set_write_packet_handler(nic_t *nic_data, write_packet_handler wpfunc)
     173{
     174        nic_data->write_packet = wpfunc;
    175175}
    176176
     
    765765        nic_data->poll_mode = NIC_POLL_IMMEDIATE;
    766766        nic_data->default_poll_mode = NIC_POLL_IMMEDIATE;
    767         nic_data->send_frame = NULL;
     767        nic_data->write_packet = NULL;
    768768        nic_data->on_activating = NULL;
    769769        nic_data->on_going_down = NULL;
Note: See TracChangeset for help on using the changeset viewer.