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
26

DESCRIPTION

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

RETURN VALUE

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

SEE ALSO

62       ax25(4), netrom(4), rose(4)
63
64
65
66Linux                             2008-Feb-04                          INET(3)
Impressum