diff options
Diffstat (limited to 'epan/wslua/wslua_dumper.c')
-rw-r--r-- | epan/wslua/wslua_dumper.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/wslua/wslua_dumper.c b/epan/wslua/wslua_dumper.c index a78b50dee1..de6b2aacef 100644 --- a/epan/wslua/wslua_dumper.c +++ b/epan/wslua/wslua_dumper.c @@ -23,7 +23,7 @@ make Wireshark save a capture file to disk. `Dumper` represents Wireshark's built-in file format writers (see the `wtap_name_to_file_type_subtype` function). - (The `wtap_filetypes` table in `init.lua` is deprecated, and should + (The `wtap_filetypes` table is deprecated, and should only be used in code that must run on Wireshark 3.4.3 and earlier 3.4 releases or in Wireshark 3.2.11 and earlier 3.2.x releases.) @@ -203,12 +203,12 @@ WSLUA_CONSTRUCTOR Dumper_new(lua_State* L) { */ #define WSLUA_ARG_Dumper_new_FILENAME 1 /* The name of the capture file to be created. */ #define WSLUA_OPTARG_Dumper_new_FILETYPE 2 /* The type of the file to be created - a number returned by `wtap_name_to_file_type_subtype()`. - (The `wtap_filetypes` table in `init.lua` + (The `wtap_filetypes` table is deprecated, and should only be used in code that must run on Wireshark 3.4.3 and earlier 3.4 releases or in Wireshark 3.2.11 and earlier 3.2.x releases.) */ -#define WSLUA_OPTARG_Dumper_new_ENCAP 3 /* The encapsulation to be used in the file to be created - a number entry from the `wtap_encaps` table in `init.lua`. */ +#define WSLUA_OPTARG_Dumper_new_ENCAP 3 /* The encapsulation to be used in the file to be created - a number entry from the `wtap_encaps` table. */ Dumper d; const char* fname = luaL_checkstring(L,WSLUA_ARG_Dumper_new_FILENAME); int filetype = (int)luaL_optinteger(L,WSLUA_OPTARG_Dumper_new_FILETYPE,wtap_pcap_file_type_subtype()); @@ -302,7 +302,7 @@ WSLUA_METHOD Dumper_close(lua_State* L) { g_hash_table_remove(dumper_encaps,*dp); - if (!wtap_dump_close(*dp, &err, &err_info)) { + if (!wtap_dump_close(*dp, NULL, &err, &err_info)) { if (err_info != NULL) { luaL_error(L,"error closing: %s (%s)", wtap_strerror(err), err_info); @@ -343,7 +343,7 @@ WSLUA_METHOD Dumper_dump(lua_State* L) { */ #define WSLUA_ARG_Dumper_dump_TIMESTAMP 2 /* The absolute timestamp the packet will have. */ #define WSLUA_ARG_Dumper_dump_PSEUDOHEADER 3 /* The `PseudoHeader` to use. */ -#define WSLUA_ARG_Dumper_dump_BYTEARRAY 4 /* the data to be saved */ +#define WSLUA_ARG_Dumper_dump_BYTEARRAY 4 /* The data to be saved */ Dumper d = checkDumper(L,1); PseudoHeader ph; @@ -585,7 +585,7 @@ static int Dumper__gc(lua_State* L) { g_hash_table_remove(dumper_encaps,*dp); - if (!wtap_dump_close(*dp, &err, &err_info)) { + if (!wtap_dump_close(*dp, NULL, &err, &err_info)) { if (err_info != NULL) { luaL_error(L,"error closing: %s (%s)", wtap_strerror(err), err_info); |