ghTemp123 / wiresharkplugin

Automatically exported from code.google.com/p/wiresharkplugin
0 stars 0 forks source link

Preferences User Interface Columns #11

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Preferences User Interface Columns

Here you can select the columns Wireshark will display in the packet list pane.

As of version 0.99.6, you no longer have to restart Wireshark for the column 
preferences to take effect. 

Original issue reported on code.google.com by cn.wei.hp@gmail.com on 15 Dec 2010 at 11:59

GoogleCodeExporter commented 9 years ago
Windows folders%APPDATA% points to the personal configuration folder, e.g.: 
C:\Documents and Settings\<username>\Application Data (details can be found at: 
Section A.3.1, “Windows profiles”), 

Table A.1. Configuration files and folders overview
File/Folder Description Unix/Linux folders  Windows folders
preferences Settings from the Preferences dialog box.   /etc/wireshark.conf, 
$HOME/.wireshark/preferences    %WIRESHARK%\wireshark.conf, 
%APPDATA%\Wireshark\preferences
recent  Recent GUI settings (e.g. recent files 
lists). $HOME/.wireshark/recent %APPDATA%\Wireshark\recent
cfilters    Capture filters.    $HOME/.wireshark/cfilters   %WIRESHARK%\cfilters, 
%APPDATA%\Wireshark\cfilters
dfilters    Display filters.    $HOME/.wireshark/dfilters

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:04

GoogleCodeExporter commented 9 years ago
column.format: 
    "No.", "%m",
    "Time", "%Yt",
    "Source", "%s",
    "Destination", "%d",
    "Protocol", "%p",
    "Command", "%Cus:msqq.Command",
    "Sequence", "%Cus:msqq.Sequence",
    "qqNumber", "%Cus:msqq.qqNumber",
    "Length", "%Cus:msqq.Length",
    "Source Port", "%Cus:tcp.srcport",
    "Destination Port", "%Cus:tcp.dstport",
    "BSSMAP Message Type", "%Cus:gsm_a.bssmap_msgtype",
    "DTAP Call Control Message Type", "%Cus:gsm_a.dtap_msg_cc_type",
    "DTAP Short Message Service Message Type", "%Cus:gsm_a.dtap_msg_sms_type",
    "Message Type", "%Cus:sccp.message_type",
    "Message Type", "%Cus:isup.message_type",
    "Info", "%i",
    "New Column", "%m",
    "Destination Local Reference", "%Cus:sccp.dlr",
    "Source Local Reference", "%Cus:sccp.slr"

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:11

GoogleCodeExporter commented 9 years ago
    "Destination Local Reference", "%Cus:sccp.dlr",
    "Source Local Reference", "%Cus:sccp.slr"

######## User Interface: Font ########

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:13

GoogleCodeExporter commented 9 years ago
C:\Documents and Settings\Administrator\Application Data\Wireshark\preferences

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:14

GoogleCodeExporter commented 9 years ago
local file = assert(io.open("output.lua", "w"))
file:write("Hello world")

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:21

GoogleCodeExporter commented 9 years ago
filename = [[C:\aaa.txt]]
filename_b = [[C:\bbb.txt]]
local f = assert(io.open(filename))
local f_w = assert(io.open(filename_b, ‘w’))

while true do
local buffer = f:read(”*l”)

if not buffer then
break
end

print(buffer)

if string.len(buffer) > 20 then
newBuffer = string.sub (buffer, string.len(buffer) – 20 +1)
print(newBuffer)
f_w:write(newBuffer)
f_w:write(’\n’)
end

end

f:close()
f_w:close() 

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:47

GoogleCodeExporter commented 9 years ago
-- Function that copies the contents of file src to file dest
function copy(src, dest)
    local f_src = io.open(src, "r")
    local f_dest = io.open(dest, "w")

    if (not f_src or not f_dest) then
        print("Error opening files")
        return
    end

    for line in f_src:lines() do
        f_dest:write(line)

        -- lines() will not return the trailing newline, so we have to add it manually
        f_dest:write("\n")
    end

    f_src:close()
    f_dest:close()
end

Original comment by cn.wei.hp@gmail.com on 15 Dec 2010 at 12:58