Lines Matching +full:array +full:- +full:nest
1 # SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
84 return f"Netlink error: {os.strerror(-self.nl_msg.error)}\n{self.nl_msg}"
111 return format.big if byte_order == "big-endian" \
134 return self.raw.decode('ascii')[:-1]
147 # TODO: handle non-scalar members
216 self.extack['miss-type'] = extack.as_scalar('u32')
218 self.extack['miss-nest'] = extack.as_scalar('u32')
220 self.extack['bad-attr-offs'] = extack.as_scalar('u32')
228 if 'miss-type' in self.extack and 'miss-nest' not in self.extack:
229 miss_type = self.extack['miss-type']
235 self.extack['miss-type'] = desc
414 if self.proto == "netlink-raw":
451 if attr["type"] == 'nest':
455 attr_payload += self._add_attr(attr['nested-attributes'], subname, subvalue)
473 pad = b'\x00' * ((4 - len(attr_payload) % 4) % 4)
478 if 'enum-as-flags' in attr_spec and attr_spec['enum-as-flags']:
512 subattrs = self._decode(NlAttrs(item.raw), attr_spec['nested-attributes'])
524 if attr_spec["type"] == 'nest':
525 subdict = self._decode(NlAttrs(attr.raw), attr_spec['nested-attributes'])
535 elif attr_spec["type"] == 'array-nest':
566 if attr_spec['type'] != 'nest':
570 self.attr_sets[attr_spec['nested-attributes']],
579 if 'bad-attr-offs' not in extack:
585 extack['bad-attr-offs'])
587 del extack['bad-attr-offs']
588 extack['bad-attr'] = path
637 print("Netlink error in ntf!?", os.strerror(-nl_msg.error))