Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Synchronet
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Main
Synchronet
Commits
11033c27
Commit
11033c27
authored
12 years ago
by
echicken
Browse files
Options
Downloads
Patches
Plain Diff
Return information field of a UI frame on ax25Client.receive().
parent
ebf897a1
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
exec/load/kissAX25lib.js
+2
-2
2 additions, 2 deletions
exec/load/kissAX25lib.js
with
2 additions
and
2 deletions
exec/load/kissAX25lib.js
+
2
−
2
View file @
11033c27
...
...
@@ -274,7 +274,7 @@ function ax25Client(destination, destinationSSID, source, sourceSSID, k) {
this
.
connected
=
false
;
this
.
reject
=
false
;
}
else
if
((
p
.
control
&
U_FRAME
)
==
U_FRAME
)
{
// Unnumbered Information fields should be processed, I guess.
if
(
p
.
hasOwnProperty
(
"
information
"
)
&&
p
.
information
.
length
>
0
)
retval
=
p
.
information
;
return
retval
;
}
else
if
(
!
this
.
connected
)
{
a
.
assemble
(
this
.
callsign
,
this
.
ssid
,
this
.
kissTNC
.
callsign
,
this
.
kissTNC
.
ssid
,
false
,
U_FRAME_DM
);
...
...
@@ -314,7 +314,7 @@ function ax25Client(destination, destinationSSID, source, sourceSSID, k) {
this
.
rsv
++
;
if
(
this
.
rsv
>
7
)
this
.
rsv
=
0
;
a
.
assemble
(
this
.
callsign
,
this
.
ssid
,
this
.
kissTNC
.
callsign
,
this
.
kissTNC
.
ssid
,
false
,
(
S_FRAME_RR
|
(
this
.
rsv
<<
5
)));
if
(
p
.
hasOwnProperty
(
"
information
"
)
||
p
.
information
.
length
>
0
)
retval
=
p
.
information
;
if
(
p
.
hasOwnProperty
(
"
information
"
)
&&
p
.
information
.
length
>
0
)
retval
=
p
.
information
;
this
.
reject
=
false
;
}
else
{
// Send a FRMR with the offending control field, our RSV and SSV, and the "Z" flag to indicate an invalid N(R)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment