Class: Nl::Linux::RtRule::Messages::DoNewruleRequest

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

Overview

Add new FIB rule

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)


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

def action; fixed_header.action; end

#dport_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#dport_range ⇒ Structs::FibRulePortRange



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

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

#dscp ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#dscp_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#dst_len ⇒ Integer

Returns:

  • (Integer)


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

def dst_len; fixed_header.dst_len; end

#family ⇒ Integer

Returns:

  • (Integer)


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

def family; fixed_header.family; end

#flags ⇒ Integer

Returns:

  • (Integer)


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

def flags; fixed_header.flags; end

#flow ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flowlabel ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#flowlabel_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#fwmark ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#fwmask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#goto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#iifname ⇒ String

Returns:

  • (String)

See Also:



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

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

#ip_proto ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#l3mdev ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#oifname ⇒ String

Returns:

  • (String)

See Also:



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

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

#priority ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#protocol ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#sport_mask ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#sport_range ⇒ Structs::FibRulePortRange



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

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

#src_len ⇒ Integer

Returns:

  • (Integer)


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

def src_len; fixed_header.src_len; end

#suppress_ifgroup ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#suppress_prefixlen ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#table ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#tos ⇒ Integer

Returns:

  • (Integer)


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

def tos; fixed_header.tos; end

#tun_id ⇒ Integer

Returns:

  • (Integer)

See Also:



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

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

#uid_range ⇒ Structs::FibRuleUidRange



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

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