1INET(3)                    Linux Programmer's Manual                   INET(3)
2
3
4

NAME

6       ax25_aton,  ax25_aton_entry,  ax25_aton_arglist,  ax25_ntoa,  ax25_cmp,
7       ax25_validate - AX25 Address manipulation routines
8

SYNOPSIS

10       #include <netax25/ax25.h>
11
12       int ax25_aton(const char *cp, struct full_sockaddr_ax25 *fsap);
13
14       int ax25_aton_arglist(const char **cp, struct full_sockaddr_ax25 *fsap);
15
16       int ax25_aton_entry(const char *cp, char *axp);
17
18       char *ax25_ntoa(ax25_address *axp);
19
20       int ax25_cmp(ax25_address *ax1, ax25_address *ax2);
21
22       int ax25_validate(char *axp);
23
24       char *ax25_config_file(const char *filename);
25

DESCRIPTION

27       ax25_aton() takes the ASCII string cp that is in  the  format  callsign
28       [[V|VIA] callsign ...]  and stores it in fsap in network format.
29
30       ax25_aton_entry() takes the ASCII string of a callsign cp and stores it
31       in network format in axp.
32
33       ax25_aton_arglist() takes a NULL terminated array  of  strings  cp  and
34       stores it fsap in network format.
35
36       ax25_ntoa()  takes  a  network format address axp and returns the ASCII
37       representation. The string is returned in a statically  allocated  buf‐
38       fer, which subsequent calls will overwrite.
39
40       The  ax25_cmp()  function compares the two ax25 addresses, ax1 and ax2,
41       that are in network format and determines wether  they  are  identical,
42       differ only by their SSIDs or are different.
43
44       The  ax25_validate function checks to see if the address axp in network
45       format is a correctly formatted address.
46

RETURN VALUE

48       The ax25_aton() and ax25_aton_arglist() functions return -1 if an error
49       occurs otherwise the length of the returned structure.
50
51       The  ax25_aton_entry() function returns -1 if an error occurs otherwise
52       zero.
53
54       The ax25_cmp() function returns 0 if the two addresses are identical, 1
55       if they are different or 2 is only the SSIDs are different.
56
57       The  ax25_validate  function  returns  TRUE if the callsign is valid or
58       FALSE if it is not.
59

SEE ALSO

61       ax25(4), netrom(4), rose(4)
62
63
64
65Linux                            20 April 1999                         INET(3)
Impressum