Update comments: From wtap_pkthdr to wtap_rec.
Fixup some overlooked comments to reflect refactoring made back
in 2018 with commit 1f5f63f8ef
.
This commit is contained in:
parent
1694820e84
commit
2e137f31fa
|
@ -141,7 +141,7 @@ daintree_sna_seek_read(wtap *wth, gint64 seek_off, wtap_rec *rec,
|
||||||
err_info);
|
err_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Read a header line, scan it, and fill in a struct wtap_pkthdr.
|
/* Read a header line, scan it, and fill in a struct wtap_rec.
|
||||||
* Then convert packet data from ASCII hex string to binary in place,
|
* Then convert packet data from ASCII hex string to binary in place,
|
||||||
* sanity-check its length against what we assume is the packet length field,
|
* sanity-check its length against what we assume is the packet length field,
|
||||||
* and copy it into a Buffer. */
|
* and copy it into a Buffer. */
|
||||||
|
|
|
@ -135,7 +135,7 @@ ipfix_read_message_header(ipfix_message_header_t *pfx_hdr, FILE_T fh, int *err,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Read IPFIX message header from file and fill in the struct wtap_pkthdr
|
/* Read IPFIX message header from file and fill in the struct wtap_rec
|
||||||
* for the packet, and, if that succeeds, read the packet data.
|
* for the packet, and, if that succeeds, read the packet data.
|
||||||
* Return true on success. Set *err to 0 on EOF, any other value for "real"
|
* Return true on success. Set *err to 0 on EOF, any other value for "real"
|
||||||
* errors (EOF is ok, since return value is still FALSE).
|
* errors (EOF is ok, since return value is still FALSE).
|
||||||
|
|
|
@ -1727,7 +1727,7 @@ static gboolean nstrace_seek_read_v10(wtap *wth, gint64 seek_off,
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Fill in what part of the struct wtap_pkthdr we can.
|
** Fill in what part of the struct wtap_rec we can.
|
||||||
*/
|
*/
|
||||||
#define GENERATE_CASE_FULL(rec,type,HEADERVER) \
|
#define GENERATE_CASE_FULL(rec,type,HEADERVER) \
|
||||||
case NSPR_PDPKTRACEFULLTX_V##type:\
|
case NSPR_PDPKTRACEFULLTX_V##type:\
|
||||||
|
|
|
@ -246,9 +246,9 @@ typedef struct {
|
||||||
* A handler has a "read" routine and a "write" routine.
|
* A handler has a "read" routine and a "write" routine.
|
||||||
*
|
*
|
||||||
* A "read" routine returns a block as a libwiretap record, filling
|
* A "read" routine returns a block as a libwiretap record, filling
|
||||||
* in the wtap_pkthdr structure with the appropriate record type and
|
* in the wtap_rec structure with the appropriate record type and
|
||||||
* other information, and filling in the supplied Buffer with
|
* other information, and filling in the supplied Buffer with
|
||||||
* data for which there's no place in the wtap_pkthdr structure.
|
* data for which there's no place in the wtap_rec structure.
|
||||||
*
|
*
|
||||||
* A "write" routine takes a libwiretap record and Buffer and writes
|
* A "write" routine takes a libwiretap record and Buffer and writes
|
||||||
* out a block.
|
* out a block.
|
||||||
|
|
|
@ -308,7 +308,7 @@ pppdump_open(wtap *wth, int *err, gchar **err_info)
|
||||||
return WTAP_OPEN_MINE;
|
return WTAP_OPEN_MINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set part of the struct wtap_pkthdr. */
|
/* Set part of the struct wtap_rec. */
|
||||||
static void
|
static void
|
||||||
pppdump_set_phdr(wtap_rec *rec, int num_bytes,
|
pppdump_set_phdr(wtap_rec *rec, int num_bytes,
|
||||||
direction_enum direction)
|
direction_enum direction)
|
||||||
|
|
|
@ -1843,7 +1843,7 @@ gboolean wtap_read(wtap *wth, wtap_rec *rec, Buffer *buf, int *err,
|
||||||
* reading.
|
* reading.
|
||||||
* @seek_off a gint64 giving an offset value returned by a previous
|
* @seek_off a gint64 giving an offset value returned by a previous
|
||||||
* wtap_read() call.
|
* wtap_read() call.
|
||||||
* @phdr a pointer to a struct wtap_pkthdr, filled in with information
|
* @rec a pointer to a struct wtap_rec, filled in with information
|
||||||
* about the record.
|
* about the record.
|
||||||
* @buf a pointer to a Buffer, filled in with data from the record.
|
* @buf a pointer to a Buffer, filled in with data from the record.
|
||||||
* @param err a positive "errno" value, or a negative number indicating
|
* @param err a positive "errno" value, or a negative number indicating
|
||||||
|
|
Loading…
Reference in New Issue