nl-linux 0.2.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rspec +3 -0
- data/CHANGELOG.md +2 -0
- data/Rakefile +13 -3
- data/generated/nl/linux/binder.rb +80 -0
- data/generated/nl/linux/conntrack.rb +39 -2
- data/generated/nl/linux/dev_energymodel.rb +106 -0
- data/generated/nl/linux/devlink.rb +751 -0
- data/generated/nl/linux/dpll.rb +712 -55
- data/generated/nl/linux/drm_ras.rb +87 -0
- data/generated/nl/linux/ethtool.rb +1569 -259
- data/generated/nl/linux/fou.rb +82 -13
- data/generated/nl/linux/handshake.rb +92 -0
- data/generated/nl/linux/lockd.rb +50 -0
- data/generated/nl/linux/mptcp_pm.rb +159 -0
- data/generated/nl/linux/net_shaper.rb +123 -0
- data/generated/nl/linux/netdev.rb +374 -0
- data/generated/nl/linux/nfsd.rb +316 -6
- data/generated/nl/linux/nftables.rb +414 -25
- data/generated/nl/linux/nl80211.rb +81 -22
- data/generated/nl/linux/nlctrl.rb +59 -8
- data/generated/nl/linux/ovpn.rb +180 -0
- data/generated/nl/linux/ovs_datapath.rb +55 -6
- data/generated/nl/linux/ovs_flow.rb +63 -20
- data/generated/nl/linux/ovs_packet.rb +115 -4
- data/generated/nl/linux/ovs_vport.rb +55 -6
- data/generated/nl/linux/psp.rb +257 -0
- data/generated/nl/linux/rt_addr.rb +69 -14
- data/generated/nl/linux/rt_link.rb +381 -47
- data/generated/nl/linux/rt_neigh.rb +227 -16
- data/generated/nl/linux/rt_route.rb +92 -49
- data/generated/nl/linux/rt_rule.rb +300 -11
- data/generated/nl/linux/sunrpc_cache.rb +130 -0
- data/generated/nl/linux/tc.rb +161 -52
- data/generated/nl/linux/tcp_metrics.rb +69 -12
- data/generated/nl/linux/team.rb +80 -0
- data/generated/nl/linux/wireguard.rb +99 -7
- data/lib/nl/linux/version.rb +1 -1
- metadata +11 -9
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
|
|
2
|
+
#
|
|
3
|
+
# This file is based on Documentation/netlink/specs/rt-route.yaml from Linux v7.2.
|
|
2
4
|
#--
|
|
3
5
|
# frozen_string_literal: true
|
|
4
6
|
# rbs_inline: enabled
|
|
@@ -9,6 +11,7 @@ module Nl; module Linux
|
|
|
9
11
|
class RtRoute < ::Nl::Family
|
|
10
12
|
NAME = "rt-route"
|
|
11
13
|
PROTOCOL = Ractor.make_shareable(::Nl::Protocols::Raw.new("rt-route", 0))
|
|
14
|
+
MCAST_GROUPS = Ractor.make_shareable({}) #: Hash[::Symbol, ::Nl::McastGroup]
|
|
12
15
|
module Structs
|
|
13
16
|
Rtmsg = Struct.new(
|
|
14
17
|
:"rtm_family", #: ::Integer
|
|
@@ -394,11 +397,11 @@ class RtRoute < ::Nl::Family
|
|
|
394
397
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
395
398
|
# Gets the value of `dst` attribute in the message.
|
|
396
399
|
#--
|
|
397
|
-
# @rbs return:
|
|
400
|
+
# @rbs return: ::String
|
|
398
401
|
def dst; attributes[:"dst"]&.value; end
|
|
399
402
|
# Gets the value of `src` attribute in the message.
|
|
400
403
|
#--
|
|
401
|
-
# @rbs return:
|
|
404
|
+
# @rbs return: ::String
|
|
402
405
|
def src; attributes[:"src"]&.value; end
|
|
403
406
|
# Gets the value of `iif` attribute in the message.
|
|
404
407
|
#--
|
|
@@ -477,11 +480,11 @@ class RtRoute < ::Nl::Family
|
|
|
477
480
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
478
481
|
# Gets the value of `dst` attribute in the message.
|
|
479
482
|
#--
|
|
480
|
-
# @rbs return:
|
|
483
|
+
# @rbs return: ::String
|
|
481
484
|
def dst; attributes[:"dst"]&.value; end
|
|
482
485
|
# Gets the value of `src` attribute in the message.
|
|
483
486
|
#--
|
|
484
|
-
# @rbs return:
|
|
487
|
+
# @rbs return: ::String
|
|
485
488
|
def src; attributes[:"src"]&.value; end
|
|
486
489
|
# Gets the value of `iif` attribute in the message.
|
|
487
490
|
#--
|
|
@@ -493,7 +496,7 @@ class RtRoute < ::Nl::Family
|
|
|
493
496
|
def oif; attributes[:"oif"]&.value; end
|
|
494
497
|
# Gets the value of `gateway` attribute in the message.
|
|
495
498
|
#--
|
|
496
|
-
# @rbs return:
|
|
499
|
+
# @rbs return: ::String
|
|
497
500
|
def gateway; attributes[:"gateway"]&.value; end
|
|
498
501
|
# Gets the value of `priority` attribute in the message.
|
|
499
502
|
#--
|
|
@@ -501,7 +504,7 @@ class RtRoute < ::Nl::Family
|
|
|
501
504
|
def priority; attributes[:"priority"]&.value; end
|
|
502
505
|
# Gets the value of `prefsrc` attribute in the message.
|
|
503
506
|
#--
|
|
504
|
-
# @rbs return:
|
|
507
|
+
# @rbs return: ::String
|
|
505
508
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
506
509
|
# Gets the value of `metrics` attribute in the message.
|
|
507
510
|
#--
|
|
@@ -509,7 +512,7 @@ class RtRoute < ::Nl::Family
|
|
|
509
512
|
def metrics; attributes[:"metrics"]&.value; end
|
|
510
513
|
# Gets the value of `multipath` attribute in the message.
|
|
511
514
|
#--
|
|
512
|
-
# @rbs return:
|
|
515
|
+
# @rbs return: ::String
|
|
513
516
|
def multipath; attributes[:"multipath"]&.value; end
|
|
514
517
|
# Gets the value of `flow` attribute in the message.
|
|
515
518
|
#--
|
|
@@ -517,7 +520,7 @@ class RtRoute < ::Nl::Family
|
|
|
517
520
|
def flow; attributes[:"flow"]&.value; end
|
|
518
521
|
# Gets the value of `cacheinfo` attribute in the message.
|
|
519
522
|
#--
|
|
520
|
-
# @rbs return:
|
|
523
|
+
# @rbs return: ::String
|
|
521
524
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
522
525
|
# Gets the value of `table` attribute in the message.
|
|
523
526
|
#--
|
|
@@ -529,15 +532,15 @@ class RtRoute < ::Nl::Family
|
|
|
529
532
|
def mark; attributes[:"mark"]&.value; end
|
|
530
533
|
# Gets the value of `mfc-stats` attribute in the message.
|
|
531
534
|
#--
|
|
532
|
-
# @rbs return:
|
|
535
|
+
# @rbs return: ::String
|
|
533
536
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
534
537
|
# Gets the value of `via` attribute in the message.
|
|
535
538
|
#--
|
|
536
|
-
# @rbs return:
|
|
539
|
+
# @rbs return: ::String
|
|
537
540
|
def via; attributes[:"via"]&.value; end
|
|
538
541
|
# Gets the value of `newdst` attribute in the message.
|
|
539
542
|
#--
|
|
540
|
-
# @rbs return:
|
|
543
|
+
# @rbs return: ::String
|
|
541
544
|
def newdst; attributes[:"newdst"]&.value; end
|
|
542
545
|
# Gets the value of `pref` attribute in the message.
|
|
543
546
|
#--
|
|
@@ -549,7 +552,7 @@ class RtRoute < ::Nl::Family
|
|
|
549
552
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
550
553
|
# Gets the value of `encap` attribute in the message.
|
|
551
554
|
#--
|
|
552
|
-
# @rbs return:
|
|
555
|
+
# @rbs return: ::String
|
|
553
556
|
def encap; attributes[:"encap"]&.value; end
|
|
554
557
|
# Gets the value of `expires` attribute in the message.
|
|
555
558
|
#--
|
|
@@ -557,7 +560,7 @@ class RtRoute < ::Nl::Family
|
|
|
557
560
|
def expires; attributes[:"expires"]&.value; end
|
|
558
561
|
# Gets the value of `pad` attribute in the message.
|
|
559
562
|
#--
|
|
560
|
-
# @rbs return:
|
|
563
|
+
# @rbs return: ::String
|
|
561
564
|
def pad; attributes[:"pad"]&.value; end
|
|
562
565
|
# Gets the value of `uid` attribute in the message.
|
|
563
566
|
#--
|
|
@@ -675,11 +678,11 @@ class RtRoute < ::Nl::Family
|
|
|
675
678
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
676
679
|
# Gets the value of `dst` attribute in the message.
|
|
677
680
|
#--
|
|
678
|
-
# @rbs return:
|
|
681
|
+
# @rbs return: ::String
|
|
679
682
|
def dst; attributes[:"dst"]&.value; end
|
|
680
683
|
# Gets the value of `src` attribute in the message.
|
|
681
684
|
#--
|
|
682
|
-
# @rbs return:
|
|
685
|
+
# @rbs return: ::String
|
|
683
686
|
def src; attributes[:"src"]&.value; end
|
|
684
687
|
# Gets the value of `iif` attribute in the message.
|
|
685
688
|
#--
|
|
@@ -691,7 +694,7 @@ class RtRoute < ::Nl::Family
|
|
|
691
694
|
def oif; attributes[:"oif"]&.value; end
|
|
692
695
|
# Gets the value of `gateway` attribute in the message.
|
|
693
696
|
#--
|
|
694
|
-
# @rbs return:
|
|
697
|
+
# @rbs return: ::String
|
|
695
698
|
def gateway; attributes[:"gateway"]&.value; end
|
|
696
699
|
# Gets the value of `priority` attribute in the message.
|
|
697
700
|
#--
|
|
@@ -699,7 +702,7 @@ class RtRoute < ::Nl::Family
|
|
|
699
702
|
def priority; attributes[:"priority"]&.value; end
|
|
700
703
|
# Gets the value of `prefsrc` attribute in the message.
|
|
701
704
|
#--
|
|
702
|
-
# @rbs return:
|
|
705
|
+
# @rbs return: ::String
|
|
703
706
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
704
707
|
# Gets the value of `metrics` attribute in the message.
|
|
705
708
|
#--
|
|
@@ -707,7 +710,7 @@ class RtRoute < ::Nl::Family
|
|
|
707
710
|
def metrics; attributes[:"metrics"]&.value; end
|
|
708
711
|
# Gets the value of `multipath` attribute in the message.
|
|
709
712
|
#--
|
|
710
|
-
# @rbs return:
|
|
713
|
+
# @rbs return: ::String
|
|
711
714
|
def multipath; attributes[:"multipath"]&.value; end
|
|
712
715
|
# Gets the value of `flow` attribute in the message.
|
|
713
716
|
#--
|
|
@@ -715,7 +718,7 @@ class RtRoute < ::Nl::Family
|
|
|
715
718
|
def flow; attributes[:"flow"]&.value; end
|
|
716
719
|
# Gets the value of `cacheinfo` attribute in the message.
|
|
717
720
|
#--
|
|
718
|
-
# @rbs return:
|
|
721
|
+
# @rbs return: ::String
|
|
719
722
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
720
723
|
# Gets the value of `table` attribute in the message.
|
|
721
724
|
#--
|
|
@@ -727,15 +730,15 @@ class RtRoute < ::Nl::Family
|
|
|
727
730
|
def mark; attributes[:"mark"]&.value; end
|
|
728
731
|
# Gets the value of `mfc-stats` attribute in the message.
|
|
729
732
|
#--
|
|
730
|
-
# @rbs return:
|
|
733
|
+
# @rbs return: ::String
|
|
731
734
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
732
735
|
# Gets the value of `via` attribute in the message.
|
|
733
736
|
#--
|
|
734
|
-
# @rbs return:
|
|
737
|
+
# @rbs return: ::String
|
|
735
738
|
def via; attributes[:"via"]&.value; end
|
|
736
739
|
# Gets the value of `newdst` attribute in the message.
|
|
737
740
|
#--
|
|
738
|
-
# @rbs return:
|
|
741
|
+
# @rbs return: ::String
|
|
739
742
|
def newdst; attributes[:"newdst"]&.value; end
|
|
740
743
|
# Gets the value of `pref` attribute in the message.
|
|
741
744
|
#--
|
|
@@ -747,7 +750,7 @@ class RtRoute < ::Nl::Family
|
|
|
747
750
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
748
751
|
# Gets the value of `encap` attribute in the message.
|
|
749
752
|
#--
|
|
750
|
-
# @rbs return:
|
|
753
|
+
# @rbs return: ::String
|
|
751
754
|
def encap; attributes[:"encap"]&.value; end
|
|
752
755
|
# Gets the value of `expires` attribute in the message.
|
|
753
756
|
#--
|
|
@@ -755,7 +758,7 @@ class RtRoute < ::Nl::Family
|
|
|
755
758
|
def expires; attributes[:"expires"]&.value; end
|
|
756
759
|
# Gets the value of `pad` attribute in the message.
|
|
757
760
|
#--
|
|
758
|
-
# @rbs return:
|
|
761
|
+
# @rbs return: ::String
|
|
759
762
|
def pad; attributes[:"pad"]&.value; end
|
|
760
763
|
# Gets the value of `uid` attribute in the message.
|
|
761
764
|
#--
|
|
@@ -830,11 +833,11 @@ class RtRoute < ::Nl::Family
|
|
|
830
833
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
831
834
|
# Gets the value of `dst` attribute in the message.
|
|
832
835
|
#--
|
|
833
|
-
# @rbs return:
|
|
836
|
+
# @rbs return: ::String
|
|
834
837
|
def dst; attributes[:"dst"]&.value; end
|
|
835
838
|
# Gets the value of `src` attribute in the message.
|
|
836
839
|
#--
|
|
837
|
-
# @rbs return:
|
|
840
|
+
# @rbs return: ::String
|
|
838
841
|
def src; attributes[:"src"]&.value; end
|
|
839
842
|
# Gets the value of `iif` attribute in the message.
|
|
840
843
|
#--
|
|
@@ -846,7 +849,7 @@ class RtRoute < ::Nl::Family
|
|
|
846
849
|
def oif; attributes[:"oif"]&.value; end
|
|
847
850
|
# Gets the value of `gateway` attribute in the message.
|
|
848
851
|
#--
|
|
849
|
-
# @rbs return:
|
|
852
|
+
# @rbs return: ::String
|
|
850
853
|
def gateway; attributes[:"gateway"]&.value; end
|
|
851
854
|
# Gets the value of `priority` attribute in the message.
|
|
852
855
|
#--
|
|
@@ -854,7 +857,7 @@ class RtRoute < ::Nl::Family
|
|
|
854
857
|
def priority; attributes[:"priority"]&.value; end
|
|
855
858
|
# Gets the value of `prefsrc` attribute in the message.
|
|
856
859
|
#--
|
|
857
|
-
# @rbs return:
|
|
860
|
+
# @rbs return: ::String
|
|
858
861
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
859
862
|
# Gets the value of `metrics` attribute in the message.
|
|
860
863
|
#--
|
|
@@ -862,7 +865,7 @@ class RtRoute < ::Nl::Family
|
|
|
862
865
|
def metrics; attributes[:"metrics"]&.value; end
|
|
863
866
|
# Gets the value of `multipath` attribute in the message.
|
|
864
867
|
#--
|
|
865
|
-
# @rbs return:
|
|
868
|
+
# @rbs return: ::String
|
|
866
869
|
def multipath; attributes[:"multipath"]&.value; end
|
|
867
870
|
# Gets the value of `flow` attribute in the message.
|
|
868
871
|
#--
|
|
@@ -870,7 +873,7 @@ class RtRoute < ::Nl::Family
|
|
|
870
873
|
def flow; attributes[:"flow"]&.value; end
|
|
871
874
|
# Gets the value of `cacheinfo` attribute in the message.
|
|
872
875
|
#--
|
|
873
|
-
# @rbs return:
|
|
876
|
+
# @rbs return: ::String
|
|
874
877
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
875
878
|
# Gets the value of `table` attribute in the message.
|
|
876
879
|
#--
|
|
@@ -882,15 +885,15 @@ class RtRoute < ::Nl::Family
|
|
|
882
885
|
def mark; attributes[:"mark"]&.value; end
|
|
883
886
|
# Gets the value of `mfc-stats` attribute in the message.
|
|
884
887
|
#--
|
|
885
|
-
# @rbs return:
|
|
888
|
+
# @rbs return: ::String
|
|
886
889
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
887
890
|
# Gets the value of `via` attribute in the message.
|
|
888
891
|
#--
|
|
889
|
-
# @rbs return:
|
|
892
|
+
# @rbs return: ::String
|
|
890
893
|
def via; attributes[:"via"]&.value; end
|
|
891
894
|
# Gets the value of `newdst` attribute in the message.
|
|
892
895
|
#--
|
|
893
|
-
# @rbs return:
|
|
896
|
+
# @rbs return: ::String
|
|
894
897
|
def newdst; attributes[:"newdst"]&.value; end
|
|
895
898
|
# Gets the value of `pref` attribute in the message.
|
|
896
899
|
#--
|
|
@@ -902,7 +905,7 @@ class RtRoute < ::Nl::Family
|
|
|
902
905
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
903
906
|
# Gets the value of `encap` attribute in the message.
|
|
904
907
|
#--
|
|
905
|
-
# @rbs return:
|
|
908
|
+
# @rbs return: ::String
|
|
906
909
|
def encap; attributes[:"encap"]&.value; end
|
|
907
910
|
# Gets the value of `expires` attribute in the message.
|
|
908
911
|
#--
|
|
@@ -910,7 +913,7 @@ class RtRoute < ::Nl::Family
|
|
|
910
913
|
def expires; attributes[:"expires"]&.value; end
|
|
911
914
|
# Gets the value of `pad` attribute in the message.
|
|
912
915
|
#--
|
|
913
|
-
# @rbs return:
|
|
916
|
+
# @rbs return: ::String
|
|
914
917
|
def pad; attributes[:"pad"]&.value; end
|
|
915
918
|
# Gets the value of `uid` attribute in the message.
|
|
916
919
|
#--
|
|
@@ -985,11 +988,11 @@ class RtRoute < ::Nl::Family
|
|
|
985
988
|
def rtm_flags; fixed_header.rtm_flags; end
|
|
986
989
|
# Gets the value of `dst` attribute in the message.
|
|
987
990
|
#--
|
|
988
|
-
# @rbs return:
|
|
991
|
+
# @rbs return: ::String
|
|
989
992
|
def dst; attributes[:"dst"]&.value; end
|
|
990
993
|
# Gets the value of `src` attribute in the message.
|
|
991
994
|
#--
|
|
992
|
-
# @rbs return:
|
|
995
|
+
# @rbs return: ::String
|
|
993
996
|
def src; attributes[:"src"]&.value; end
|
|
994
997
|
# Gets the value of `iif` attribute in the message.
|
|
995
998
|
#--
|
|
@@ -1001,7 +1004,7 @@ class RtRoute < ::Nl::Family
|
|
|
1001
1004
|
def oif; attributes[:"oif"]&.value; end
|
|
1002
1005
|
# Gets the value of `gateway` attribute in the message.
|
|
1003
1006
|
#--
|
|
1004
|
-
# @rbs return:
|
|
1007
|
+
# @rbs return: ::String
|
|
1005
1008
|
def gateway; attributes[:"gateway"]&.value; end
|
|
1006
1009
|
# Gets the value of `priority` attribute in the message.
|
|
1007
1010
|
#--
|
|
@@ -1009,7 +1012,7 @@ class RtRoute < ::Nl::Family
|
|
|
1009
1012
|
def priority; attributes[:"priority"]&.value; end
|
|
1010
1013
|
# Gets the value of `prefsrc` attribute in the message.
|
|
1011
1014
|
#--
|
|
1012
|
-
# @rbs return:
|
|
1015
|
+
# @rbs return: ::String
|
|
1013
1016
|
def prefsrc; attributes[:"prefsrc"]&.value; end
|
|
1014
1017
|
# Gets the value of `metrics` attribute in the message.
|
|
1015
1018
|
#--
|
|
@@ -1017,7 +1020,7 @@ class RtRoute < ::Nl::Family
|
|
|
1017
1020
|
def metrics; attributes[:"metrics"]&.value; end
|
|
1018
1021
|
# Gets the value of `multipath` attribute in the message.
|
|
1019
1022
|
#--
|
|
1020
|
-
# @rbs return:
|
|
1023
|
+
# @rbs return: ::String
|
|
1021
1024
|
def multipath; attributes[:"multipath"]&.value; end
|
|
1022
1025
|
# Gets the value of `flow` attribute in the message.
|
|
1023
1026
|
#--
|
|
@@ -1025,7 +1028,7 @@ class RtRoute < ::Nl::Family
|
|
|
1025
1028
|
def flow; attributes[:"flow"]&.value; end
|
|
1026
1029
|
# Gets the value of `cacheinfo` attribute in the message.
|
|
1027
1030
|
#--
|
|
1028
|
-
# @rbs return:
|
|
1031
|
+
# @rbs return: ::String
|
|
1029
1032
|
def cacheinfo; attributes[:"cacheinfo"]&.value; end
|
|
1030
1033
|
# Gets the value of `table` attribute in the message.
|
|
1031
1034
|
#--
|
|
@@ -1037,15 +1040,15 @@ class RtRoute < ::Nl::Family
|
|
|
1037
1040
|
def mark; attributes[:"mark"]&.value; end
|
|
1038
1041
|
# Gets the value of `mfc-stats` attribute in the message.
|
|
1039
1042
|
#--
|
|
1040
|
-
# @rbs return:
|
|
1043
|
+
# @rbs return: ::String
|
|
1041
1044
|
def mfc_stats; attributes[:"mfc_stats"]&.value; end
|
|
1042
1045
|
# Gets the value of `via` attribute in the message.
|
|
1043
1046
|
#--
|
|
1044
|
-
# @rbs return:
|
|
1047
|
+
# @rbs return: ::String
|
|
1045
1048
|
def via; attributes[:"via"]&.value; end
|
|
1046
1049
|
# Gets the value of `newdst` attribute in the message.
|
|
1047
1050
|
#--
|
|
1048
|
-
# @rbs return:
|
|
1051
|
+
# @rbs return: ::String
|
|
1049
1052
|
def newdst; attributes[:"newdst"]&.value; end
|
|
1050
1053
|
# Gets the value of `pref` attribute in the message.
|
|
1051
1054
|
#--
|
|
@@ -1057,7 +1060,7 @@ class RtRoute < ::Nl::Family
|
|
|
1057
1060
|
def encap_type; attributes[:"encap_type"]&.value; end
|
|
1058
1061
|
# Gets the value of `encap` attribute in the message.
|
|
1059
1062
|
#--
|
|
1060
|
-
# @rbs return:
|
|
1063
|
+
# @rbs return: ::String
|
|
1061
1064
|
def encap; attributes[:"encap"]&.value; end
|
|
1062
1065
|
# Gets the value of `expires` attribute in the message.
|
|
1063
1066
|
#--
|
|
@@ -1065,7 +1068,7 @@ class RtRoute < ::Nl::Family
|
|
|
1065
1068
|
def expires; attributes[:"expires"]&.value; end
|
|
1066
1069
|
# Gets the value of `pad` attribute in the message.
|
|
1067
1070
|
#--
|
|
1068
|
-
# @rbs return:
|
|
1071
|
+
# @rbs return: ::String
|
|
1069
1072
|
def pad; attributes[:"pad"]&.value; end
|
|
1070
1073
|
# Gets the value of `uid` attribute in the message.
|
|
1071
1074
|
#--
|
|
@@ -1097,9 +1100,12 @@ class RtRoute < ::Nl::Family
|
|
|
1097
1100
|
def flowlabel; attributes[:"flowlabel"]&.value; end
|
|
1098
1101
|
end
|
|
1099
1102
|
end
|
|
1103
|
+
module Notifications
|
|
1104
|
+
end
|
|
1105
|
+
NOTIFICATIONS = Ractor.make_shareable({}) #: Hash[::Integer, ::Class]
|
|
1100
1106
|
# Dump route information.
|
|
1101
1107
|
#--
|
|
1102
|
-
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst:
|
|
1108
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?mark: ::Integer, ?uid: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?flowlabel: ::Integer) -> Messages::DoGetrouteReply
|
|
1103
1109
|
def do_getroute(**args)
|
|
1104
1110
|
exchange_message(:"do", Messages::DoGetrouteRequest, Messages::DoGetrouteReply, args)
|
|
1105
1111
|
end
|
|
@@ -1112,15 +1118,52 @@ class RtRoute < ::Nl::Family
|
|
|
1112
1118
|
end
|
|
1113
1119
|
# Create a new route
|
|
1114
1120
|
#--
|
|
1115
|
-
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst:
|
|
1121
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: AttributeSets::Metrics, ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: ::String, ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> void
|
|
1116
1122
|
def do_newroute(**args)
|
|
1117
1123
|
exchange_message(:"do", Messages::DoNewrouteRequest, nil, args)
|
|
1118
1124
|
end
|
|
1119
1125
|
# Delete an existing route
|
|
1120
1126
|
#--
|
|
1121
|
-
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst:
|
|
1127
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: AttributeSets::Metrics, ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: ::String, ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> void
|
|
1122
1128
|
def do_delroute(**args)
|
|
1123
1129
|
exchange_message(:"do", Messages::DoDelrouteRequest, nil, args)
|
|
1124
1130
|
end
|
|
1131
|
+
class AsyncOperations
|
|
1132
|
+
# :nodoc:
|
|
1133
|
+
def initialize(&exchange)
|
|
1134
|
+
@exchange = exchange
|
|
1135
|
+
end
|
|
1136
|
+
# Dump route information.
|
|
1137
|
+
#--
|
|
1138
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?mark: ::Integer, ?uid: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[Messages::DoGetrouteReply]
|
|
1139
|
+
def do_getroute(**args)
|
|
1140
|
+
@exchange.call(:"do", Messages::DoGetrouteRequest, Messages::DoGetrouteReply, args)
|
|
1141
|
+
end
|
|
1142
|
+
# Dump route information.
|
|
1143
|
+
#--
|
|
1144
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer) -> ::Nl::Async::Stream[Messages::DumpGetrouteReply]
|
|
1145
|
+
def dump_getroute(**args)
|
|
1146
|
+
@exchange.call(:"dump", Messages::DumpGetrouteRequest, Messages::DumpGetrouteReply, args)
|
|
1147
|
+
end
|
|
1148
|
+
# Create a new route
|
|
1149
|
+
#--
|
|
1150
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: AttributeSets::Metrics, ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: ::String, ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[void]
|
|
1151
|
+
def do_newroute(**args)
|
|
1152
|
+
@exchange.call(:"do", Messages::DoNewrouteRequest, nil, args)
|
|
1153
|
+
end
|
|
1154
|
+
# Delete an existing route
|
|
1155
|
+
#--
|
|
1156
|
+
# @rbs (?rtm_family: ::Integer, ?rtm_dst_len: ::Integer, ?rtm_src_len: ::Integer, ?rtm_tos: ::Integer, ?rtm_table: ::Integer, ?rtm_protocol: ::Integer, ?rtm_scope: ::Integer, ?rtm_type: ::Integer, ?rtm_flags: ::Integer, ?dst: ::String, ?src: ::String, ?iif: ::Integer, ?oif: ::Integer, ?gateway: ::String, ?priority: ::Integer, ?prefsrc: ::String, ?metrics: AttributeSets::Metrics, ?multipath: ::String, ?flow: ::Integer, ?cacheinfo: ::String, ?table: ::Integer, ?mark: ::Integer, ?mfc_stats: ::String, ?via: ::String, ?newdst: ::String, ?pref: ::Integer, ?encap_type: ::Integer, ?encap: ::String, ?expires: ::Integer, ?pad: ::String, ?uid: ::Integer, ?ttl_propagate: ::Integer, ?ip_proto: ::Integer, ?sport: ::Integer, ?dport: ::Integer, ?nh_id: ::Integer, ?flowlabel: ::Integer) -> ::Nl::Async::Future[void]
|
|
1157
|
+
def do_delroute(**args)
|
|
1158
|
+
@exchange.call(:"do", Messages::DoDelrouteRequest, nil, args)
|
|
1159
|
+
end
|
|
1160
|
+
end
|
|
1161
|
+
# Returns the asynchronous operation facade for this family.
|
|
1162
|
+
#--
|
|
1163
|
+
# @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
|
|
1164
|
+
def async(stream_capacity: nil)
|
|
1165
|
+
return @async_operations ||= build_async_facade(AsyncOperations) if stream_capacity.nil?
|
|
1166
|
+
build_async_facade(AsyncOperations, stream_capacity:)
|
|
1167
|
+
end
|
|
1125
1168
|
end
|
|
1126
1169
|
end; end
|