← Back to team overview

ubuntu-hams-devel team mailing list archive

[Bug 1943726] [NEW] Setting CRCmode with kissparms resets other settings

 

Public bug reported:

`kissparms` lets you set the kernel(?) parameters for the AX.25 KISS
TNC. Settings include setting full or half duplex, and CRC mode. The CRC
mode defaults to `auto`, which on my setup drops the first two packets,
until `auto` can find that it should turn CRC off.

Setting CRC mode will reset other settings, including (but possibly not
limited to) duplex.

Steps to reproduce:
1. Run `kissparms -p radio -c 1 -f n`

Expected outcome:

CRC mode off (`-c 1`), AND half duplex (`-f n`).

Actual outcome:

CRC mode off (yay), and full duplex (boo).

I took a look at the code, and because CRC mode is always set after
duplex is set (no matter the order on the commandline), it is not
possible to combine `-c` and `-f`. Furthermore one must always FIRST set
CRC mode with one command (thus enabling full duplex too), and then a
separate command only setting half duplex.

I tried looking at the code, but setting CRC mode uses an undocumented
magic value of 0x85 as some sort of command.

It's NOT enough to merely move the CRC setting above duplex setting,
because then there's still a strange requirement on order if one chooses
to run two commands instead of one.

ProblemType: Bug
DistroRelease: Ubuntu 20.10
Package: ax25-tools 0.0.10-rc5+git20190411+3595f87-3
ProcVersionSignature: Ubuntu 5.8.0-63.71-generic 5.8.18
Uname: Linux 5.8.0-63-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu50.7
Architecture: amd64
CasperMD5CheckResult: skip
Date: Wed Sep 15 13:10:38 2021
InstallationDate: Installed on 2021-02-12 (214 days ago)
InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
SourcePackage: ax25-tools
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: ax25-tools (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug groovy wayland-session

-- 
You received this bug notification because you are a member of Ubuntu
ham developers, which is subscribed to ax25-tools in Ubuntu.
https://bugs.launchpad.net/bugs/1943726

Title:
  Setting CRCmode with kissparms resets other settings

Status in ax25-tools package in Ubuntu:
  New

Bug description:
  `kissparms` lets you set the kernel(?) parameters for the AX.25 KISS
  TNC. Settings include setting full or half duplex, and CRC mode. The
  CRC mode defaults to `auto`, which on my setup drops the first two
  packets, until `auto` can find that it should turn CRC off.

  Setting CRC mode will reset other settings, including (but possibly
  not limited to) duplex.

  Steps to reproduce:
  1. Run `kissparms -p radio -c 1 -f n`

  Expected outcome:

  CRC mode off (`-c 1`), AND half duplex (`-f n`).

  Actual outcome:

  CRC mode off (yay), and full duplex (boo).

  I took a look at the code, and because CRC mode is always set after
  duplex is set (no matter the order on the commandline), it is not
  possible to combine `-c` and `-f`. Furthermore one must always FIRST
  set CRC mode with one command (thus enabling full duplex too), and
  then a separate command only setting half duplex.

  I tried looking at the code, but setting CRC mode uses an undocumented
  magic value of 0x85 as some sort of command.

  It's NOT enough to merely move the CRC setting above duplex setting,
  because then there's still a strange requirement on order if one
  chooses to run two commands instead of one.

  ProblemType: Bug
  DistroRelease: Ubuntu 20.10
  Package: ax25-tools 0.0.10-rc5+git20190411+3595f87-3
  ProcVersionSignature: Ubuntu 5.8.0-63.71-generic 5.8.18
  Uname: Linux 5.8.0-63-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
  ApportVersion: 2.20.11-0ubuntu50.7
  Architecture: amd64
  CasperMD5CheckResult: skip
  Date: Wed Sep 15 13:10:38 2021
  InstallationDate: Installed on 2021-02-12 (214 days ago)
  InstallationMedia: Ubuntu 20.10 "Groovy Gorilla" - Release amd64 (20201022)
  SourcePackage: ax25-tools
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ax25-tools/+bug/1943726/+subscriptions



Follow ups