Changes in uspace/drv/nic/lo/lo.c [ea788701:6d8455d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/lo/lo.c
rea788701 r6d8455d 42 42 #include <async.h> 43 43 #include <nic.h> 44 #include <packet_client.h> 44 45 45 46 #define NAME "lo" … … 60 61 static void lo_send_frame(nic_t *nic_data, void *data, size_t size) 61 62 { 63 packet_t *packet; 64 int rc; 65 66 packet = nic_alloc_packet(nic_data, size); 67 if (packet == NULL) 68 return; 69 70 rc = packet_copy_data(packet, data, size); 71 if (rc != EOK) 72 return; 73 62 74 nic_report_send_ok(nic_data, 1, size); 63 nic_received_noneth_ frame(nic_data, data, size);75 nic_received_noneth_packet(nic_data, packet); 64 76 } 65 77
Note:
See TracChangeset
for help on using the changeset viewer.