Changeset 87b490e3 in mainline for uspace/lib/pcap/src/pcapdump_client.c
- Timestamp:
- 2024-12-13T08:44:05Z (15 months ago)
- Children:
- 420b13d
- Parents:
- fb31682
- git-author:
- Nataliia Korop <n.corop08@…> (2024-11-30 19:08:32)
- git-committer:
- Nataliia Korop <n.corop08@…> (2024-12-13 08:44:05)
- File:
-
- 1 edited
-
uspace/lib/pcap/src/pcapdump_client.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/pcap/src/pcapdump_client.c
rfb31682 r87b490e3 30 30 * @{ 31 31 */ 32 /** @file 33 * @brief Client side of the pcapctl. Functions are called from the app pcapctl 32 /** @file Client side of the pcapctl. Functions are called from the app pcapctl. 34 33 */ 35 34 … … 52 51 } 53 52 53 /** Get service based on the index of the device. 54 * @param index of the device. 55 * @param svc placeholder for service ide. 56 * @return EOK if successful, error code otherwise. 57 */ 54 58 static errno_t pcapctl_cat_get_svc(int *index, service_id_t *svc) 55 59 { … … 80 84 } 81 85 86 /** Check if the index is an index of valid device. 87 * @param index to check. 88 * @return EOK if device is valid, error code otherwise. 89 */ 82 90 errno_t pcapctl_is_valid_device(int *index) 83 91 { … … 105 113 } 106 114 115 /** Check if the index is an index of valid writer operations. 116 * @param index to check. 117 * @param sess pcapctl session for IPC communictaion. 118 */ 107 119 errno_t pcapctl_is_valid_ops_number(int *index, pcapctl_sess_t *sess) 108 120 { … … 127 139 } 128 140 129 /** 130 * 131 */ 141 /** Get all devices that can dump packets. */ 132 142 errno_t pcapctl_list(void) 133 143 { … … 160 170 } 161 171 162 /** 163 * 172 /** Start pcapctl IPC session. 173 * @param index index of the device which can dump packets. 174 * @param rsess placeholder for the session. 175 * @return EOK if successful, error code otherwise. 164 176 */ 165 177 errno_t pcapctl_dump_open(int *index, pcapctl_sess_t **rsess) … … 196 208 } 197 209 198 /** 199 * 210 /** Close pcapctl IPC session. 211 * @param sess Session to close. 212 * @return EOK if successful, error code otherwise. 200 213 */ 201 214 errno_t pcapctl_dump_close(pcapctl_sess_t *sess) … … 205 218 } 206 219 207 /** S tarting a new session for pcapctl208 * 209 * @param name Name of the file to dump packets to210 * @param sess session to start211 * @return EOK on success or an error code220 /** Send start request via IPC to start dumping. 221 * 222 * @param name Name of the destination buffer to dump packets to. 223 * @param sess Session that is used for communication. 224 * @return EOK on success or an error code. 212 225 */ 213 226 errno_t pcapctl_dump_start(const char *name, int *ops_index, pcapctl_sess_t *sess) … … 233 246 } 234 247 235 /** Finish current session for pcapctl236 * 237 * @param sess Session to finish238 * @return EOK on success or an error code248 /** Send stop request via IPC to start dumping. 249 * 250 * @param sess Session that is used for communication. 251 * @return EOK on success or an error code. 239 252 */ 240 253 errno_t pcapctl_dump_stop(pcapctl_sess_t *sess)
Note:
See TracChangeset
for help on using the changeset viewer.
