[3] | 1 | # |
---|
| 2 | # Copyright (c) 2004-2007 - Consultas, PKG.fr |
---|
| 3 | # |
---|
| 4 | # This file is part of A2P. |
---|
| 5 | # |
---|
| 6 | # A2P is free software; you can redistribute it and/or modify |
---|
| 7 | # it under the terms of the GNU General Public License as published by |
---|
| 8 | # the Free Software Foundation; either version 2 of the License, or |
---|
| 9 | # (at your option) any later version. |
---|
| 10 | # |
---|
| 11 | # A2P is distributed in the hope that it will be useful, |
---|
| 12 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
| 14 | # GNU General Public License for more details. |
---|
| 15 | # |
---|
| 16 | # You should have received a copy of the GNU General Public License |
---|
| 17 | # along with A2P; if not, write to the Free Software |
---|
| 18 | # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA |
---|
| 19 | # |
---|
| 20 | # $Id: BAD.pm 3 2007-10-18 16:20:19Z g $ |
---|
| 21 | # |
---|
| 22 | # BAD known object |
---|
| 23 | # |
---|
| 24 | |
---|
| 25 | package AFPDS::MODCA::BAD ; |
---|
| 26 | |
---|
| 27 | use strict ; |
---|
| 28 | use A2P::Globals ; |
---|
| 29 | use A2P::Syslog ; |
---|
| 30 | use AFPDS::MODCA::Common ; |
---|
| 31 | |
---|
| 32 | BEGIN { |
---|
| 33 | our $VERSION = sprintf "%s", q$Rev: 1007 $ =~ /([0-9.]+)\s+/ ; |
---|
| 34 | } |
---|
| 35 | our $VERSION ; |
---|
| 36 | our @ISA = ("AFPDS::MODCA"); |
---|
| 37 | our $IDENTS ; |
---|
| 38 | |
---|
| 39 | sub _ID { 0x404040 } |
---|
| 40 | |
---|
| 41 | sub new { |
---|
| 42 | my $class = shift ; |
---|
| 43 | &Debug("new " . __PACKAGE__ . " v$VERSION object"); |
---|
| 44 | |
---|
| 45 | my $self = { |
---|
| 46 | FLUX => 0, # Associated flux |
---|
| 47 | IDENT => _ID, # MO:DCA identity |
---|
| 48 | FLAG => 0, # MO:DCA flags |
---|
| 49 | RESERVED => 0, # MO:DCA reserved |
---|
| 50 | LONG => 0, # MO:DCA buffer length |
---|
| 51 | BUFFER => '' # MO:DCA content buffer |
---|
| 52 | }; |
---|
| 53 | |
---|
| 54 | return bless $self , $class ; |
---|
| 55 | } |
---|
| 56 | |
---|
| 57 | sub validate { |
---|
| 58 | my $self = shift ; |
---|
| 59 | |
---|
| 60 | &Info("Skip known bad ident 0x404040 with length=" . $self->{LONG}); |
---|
| 61 | |
---|
| 62 | return () ; |
---|
| 63 | } |
---|
| 64 | |
---|
| 65 | sub create { |
---|
| 66 | return () ; |
---|
| 67 | } |
---|
| 68 | |
---|
| 69 | &Debug("Module " . __PACKAGE__ . " v$VERSION loaded"); |
---|
| 70 | |
---|
| 71 | ( $IDENTS->{&_ID} ) = __PACKAGE__ =~ /(\w+)$/ ; |
---|