projects
/
spider.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
try to sort out PC16 so that local connections override and update remote
[spider.git]
/
perl
/
DXProtHandle.pm
diff --git
a/perl/DXProtHandle.pm
b/perl/DXProtHandle.pm
index a62c6bef77de07b90cbf6a41711cc6f58708e6e5..9d287df45133b1e3925e26d01a40b6c69a907a61 100644
(file)
--- a/
perl/DXProtHandle.pm
+++ b/
perl/DXProtHandle.pm
@@
-423,6
+423,10
@@
sub handle_16
my $h;
$h = 1 if DXChannel::get($ncall);
RouteDB::update($ncall, $self->{call}, $h);
my $h;
$h = 1 if DXChannel::get($ncall);
RouteDB::update($ncall, $self->{call}, $h);
+ if ($h && $self->{call} ne $ncall) {
+ dbg("PCPROT: trying to update a local node, ignored") if isdbg('chanerr');
+ return;
+ }
if (eph_dup($line)) {
dbg("PCPROT: dup PC16 detected") if isdbg('chanerr');
if (eph_dup($line)) {
dbg("PCPROT: dup PC16 detected") if isdbg('chanerr');
@@
-764,7
+768,7
@@
sub handle_19
# but remember there will only be one (pair) these because any extras will be
# thrown away.
if (@rout) {
# but remember there will only be one (pair) these because any extras will be
# thrown away.
if (@rout) {
-
$self->route_pc21($self->{call}, $line, @rout);
+
#
$self->route_pc21($self->{call}, $line, @rout);
$self->route_pc19($self->{call}, $line, @rout);
}
if (@pc92out) {
$self->route_pc19($self->{call}, $line, @rout);
}
if (@pc92out) {