aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap
diff options
context:
space:
mode:
authorMichael Tüxen <tuexen@fh-muenster.de>2009-06-15 12:55:42 +0000
committerMichael Tüxen <tuexen@fh-muenster.de>2009-06-15 12:55:42 +0000
commit46ecce3d3d574fb31299df22dea37cfb80490933 (patch)
tree8e84a124b5d1b5730bfdb2d983d8f10c7c2e9569 /wiretap
parentc4e626904c8f1a46cb604685c9c529eb51fc1909 (diff)
Fix bug reported by Stig: per packet encapsulation for
pcapng is supported. svn path=/trunk/; revision=28736
Diffstat (limited to 'wiretap')
-rw-r--r--wiretap/pcapng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/pcapng.c b/wiretap/pcapng.c
index 2041ae4e7f..f71eb82ed1 100644
--- a/wiretap/pcapng.c
+++ b/wiretap/pcapng.c
@@ -1594,9 +1594,9 @@ pcapng_dump_open(wtap_dumper *wdh, gboolean cant_seek _U_, int *err)
an error indication otherwise. */
int pcapng_dump_can_write_encap(int encap)
{
- /* Per-packet encapsulations aren't supported. */
+ /* Per-packet encapsulations is supported. */
if (encap == WTAP_ENCAP_PER_PACKET)
- return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED;
+ return 0;
/* Make sure we can figure out this DLT type */
if (wtap_wtap_encap_to_pcap_encap(encap) == -1)