def nla_put_msecs(msg, attrtype, msecs):
if isinstance(msecs, c_uint64):<EOL><INDENT>pass<EOL><DEDENT>elif isinstance(msecs, c_ulong):<EOL><INDENT>msecs = c_uint64(msecs.value)<EOL><DEDENT>else:<EOL><INDENT>msecs = c_uint64(msecs)<EOL><DEDENT>return nla_put_u64(msg, attrtype, msecs)<EOL>
Add msecs Netlink attribute to Netlink message.

    https://github.com/thom311/libnl/blob/libnl3_2_25/lib/attr.c#L737

    Positional arguments:
    msg -- Netlink message (nl_msg class instance).
    attrtype -- attribute type (integer).
    msecs -- number of msecs (int(), c_uint64(), or c_ulong()).

    Returns:
    0 on success or a negative error code.