Changeset 64ea525 in mainline for uspace/lib/pcap/src/pcap.c


Ignore:
Timestamp:
2024-12-13T08:44:05Z (14 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
f161ce1
Parents:
1d14090
git-author:
Nataliia Korop <n.corop08@…> (2024-11-10 09:31:01)
git-committer:
Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
Message:

init dumping destionation move to ops

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/pcap/src/pcap.c

    r1d14090 r64ea525  
    8787}
    8888
    89 /** Initialize writing to .pcap file.
    90  *
    91  * @param writer    Interface for working with .pcap file
    92  * @param filename  Name of the file for dumping packets
    93  * @return          EOK on success or an error code
    94  *
    95  */
    96 errno_t pcap_writer_to_file_init(pcap_writer_t *writer, const char *filename)
    97 {
    98         errno_t rc;
    99         writer->data = fopen(filename, "a");
    100         if (writer->data == NULL) {
    101                 rc = EINVAL;
    102                 return rc;
    103         }
    104         pcap_writer_add_header(writer);
    105 
    106         rc = EOK;
    107         return rc;
    108 }
    109 
    11089/** @}
    11190 */
Note: See TracChangeset for help on using the changeset viewer.