diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-04-21 09:15:52 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-04-21 09:15:52 +0200 |
commit | 5c8a43ce348cdac4fac0a6ee470342ff7dab3a64 (patch) | |
tree | d72fee9ca8a12695bec247fa64288703ebf8aa27 /nrconfig.c | |
parent | 60368d2e0bd1a81c64b1a30b0819232866ccedb4 (diff) |
Import ax25-lib 0.0.2 from tarballax25-lib-0.0.2
Diffstat (limited to 'nrconfig.c')
-rw-r--r-- | nrconfig.c | 17 |
1 files changed, 13 insertions, 4 deletions
@@ -6,14 +6,23 @@ #include <unistd.h> #include <errno.h> #include <ctype.h> +#include <config.h> #include <sys/types.h> #include <sys/ioctl.h> #include <net/if.h> #include <net/if_arp.h> +#ifdef HAVE_NETAX25_AX25_H #include <netax25/ax25.h> +#else +#include "kernel_ax25.h" +#endif +#ifdef HAVE_NETROSE_ROSE_H #include <netrose/rose.h> +#else +#include "kernel_rose.h" +#endif #include "pathnames.h" #include "axlib.h" @@ -37,9 +46,9 @@ static int ax25_hw_cmp(unsigned char *callsign, unsigned char *hw_addr) { ax25_address call; - convert_call_entry(callsign, call.ax25_call); + ax25_aton_entry(callsign, call.ax25_call); - return ax25cmp(&call, (ax25_address *)hw_addr) == 0; + return ax25_cmp(&call, (ax25_address *)hw_addr) == 0; } static NR_Port *nr_port_ptr(char *name) @@ -120,9 +129,9 @@ char *nr_config_get_port(ax25_address *callsign) ax25_address addr; while (p != NULL) { - convert_call_entry(p->Call, (char *)&addr); + ax25_aton_entry(p->Call, (char *)&addr); - if (ax25cmp(callsign, &addr) == 0) + if (ax25_cmp(callsign, &addr) == 0) return p->Name; p = p->Next; |