def nla_for_each_nested(nla, rem):
pos = nlattr(nla_data(nla))<EOL>rem.value = nla_len(nla)<EOL>while nla_ok(pos, rem):<EOL><INDENT>yield pos<EOL>pos = nla_next(pos, rem)<EOL><DEDENT>
Iterate over a stream of nested attributes.

    https://github.com/thom311/libnl/blob/libnl3_2_25/include/netlink/attr.h#L274

    Positional arguments:
    nla -- attribute containing the nested attributes (nlattr class instance).
    rem -- initialized to len, holds bytes currently remaining in stream (c_int).

    Returns:
    Generator yielding nlattr instances.