]> git.ipfire.org Git - thirdparty/ulogd2.git/commitdiff
pgsql: fix type of mac_protocol and oob_protocol.
authorEric Leblond <eric@inl.fr>
Mon, 2 Feb 2009 19:46:32 +0000 (20:46 +0100)
committerEric Leblond <eric@inl.fr>
Sun, 8 Feb 2009 20:08:06 +0000 (21:08 +0100)
The oob_protocol does not fit into a smallint (IPv6 case for example).
This patch switches the length of the related field to an integer.

doc/pgsql-ulogd2-flat.sql
doc/pgsql-ulogd2.sql

index e950bbf87dd29d9b373b11372864f9f817f4d8aa..cf1a07fe240097591a32518536bfee3948a9258f 100644 (file)
@@ -52,7 +52,7 @@ CREATE TABLE ulog2 (
   -- timestamp timestamp NOT NULL default 'now',
   mac_saddr_str macaddr default NULL,
   mac_daddr_str macaddr default NULL,
-  oob_protocol smallint default NULL,
+  oob_protocol integer default NULL,
   raw_type integer default NULL,
   mac_str varchar(256) default NULL,
   tcp_sport integer default NULL,
index da66c8568b083dff5520ad8a972a055eb730dd51..8f47bf949f7028c8e53cf1dcb218471fefcaee7c 100644 (file)
@@ -75,7 +75,7 @@ CREATE TABLE mac (
   _mac_id bigint PRIMARY KEY UNIQUE NOT NULL DEFAULT nextval('mac__id_seq'),
   mac_saddr macaddr NOT NULL,
   mac_daddr macaddr default NULL,
-  mac_protocol smallint default NULL
+  mac_protocol integer default NULL
 ) WITH (OIDS=FALSE);
 
 CREATE INDEX mac_saddr ON mac(mac_saddr);