JingPiao Chen's GSoC status report - #9 of 13

JingPiao Chen chenjingpiao at gmail.com
Tue Aug 1 10:30:03 UTC 2017


Hello, strace community!

Project: Netlink socket parsers.

Accoplisment:
* separated files like NETLINK_SOCK_DIAG decode.
* prepare for NETLINK_ROUTE netlink attributes decode. Take notes like this:

static const nla_decoder_t fib_rule_hdr_nla_decoders[] = {
	[FRA_DST]			= NULL, /* decode_fra_addr, protocol specific */
	[FRA_SRC]			= NULL, /* decode_fra_addr */
	[FRA_IIFNAME]			= decode_nla_str,
	[FRA_GOTO]			= decode_nla_u32,
	[FRA_PRIORITY]			= decode_nla_u32,
	[FRA_FWMARK]			= decode_nla_u32,
	[FRA_FLOW]			= decode_nla_u32,
	[FRA_TUN_ID]			= NULL, /* decode_nla_be64, */
	[FRA_SUPPRESS_IFGROUP]		= decode_nla_u32,
	[FRA_SUPPRESS_PREFIXLEN]	= decode_nla_u32,
	[FRA_TABLE]			= decode_nla_u32,
	[FRA_FWMASK]			= decode_nla_u32,
	[FRA_OIFNAME]			= decode_nla_str,
	[FRA_PAD]			= NULL,
	[FRA_L3MDEV]			= decode_nla_u8,
	[FRA_UID_RANGE]			= NULL /* decode_fib_rule_uid_range */
};

Next week, I will fix NETLINK_ROUTE header messages decode until they can merge,
and implement NETLINK_ROUTE netlink attributes decode.

--
JingPiao Chen




More information about the Strace-devel mailing list