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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to