Skip to content

[AGWPE] D-Rats should use AX.25 UI Frames #298

@dscp46

Description

@dscp46

Hi,

D-Rats' AGW module makes an inappropriate use of AX.25 I frames (which one MAY use after having properly established an AX.25 connection-mode data link).

The issue is located there:

D-Rats/d_rats/agw.py

Lines 695 to 700 in 54bddfd

data_frame = struct.pack("!B7s%isBB" % len(src),
0x00, # Space for flag (?)
dst, # Dest Call
src, # Source Path
0x3E, # Info
0xF0) # PID: No layer 3

To comply, we would need set the control field value to 0x03 (UI Frame, poll bit set), instead of 0x3E (I Frame, poll bit set) at line 699.

This should not introduce any regression, since the AGW and AX.25 headers are stripped without any sanity check, at line 106:

D-Rats/d_rats/agw.py

Lines 103 to 108 in 54bddfd

self.user_pad_longword = struct.unpack("<HHBBBB10s10sII",
data[:AGW_HEADER_SIZE])
self.payload = data[AGW_HEADER_SIZE:]
if len(self.payload) != self.len:
raise AgwPayloadLenError("Expecting payload of %i, got %i" %

Best regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    AX25 SubsystemIssues related to the AX25 subsystembugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions