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
11 lines
178 B
Plaintext
11 lines
178 B
Plaintext
RTF_UP 0x0001
|
|
RTF_GATEWAY 0x0002
|
|
RTF_HOST 0x0004
|
|
RTF_REINSTATE 0x0008
|
|
RTF_DYNAMIC 0x0010
|
|
RTF_MODIFIED 0x0020
|
|
RTF_MTU 0x0040
|
|
RTF_WINDOW 0x0080
|
|
RTF_IRTT 0x0100
|
|
RTF_REJECT 0x0200
|