Class: Nl::Linux::RtNeigh
- Inherits:
-
Raw::Family
- Object
- Family
- Raw::Family
- Nl::Linux::RtNeigh
- Defined in:
- nl-linux/generated/nl/linux/rt_neigh.rb
Overview
IP neighbour management over rtnetlink.
Defined Under Namespace
Modules: AttributeSets, Enums, Flags, Messages, Notifications, Structs Classes: AsyncOperations
Constant Summary collapse
- NAME =
"rt-neigh"- PROTONUM =
0
Class Method Summary collapse
Instance Method Summary collapse
-
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
-
#do_delneigh(**args) ⇒ void
Remove an existing neighbour entry.
-
#do_getneigh(**args) ⇒ Messages::DoGetneighReply
Get or dump neighbour entries.
-
#do_newneigh(**args) ⇒ void
Add new neighbour entry.
-
#do_setneightbl(**args) ⇒ void
Set neighbour tables.
-
#dump_getneigh(**args, &block) ⇒ Object
Get or dump neighbour entries.
-
#dump_getneightbl(**args, &block) ⇒ Object
Get or dump neighbour tables.
- #subscribe(*groups) ⇒ self
- #unsubscribe(*groups) ⇒ self
Class Method Details
.open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) ⇒ RtNeigh .open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) {|family| ... } ⇒ Object
24 25 26 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 24 def self.open(executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY) super end |
Instance Method Details
#async(stream_capacity: nil) ⇒ AsyncOperations
Returns the asynchronous operation facade for this family.
1650 1651 1652 1653 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1650 def async(stream_capacity: nil) return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil? build_async_facade(AsyncOperations, stream_capacity:) end |
#do_delneigh(**args) ⇒ void
This method returns an undefined value.
Remove an existing neighbour entry
1467 1468 1469 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1467 def do_delneigh(**args) (:"do", Messages::DoDelneighRequest, nil, args) end |
#do_getneigh(**args) ⇒ Messages::DoGetneighReply
Get or dump neighbour entries
1481 1482 1483 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1481 def do_getneigh(**args) (:"do", Messages::DoGetneighRequest, Messages::DoGetneighReply, args) end |
#do_newneigh(**args) ⇒ void
This method returns an undefined value.
Add new neighbour entry
1452 1453 1454 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1452 def do_newneigh(**args) (:"do", Messages::DoNewneighRequest, nil, args) end |
#do_setneightbl(**args) ⇒ void
This method returns an undefined value.
Set neighbour tables
1544 1545 1546 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1544 def do_setneightbl(**args) (:"do", Messages::DoSetneightblRequest, nil, args) end |
#dump_getneigh(**args) ⇒ Array<Messages::DumpGetneighReply> #dump_getneigh(**args) {|reply| ... } ⇒ void
Get or dump neighbour entries
1511 1512 1513 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1511 def dump_getneigh(**args, &block) (:"dump", Messages::DumpGetneighRequest, Messages::DumpGetneighReply, args, &block) end |
#dump_getneightbl(**args) ⇒ Array<Messages::DumpGetneightblReply> #dump_getneightbl(**args) {|reply| ... } ⇒ void
Get or dump neighbour tables
1529 1530 1531 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1529 def dump_getneightbl(**args, &block) (:"dump", Messages::DumpGetneightblRequest, Messages::DumpGetneightblReply, args, &block) end |
#subscribe(*groups) ⇒ self
1657 1658 1659 1660 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1657 def subscribe(*groups) = super # @rbs (*(:rtnlgrp_neigh) groups) -> self # @param [Array<:rtnlgrp_neigh>] groups # @return [self] |
#unsubscribe(*groups) ⇒ self
1661 |
# File 'nl-linux/generated/nl/linux/rt_neigh.rb', line 1661 def unsubscribe(*groups) = super |