diff options
author | Guy Harris <guy@alum.mit.edu> | 2011-09-01 09:43:10 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2011-09-01 09:43:10 +0000 |
commit | e9fc1b72aabaae01cd6cad613dfc88168d8aed9a (patch) | |
tree | c1bdbe16d5579966f05db9cb334a115e011e08ff /wiretap/eyesdn.c | |
parent | 10a3cb6e0f30290ccce97c01d482f05d083915a6 (diff) |
Use guint8 rather than guchar for raw octets and pointers to arrays of
same.
Add to wiretap/pcap-common.c a routine to fill in the pseudo-header for
ATM (by looking at the VPI, VCI, and packet data, and guessing) and
Ethernet (setting the FCS length appropriately). Use it for both pcap
and pcap-ng files.
svn path=/trunk/; revision=38840
Diffstat (limited to 'wiretap/eyesdn.c')
-rw-r--r-- | wiretap/eyesdn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/eyesdn.c b/wiretap/eyesdn.c index 27a2753385..8ca55bf9ee 100644 --- a/wiretap/eyesdn.c +++ b/wiretap/eyesdn.c @@ -427,7 +427,7 @@ esc_write(wtap_dumper *wdh, const guint8 *buf, int len, int *err) static gboolean eyesdn_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const union wtap_pseudo_header *pseudo_header _U_, - const guchar *pd, int *err); + const guint8 *pd, int *err); gboolean eyesdn_dump_open(wtap_dumper *wdh, int *err) { @@ -465,7 +465,7 @@ int eyesdn_dump_can_write_encap(int encap) static gboolean eyesdn_dump(wtap_dumper *wdh, const struct wtap_pkthdr *phdr, const union wtap_pseudo_header *pseudo_header _U_, - const guchar *pd, int *err) + const guint8 *pd, int *err) { static const guint8 start_flag = 0xff; guint8 buf[EYESDN_HDR_LENGTH]; |