ax25_ntoa(3)

ax25_ntoa3

Ax25 address manipulation routines

Part of ax25(3).

Usage

int ax25_aton(const char *cp, struct full_sockaddr_ax25 *fsap);

int ax25_aton_arglist(const char **cp, struct full_sockaddr_ax25 *fsap);

int ax25_aton_entry(const char *cp, char *axp);

char *ax25_ntoa(ax25_address *axp);

int ax25_cmp(ax25_address *ax1, ax25_address *ax2);

int ax25_validate(char *axp);

char *ax25_config_file(const char *filename);

Overview

ax25_aton() takes the ASCII string cp that is in the format callsign [[V|VIA]callsign...] and stores it in fsap in network format.

ax25_aton_entry() takes the ASCII string of a callsign cp and stores it in network format in axp.

The ax25_aton_arglist() takes a NULL terminated array of strings cp and stores it in fsap in network format.

The ax25_ntoa() takes a network format address axp and returns the ASCII representation. The string is returned in a statically allocated buffer, which subsequent calls will overwrite.

The ax25_cmp() function compares the two ax25 addresses, ax1 and ax2, that are in network format and determines whether they are identical, differ only by their SSIDs or are different.

The ax25_validate() function checks to see if the address axp in network format is a correctly formatted address.

Return value

The ax25_aton()and ax25_aton_arglist() functions return -1 if an error occurs otherwise the length of the returned structure.

The ax25_aton_entry() function returns -1 if an error occurs otherwise zero.

The ax25_cmp() function returns 0 if the two addresses are identical, 1 if they are different or 2 is only the SSIDs are different.

The ax25_validate() function returns TRUE if the callsign is valid or FALSE if it is not.

Releases

11 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1–6.0
  2. 7–9
  3. 10
  4. 11–13

From libax25-dev 0.0.12-rc5+git20230513+5581005-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.