<?php
/*
$Id: static.php 579 2014-05-17 21:23:44Z bhockney $
(C) 2003-2014 by Bob Hockney <zeus@ix.netcom.com>

static data for webfwlog

This code is distributed under the terms of GNU GPL
*/
?>
<?php

// This file contains static data

// Long Names are used as descriptions on the report specification form
// Short Names are used as column headings on reports
// Edit at your own risk!

// Long Names for variables
$longnames = array(
	'sname'				=> 'Source Name',
	'id'				=> 'Record Num',
	'count'				=> 'Count',
	'oob_time_sec'		=> 'Time',
	'oob_time_usec'		=> 'Time &micro;sec',
	'oob_in'			=> 'Input Interface',
	'oob_out'			=> 'Output Interface',
	'earliest'			=> 'Earliest time',
	'latest'			=> 'Latest time',
	'oob_earliest'		=> 'Earliest OOB time',
	'oob_latest'		=> 'Latest OOB time',
	'oob_prefix'		=> 'Log Label',
	'oob_mark'			=> 'Firewall Mark',
	'oob_family'		=> 'IP Family',
	'ip_protocol'		=> 'IP Protocol',
	'ip_saddr'			=> 'Source IP',
	'src_host'			=> 'Source Host',
	'ip_daddr'			=> 'Destination IP',
	'dst_host'			=> 'Destination Host',
	'ip_tos'			=> 'IP TOS / IPv6 TC',
	'ip_ttl'			=> 'IP TTL / IPv6 Hoplimit',
	'ip_totlen'			=> 'IP Total Length',
	'ip_ihl'			=> 'IP Header Length',
	'ip_csum'			=> 'IP Checksum',
	'ip_id'				=> 'IP ID',
	'ip_fragoff'		=> 'Fragmentation Offset',
	'ip6_priority'		=> 'IPv6 Traffic Class',
	'ip6_hoplimit'		=> 'IPv6 Hoplimit',
	'ip6_flowlabel'		=> 'IPv6 Flowlabel',
	'ip6_payloadlen'	=> 'IPv6 Payload Length',
	'ip6_fragid'		=> 'IPv6 Fragmentation ID',
	'ip6_fragoff'		=> 'IPv6 Fragmentation Offset',
	'sport'				=> 'Source Port',
	'src_service'		=> 'Source Service',
	'dport'				=> 'Destination Port',
	'dst_service'		=> 'Destination Service',
	'tcp_sport'			=> 'TCP Source Port',
	'tcp_dport'			=> 'TCP Destination Port',
	'tcp_seq'			=> 'TCP Sequence Number',
	'tcp_ackseq'		=> 'TCP ACK Sequence Number',
	'tcp_window'		=> 'TCP Window',
	'tcp_off'			=> 'TCP Data Offset',
	'tcp_csum'			=> 'TCP Checksum',
	'tcp_options'		=> 'TCP Options',
	'tcp_urg'			=> 'tcp_urg',
	'tcp_urgp'			=> 'TCP Urgent Pointer',
	'tcp_ack'			=> 'tcp_ack',
	'tcp_psh'			=> 'tcp_psh',
	'tcp_rst'			=> 'tcp_rst',
	'tcp_syn'			=> 'tcp_syn',
	'tcp_fin'			=> 'tcp_fin',
	'udp_sport'			=> 'UDP Source Port',
	'udp_dport'			=> 'UDP Destination Port',
	'udp_len'			=> 'UDP Length',
	'udp_csum'			=> 'UDP Checksum',
	'icmptype'			=> 'ICMP Type',
	'icmpcode'			=> 'ICMP Code',
	'icmpechoid'		=> 'ICMP Echo ID',
	'icmpechoseq'		=> 'ICMP Echo Sequence Number',
	'icmp_type'			=> 'ICMPv4 Type',
	'icmp_code'			=> 'ICMPv4 Code',
	'icmp_echoid'		=> 'ICMPv4 Echo ID',
	'icmp_echoseq'		=> 'ICMPv4 Echo Sequence Number',
	'icmp_gateway'		=> 'ICMPv4 Redirect Gateway',
	'icmp_fragmtu'		=> 'ICMPv4 Next Hop MTU',
	'icmpv6_type'		=> 'ICMPv6 Type',
	'icmpv6_code'		=> 'ICMPv6 Code',
	'icmpv6_echoid'		=> 'ICMPv6 Echo ID',
	'icmpv6_echoseq'	=> 'ICMPv6 Echo Sequence Number',
	'raw_type'			=> 'ARP HW Type',
	'raw_mac'			=> 'MAC String',
	'oob_protocol'		=> 'Ethernet Protocol',
	'mac_saddr_str'		=> 'Source MAC',
	'mac_daddr_str'		=> 'Destination MAC',
	'oob_hook'			=> 'Netfilter Hook',
	'local_time'		=> 'Local Time',
	'local_hostname'	=> 'Local Host',
	'pwsniff_user'		=> 'pwsniff user',
	'pwsniff_pass'		=> 'pwsniff pass',
	'ahesp_spi'			=> 'AH/ESP protocol SPI',
	'extra'				=> 'Arbitrary column'
);

// Short Names for variables
// Must be unique
$shortnames = array(
	'local_hostname'	=> 'Local Host',
	'oob_in'			=> 'In If',
	'oob_out'			=> 'Out If',
	'count'				=> 'Count',
	'sname'				=> 'Source',
	'id'				=> 'Packet',
	'oob_time_sec'		=> 'Time',
	'oob_time_usec'		=> 'Time &micro;sec',
	'earliest'			=> 'Earliest',
	'latest'			=> 'Latest',
	'oob_earliest'		=> 'Earliest OOB',
	'oob_latest'		=> 'Latest OOB',
	'oob_prefix'		=> 'Label',
	'oob_mark'			=> 'Mark',
	'oob_family'		=> 'Family',
	'ip_protocol'		=> 'Proto',
	'ip_saddr'			=> 'Source IP',
	'src_host'			=> 'Source Host',
	'ip_daddr'			=> 'Destination IP',
	'dst_host'			=> 'Destination Host',
	'ip_tos'			=> 'TOS',
	'ip_ttl'			=> 'TTL',
	'ip_totlen'			=> 'Pkt Len',
	'ip_ihl'			=> 'Head Len',
	'ip_csum'			=> 'Checksum',
	'ip_id'				=> 'IP ID',
	'ip_fragoff'		=> 'IP Offset',
	'ip6_flowlabel'		=> 'IPv6 Flow',
	'ip6_payloadlen'	=> 'IPv6 Pay Len',
	'sport'				=> 'Src Port',
	'src_service'		=> 'Src Service',
	'dport'				=> 'Dest Port',
	'dst_service'		=> 'Dest Service',
	'tcp_seq'			=> 'TCP Seq',
	'tcp_ackseq'		=> 'Ack Seq',
	'tcp_window'		=> 'Window',
	'tcp_off'			=> 'TCP Offset',
	'tcp_csum'			=> 'TCP Csum',
	'tcp_options'		=> 'Options',
	'tcp_urg'			=> 'tcp_urg',
	'tcp_urgp'			=> 'Urgent Pointer',
	'tcp_ack'			=> 'tcp_ack',
	'tcp_psh'			=> 'tcp_psh',
	'tcp_rst'			=> 'tcp_rst',
	'tcp_syn'			=> 'tcp_syn',
	'tcp_fin'			=> 'tcp_fin',
	'udp_len'			=> 'UDP Len',
	'udp_csum'			=> 'UDP Csum',
	'icmptype'			=> 'Ty',
	'icmpcode'			=> 'Co',
	'icmpechoid'		=> 'Echo ID',
	'icmpechoseq'		=> 'Echo Seq',
	'icmp_gateway'		=> 'Gateway',
	'icmp_fragmtu'		=> 'MTU',
	'raw_type'			=> 'ARP Type',
	'raw_mac'			=> 'MAC String',
	'oob_protocol'		=> 'Ether Proto',
	'mac_saddr_str'		=> 'Source MAC',
	'mac_daddr_str'		=> 'Destination MAC',
	'oob_hook'			=> 'NF Hook',
	'local_time'		=> 'Local Time',
	'pwsniff_user'		=> 'pwsniff user',
	'pwsniff_pass'		=> 'pwsniff pass',
	'ahesp_spi'			=> 'AH/ESP SPI',
);

