-
Notifications
You must be signed in to change notification settings - Fork 17
Labels
AX25 SubsystemIssues related to the AX25 subsystemIssues related to the AX25 subsystembugSomething isn't workingSomething isn't working
Description
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:
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:
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
Labels
AX25 SubsystemIssues related to the AX25 subsystemIssues related to the AX25 subsystembugSomething isn't workingSomething isn't working