Class: Nl::Linux::RtRule::Notifications::NewruleNtf

Inherits:
Raw::Message
  • Object
show all
Defined in:
nl-linux/generated/nl/linux/rt_rule.rb

Overview

Notify a rule creation

Constant Summary collapse

TYPE =
32
FIXED_HEADER =
Structs::FibRuleHdr
ATTRIBUTE_SET =
AttributeSets::FibRuleAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[iifname goto priority fwmark flow tun_id suppress_ifgroup suppress_prefixlen table fwmask oifname l3mdev uid_range protocol ip_proto sport_range dport_range dscp flowlabel flowlabel_mask sport_mask dport_mask dscp_mask])

Instance Attribute Summary

Attributes included from StructuredPayload

#attributes, #fixed_header

Instance Method Summary collapse

Methods inherited from Raw::Message

#append_attribute, decode, #initialize

Methods included from StructuredPayload

#encode, #initialize

Constructor Details

This class inherits a constructor from Nl::Raw::Message

Instance Method Details

#action ⇒ Integer

Returns:

  • (Integer)


944
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 944

def action; fixed_header.action; end

#dport_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



1035
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1035

def dport_mask; attributes[:"dport_mask"]&.value; end

#dport_range ⇒ Structs::FibRulePortRange



1015
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1015

def dport_range; attributes[:"dport_range"]&.value; end

#dscp ⇒ Integer

Returns:

  • (Integer)

See Also:



1019
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1019

def dscp; attributes[:"dscp"]&.value; end

#dscp_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



1039
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1039

def dscp_mask; attributes[:"dscp_mask"]&.value; end

#dst_len ⇒ Integer

Returns:

  • (Integer)


935
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 935

def dst_len; fixed_header.dst_len; end

#family ⇒ Integer

Returns:

  • (Integer)


932
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 932

def family; fixed_header.family; end

#flags ⇒ Integer

Returns:

  • (Integer)


947
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 947

def flags; fixed_header.flags; end

#flow ⇒ Integer

Returns:

  • (Integer)

See Also:



967
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 967

def flow; attributes[:"flow"]&.value; end

#flowlabel ⇒ Integer

Returns:

  • (Integer)

See Also:



1023
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1023

def flowlabel; attributes[:"flowlabel"]&.value; end

#flowlabel_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



1027
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1027

def flowlabel_mask; attributes[:"flowlabel_mask"]&.value; end

#fwmark ⇒ Integer

Returns:

  • (Integer)

See Also:



963
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 963

def fwmark; attributes[:"fwmark"]&.value; end

#fwmask ⇒ Integer

Returns:

  • (Integer)

See Also:



987
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 987

def fwmask; attributes[:"fwmask"]&.value; end

#goto ⇒ Integer

Returns:

  • (Integer)

See Also:



955
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 955

def goto; attributes[:"goto"]&.value; end

#iifname ⇒ String

Returns:

  • (String)

See Also:



951
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 951

def iifname; attributes[:"iifname"]&.value; end

#ip_proto ⇒ Integer

Returns:

  • (Integer)

See Also:



1007
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1007

def ip_proto; attributes[:"ip_proto"]&.value; end

#l3mdev ⇒ Integer

Returns:

  • (Integer)

See Also:



995
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 995

def l3mdev; attributes[:"l3mdev"]&.value; end

#oifname ⇒ String

Returns:

  • (String)

See Also:



991
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 991

def oifname; attributes[:"oifname"]&.value; end

#priority ⇒ Integer

Returns:

  • (Integer)

See Also:



959
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 959

def priority; attributes[:"priority"]&.value; end

#protocol ⇒ Integer

Returns:

  • (Integer)

See Also:



1003
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1003

def protocol; attributes[:"protocol"]&.value; end

#sport_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



1031
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1031

def sport_mask; attributes[:"sport_mask"]&.value; end

#sport_range ⇒ Structs::FibRulePortRange



1011
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 1011

def sport_range; attributes[:"sport_range"]&.value; end

#src_len ⇒ Integer

Returns:

  • (Integer)


938
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 938

def src_len; fixed_header.src_len; end

#suppress_ifgroup ⇒ Integer

Returns:

  • (Integer)

See Also:



975
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 975

def suppress_ifgroup; attributes[:"suppress_ifgroup"]&.value; end

#suppress_prefixlen ⇒ Integer

Returns:

  • (Integer)

See Also:



979
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 979

def suppress_prefixlen; attributes[:"suppress_prefixlen"]&.value; end

#table ⇒ Integer

Returns:

  • (Integer)

See Also:



983
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 983

def table; attributes[:"table"]&.value || fixed_header.table; end

#tos ⇒ Integer

Returns:

  • (Integer)


941
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 941

def tos; fixed_header.tos; end

#tun_id ⇒ Integer

Returns:

  • (Integer)

See Also:



971
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 971

def tun_id; attributes[:"tun_id"]&.value; end

#uid_range ⇒ Structs::FibRuleUidRange



999
# File 'nl-linux/generated/nl/linux/rt_rule.rb', line 999

def uid_range; attributes[:"uid_range"]&.value; end