|
PCS
0.4
|
Public Member Functions | |
| def | __init__ |
| def | __repr__ |
| def | __str__ |
| def | __setattr__ |
| def | decode |
| def | encode |
| def | bounds |
| def | __eq__ |
| def | __ne__ |
| def | default_compare |
Public Attributes | |
| packet | |
| name | |
| len | |
| flags | |
| hops | |
| ifindex | |
| tlvs | |
| width | |
Static Public Attributes | |
| tuple | default_compare = staticmethod(default_compare) |
An RTnetlink nexthop field contains information about each candidate next-hop known to the forwarding plane for a given prefix.
| def pcs.packets.rtnetlink.NexthopField.__eq__ | ( | self, | |
| other | |||
| ) |
Test two NexthopFields for equality.
References pcs.packets.igmpv3.GroupRecordField.__eq__(), pcs.packets.rtnetlink.NexthopField.__eq__(), pcs.OptionListField.__eq__(), pcs.Packet.__eq__(), and pcs.Chain.__eq__().
Referenced by pcs.packets.rtnetlink.NexthopField.__eq__().
| def pcs.packets.rtnetlink.NexthopField.__str__ | ( | self | ) |
Walk the entire field and pretty print the values of the fields.
References pcs.packets.netlink.nlmsghdr._flag_bits, pcs.packets.rtnetlink.NexthopField._flag_bits, pcs.Field.packet, pcs.packets.igmpv3.GroupRecordField.packet, pcs.StringField.packet, pcs.packets.rtnetlink.NexthopField.packet, pcs.LengthValueField.packet, pcs.TypeValueField.packet, pcs.TypeLengthValueField.packet, and pcs.OptionListField.packet.
| def pcs.packets.rtnetlink.NexthopField.bounds | ( | self, | |
| value | |||
| ) |
Check the bounds of this field.
| def pcs.packets.rtnetlink.NexthopField.default_compare | ( | lp, | |
| lf, | |||
| rp, | |||
| rf | |||
| ) |
Default comparison method.
| def pcs.packets.rtnetlink.NexthopField.encode | ( | self, | |
| bytearray, | |||
| value, | |||
| byte, | |||
| byteBR | |||
| ) |
Encode a NexthopField.
1.8.0