// The default column and sort orders are the order in which unselected 
// items will appear on the report specification form
//
// Edit at your own risk!

// default Column order
$dcolumnorder = array(
	'c_count',
	'c_oob_time_sec',
	'c_oob_time_usec',
	'c_earliest',
	'c_latest',
	'c_oob_prefix',
	'c_oob_mark',
	'c_oob_in',
	'c_oob_out',
	'c_ip_saddr',
	'c_src_host',
	'c_ip_daddr',
	'c_dst_host',
	'c_oob_family',
	'c_ip_protocol',
	'c_ip_tos',
	'c_ip_ttl',
	'c_ip_totlen',
	'c_ip_ihl',
	'c_ip_csum',
	'c_ip_id',
	'c_ip_fragoff',
	'c_ip6_flowlabel',
	'c_ip6_payloadlen',
	'c_dport',
	'c_dst_service',
	'c_sport',
	'c_src_service',
	'c_tcp_seq',
	'c_tcp_ackseq',
	'c_tcp_window',
	'c_tcp_off',
	'c_tcp_csum',
	'c_tcp_options',
	'c_tcp_urgp',
	'c_udp_len',
	'c_udp_csum',
	'c_icmptype',
	'c_icmpcode',
	'c_icmpechoid',
	'c_icmpechoseq',
	'c_icmp_gateway',
	'c_icmp_fragmtu',
	'c_sname',
	'c_id',
	'c_raw_type',
	'c_raw_mac',
	'c_oob_protocol',
	'c_mac_saddr_str',
	'c_mac_daddr_str',
	'c_oob_earliest',
	'c_oob_latest',
	'c_local_hostname',
	'c_local_time',
	'c_oob_hook',
	'c_pwsniff_user',
	'c_pwsniff_pass',
	'c_ahesp_spi'
);

// default sort order
$dsortorder = array(
	's_count',
	's_ip_protocol',
	's_dport',
	's_ip_saddr',
	's_ip_daddr',
	's_sport',
	's_oob_prefix',
	's_tcp_options',
	's_oob_in',
	's_oob_out',
	's_earliest',
	's_latest',
	's_oob_time_sec',
	's_oob_time_usec',
	's_oob_mark',
	's_oob_family',
	's_ip_tos',
	's_ip_ttl',
	's_ip_totlen',
	's_ip_ihl',
	's_ip_csum',
	's_ip_id',
	's_ip_fragoff',
	's_ip6_flowlabel',
	's_ip6_payloadlen',
	's_tcp_seq',
	's_tcp_ackseq',
	's_tcp_window',
	's_tcp_off',
	's_tcp_csum',
	's_tcp_urgp',
	's_udp_len',
	's_udp_csum',
	's_icmptype',
	's_icmpcode',
	's_icmpechoid',
	's_icmpechoseq',
	's_icmp_gateway',
	's_icmp_fragmtu',
	's_sname',
	's_id',
	's_raw_type',
	's_raw_mac',
	's_oob_protocol',
	's_mac_saddr_str',
	's_mac_daddr_str',
	's_oob_earliest',
	's_oob_latest',
	's_local_hostname',
	's_local_time',
	's_oob_hook',
	's_pwsniff_user',
	's_pwsniff_pass',
	's_ahesp_spi'
);

if ($config["allow_raw_sql"]) { ;
	$dcolumnorder[] = "c_extra";
	$dsortorder[] = "s_extra";
}

// Named constants
if (!defined("AF_INET"))
	define ("AF_INET", 2);
if (!defined("AF_INET6"))
	define('AF_INET6', 10);

// vim:set ts=4:

?>
