diff options
Diffstat (limited to 'src/cguittfont/irrUString.h')
0 files changed, 0 insertions, 0 deletions
![]() |
index : minetest.git | |
modified minetest for gpcfs purposes | gpcf |
aboutsummaryrefslogtreecommitdiff |
-- minetest.lua
-- Packet dissector for the UDP-based Minetest protocol
-- Copy this to $HOME/.wireshark/plugins/
--
-- Minetest-c55
-- Copyright (C) 2011 celeron55, Perttu Ahola <celeron55@gmail.com>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License along
-- with this program; if not, write to the Free Software Foundation, Inc.,
-- 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
--
-- Table of Contents:
-- Part 1: Client command dissectors (TOSERVER_*)
-- Part 2: Server command dissectors (TOCLIENT_*)
-- Part 3: Wrapper protocol subdissectors
-- Part 4: Wrapper protocol main dissector
-- Part 5: Utility functions
--------------------------------------------
-- Part 1 --
-- Client command dissectors (TOSERVER_*) --
--------------------------------------------
minetest_client_commands = {}
minetest_client_obsolete = {}
-- TOSERVER_INIT
do
local f_ser_fmt = ProtoField.uint8("minetest.client.init_ser_version",
"Maximum serialization format version", base.DEC)
local f_player_name = ProtoField.stringz("minetest.client.init_player_name", "Player Name")
local f_password = ProtoField.stringz("minetest.client.init_password", "Password")
local f_version = ProtoField.uint16("minetest.client.init_version", "Version", base.DEC)
minetest_client_commands[0x10] = {
"INIT", -- Command name
53, -- Minimum message length including code
{ f_ser_fmt, -- List of fields [optional]
f_player_name,
f_password,
f_version },
function(buffer, pinfo, tree, t) -- Dissector function [optional]
t:add(f_ser_fmt, buffer(2,1))
t:add(f_player_name, buffer(3,20))
t:add(f_password, buffer(23,28))
t:add(f_version, buffer(51,2))
end
}
end