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.

def nla_put_msecs(msg, attrtype, msecs):
    """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.
    """
    if isinstance(msecs, c_uint64):
        pass
    elif isinstance(msecs, c_ulong):
        msecs = c_uint64(msecs.value)
    else:
        msecs = c_uint64(msecs)
    return nla_put_u64(msg, attrtype, msecs)