blob: 3dd6cb0b3d2306d21c00a2f2aaf0d518011594fd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/* SPDX-License-Identifier: GPL-2.0 */
#include <sys/socket.h>
#include <errno.h>
#include <linux/ax25.h>
#include "utils.h"
const char *ax25_ntop1(const ax25_address *src, char *dst, socklen_t size);
const char *netrom_ntop(int af, const void *addr, char *buf, socklen_t buflen)
{
switch (af) {
case AF_NETROM:
errno = 0;
return ax25_ntop1((ax25_address *)addr, buf, buflen);
default:
errno = EAFNOSUPPORT;
}
return NULL;
}
|