aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/netxray.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2014-12-16 22:40:45 -0800
committerGuy Harris <guy@alum.mit.edu>2014-12-17 06:41:45 +0000
commitdbdcae80ba93961f66274f37178d745557786525 (patch)
treee69243804282a6a2b448c2b49dbc0f05b499927c /wiretap/netxray.c
parent40f69b2778cb6a9add18cfeacbca430284b1cd66 (diff)
Rename WTAP_ERR_UNSUPPORTED_ENCAP to WTAP_ERR_UNWRITABLE_ENCAP.
That makes it clearer what the problem is, and that it should only be returned by the dump code path, not by the read code path. Change-Id: Icc5c9cff43be6c073f0467607555fa7138c5d074 Reviewed-on: https://code.wireshark.org/review/5797 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'wiretap/netxray.c')
-rw-r--r--wiretap/netxray.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/wiretap/netxray.c b/wiretap/netxray.c
index fad1f8454e..fa047ccaca 100644
--- a/wiretap/netxray.c
+++ b/wiretap/netxray.c
@@ -1690,7 +1690,7 @@ netxray_dump_can_write_encap_1_1(int encap)
return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED;
if (wtap_encap_to_netxray_1_1_encap(encap) == -1)
- return WTAP_ERR_UNSUPPORTED_ENCAP;
+ return WTAP_ERR_UNWRITABLE_ENCAP;
return 0;
}
@@ -1867,7 +1867,7 @@ netxray_dump_can_write_encap_2_0(int encap)
return WTAP_ERR_ENCAP_PER_PACKET_UNSUPPORTED;
if (wtap_encap_to_netxray_2_0_encap(encap) == -1)
- return WTAP_ERR_UNSUPPORTED_ENCAP;
+ return WTAP_ERR_UNWRITABLE_ENCAP;
return 0;
}