7f232e50af
Those are a bit tricky, as their arguments depends on socket's address family. So far, it's implemented for AF_INET, AF_AX25, AF_APPLETALK, AF_NETROM, AF_X25, AF_INET6, AF_ROSE, and AF_PACKET. * xlat/inet6_route_metrics.in: New file. * xlat/inet6_router_pref.in: Likewise. * xlat/netrom_route_types.in: Likewise. * xlat/route_flags.in: Likewise. * defs.h (route_nexthop_flags): New xlat declaration. (sock_proto): Add SOCK_PROTO_AX25, SOCK_PROTO_DDP, SOCK_PROTO_NETROM, SOCK_PROTO_PACKET, SOCK_PROTO_ROSE, SOCK_PROTO_X25. * print_fields.h (PRINT_FIELD_INET6_ADDR): New macro. * sock.c: Include <linux/ax25.h>, <linux/in_route.h>, <linux/ipv6_route.h>, <linux/netrom.h>, <linux/rose.h>, <linux/route.h>, <linux/x25.h>, "xlat/inet6_route_metrics.h", "xlat/inet6_router_pref.h", "xlat/netrom_route_types.h", "xlat/route_flags.h", "xlat/route_flags_inet6.h", "xlat/route_nexthop_flags.h", "xlat/routing_types.h". (decode_rtentry, print_digipeaters, decode_ax25_routes_struct, decode_nr_route_struct, decode_x25_route_struct, print_inet6_route_pref, decode_in6_rtmsg, decode_rose_route_struct): New function. (sock_ioctl): Handle SIOCADDRT and SIOCDELRT. * socketutils.c (protocols): Add address family information for SOCK_PROTO_AX25, SOCK_PROTO_DDP, SOCK_PROTO_NETROM, SOCK_PROTO_PACKET, SOCK_PROTO_ROSE, and SOCK_PROTO_X25. Co-Authored-by; Olga Feiermann <charmik@users.sourceforge.net> Closes: https://github.com/strace/strace/issues/41
14 lines
351 B
Plaintext
14 lines
351 B
Plaintext
RTF_DEFAULT 0x00010000
|
|
RTF_ALLONLINK 0x00020000
|
|
RTF_ADDRCONF 0x00040000
|
|
RTF_PREFIX_RT 0x00080000
|
|
RTF_ANYCAST 0x00100000
|
|
RTF_NONEXTHOP 0x00200000
|
|
RTF_EXPIRES 0x00400000
|
|
RTF_ROUTEINFO 0x00800000
|
|
RTF_CACHE 0x01000000
|
|
RTF_FLOW 0x02000000
|
|
RTF_POLICY 0x04000000
|
|
RTF_PCPU 0x40000000
|
|
RTF_LOCAL 0x80000000
|