# include "xlat/addrfams.h"
# include "xlat/ethernet_protocols.h"
#undef XLAT_MACROS_ONLY
+#include "xlat/ax25_protocols.h"
#include "xlat/irda_protocols.h"
#include "xlat/can_protocols.h"
#include "xlat/bt_protocols.h"
printxval_search(inet_protocols, tcp->u_arg[2], "IPPROTO_???");
break;
+ case AF_AX25:
+ /* Those are not available in public headers. */
+ printxval_searchn_ex(ARRSZ_PAIR(ax25_protocols), tcp->u_arg[2],
+ "AX25_P_???", XLAT_STYLE_VERBOSE);
+ break;
+
case AF_NETLINK:
printxval(netlink_protocols, tcp->u_arg[2], "NETLINK_???");
break;
#include "xlat/getsock_ipv6_options.h"
#include "xlat/setsock_ipv6_options.h"
#include "xlat/sock_ipx_options.h"
+#include "xlat/sock_ax25_options.h"
#include "xlat/sock_netlink_options.h"
#include "xlat/sock_packet_options.h"
#include "xlat/sock_raw_options.h"
case SOL_IPX:
printxval(sock_ipx_options, name, "IPX_???");
break;
+ case SOL_AX25:
+ printxval_search(sock_ax25_options, name, "AX25_???");
+ break;
case SOL_PACKET:
printxval(sock_packet_options, name, "PACKET_???");
break;
--- /dev/null
+/* sorted */
+/* Those are pulled from include/net/ax25.h, they should be part of UAPI */
+AX25_P_ROSE 0x01
+AX25_P_VJCOMP 0x06 /* Compressed TCP/IP packet */
+ /* Van Jacobsen (RFC 1144) */
+AX25_P_VJUNCOMP 0x07 /* Uncompressed TCP/IP packet */
+ /* Van Jacobsen (RFC 1144) */
+AX25_P_SEGMENT 0x08 /* Segmentation fragment */
+AX25_P_TEXNET 0xc3 /* TEXTNET datagram protocol */
+AX25_P_LQ 0xc4 /* Link Quality Protocol */
+AX25_P_ATALK 0xca /* Appletalk */
+AX25_P_ATALK_ARP 0xcb /* Appletalk ARP */
+AX25_P_IP 0xcc /* ARPA Internet Protocol */
+AX25_P_ARP 0xcd /* ARPA Address Resolution */
+AX25_P_FLEXNET 0xce /* FlexNet */
+AX25_P_NETROM 0xcf /* NET/ROM */
+AX25_P_TEXT 0xf0 /* No layer 3 protocol impl. */