Class: Nl::Linux::RtRoute::Messages::DoNewrouteRequest

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

Overview

Create a new route

Constant Summary collapse

TYPE =
24
FIXED_HEADER =
Structs::Rtmsg
ATTRIBUTE_SET =
AttributeSets::RouteAttrs
ATTRIBUTES =
Ractor.make_shareable(%i[dst src iif oif gateway priority prefsrc metrics multipath flow cacheinfo table mark mfc_stats via newdst pref encap_type encap expires pad uid ttl_propagate ip_proto sport dport nh_id flowlabel])

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

#cacheinfo ⇒ Structs::RtaCacheinfo



1234
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1234

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

#dport ⇒ Integer

Returns:

  • (Integer)

See Also:



1294
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1294

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

#dst ⇒ String

Returns:

  • (String)

See Also:



1194
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1194

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

#encap ⇒ String

Returns:

  • (String)

See Also:



1266
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1266

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

#encap_type ⇒ Integer

Returns:

  • (Integer)

See Also:



1262
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1262

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

#expires ⇒ Integer

Returns:

  • (Integer)

See Also:



1270
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1270

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

#flow ⇒ Integer

Returns:

  • (Integer)

See Also:



1230
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1230

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

#flowlabel ⇒ Integer

Returns:

  • (Integer)

See Also:



1302
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1302

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

#gateway ⇒ String

Returns:

  • (String)

See Also:



1210
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1210

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

#iif ⇒ Integer

Returns:

  • (Integer)

See Also:



1202
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1202

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

#ip_proto ⇒ Integer

Returns:

  • (Integer)

See Also:



1286
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1286

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

#mark ⇒ Integer

Returns:

  • (Integer)

See Also:



1242
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1242

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

#metrics ⇒ AttributeSets::Metrics



1222
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1222

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

#mfc_stats ⇒ String

Returns:

  • (String)

See Also:



1246
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1246

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

#multipath ⇒ String

Returns:

  • (String)

See Also:



1226
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1226

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

#newdst ⇒ String

Returns:

  • (String)

See Also:



1254
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1254

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

#nh_id ⇒ Integer

Returns:

  • (Integer)

See Also:



1298
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1298

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

#oif ⇒ Integer

Returns:

  • (Integer)

See Also:



1206
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1206

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

#pad ⇒ String

Returns:

  • (String)

See Also:



1274
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1274

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

#pref ⇒ Integer

Returns:

  • (Integer)

See Also:



1258
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1258

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

#prefsrc ⇒ String

Returns:

  • (String)

See Also:



1218
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1218

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

#priority ⇒ Integer

Returns:

  • (Integer)

See Also:



1214
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1214

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

#rtm_dst_len ⇒ Integer

Returns:

  • (Integer)


1169
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1169

def rtm_dst_len; fixed_header.rtm_dst_len; end

#rtm_family ⇒ Integer

Returns:

  • (Integer)


1166
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1166

def rtm_family; fixed_header.rtm_family; end

#rtm_flags ⇒ Integer

Returns:

  • (Integer)


1190
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1190

def rtm_flags; fixed_header.rtm_flags; end

#rtm_protocol ⇒ Integer

Returns:

  • (Integer)


1181
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1181

def rtm_protocol; fixed_header.rtm_protocol; end

#rtm_scope ⇒ Integer

Returns:

  • (Integer)


1184
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1184

def rtm_scope; fixed_header.rtm_scope; end

#rtm_src_len ⇒ Integer

Returns:

  • (Integer)


1172
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1172

def rtm_src_len; fixed_header.rtm_src_len; end

#rtm_table ⇒ Integer

Returns:

  • (Integer)


1178
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1178

def rtm_table; fixed_header.rtm_table; end

#rtm_tos ⇒ Integer

Returns:

  • (Integer)


1175
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1175

def rtm_tos; fixed_header.rtm_tos; end

#rtm_type ⇒ Integer

Returns:

  • (Integer)


1187
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1187

def rtm_type; fixed_header.rtm_type; end

#sport ⇒ Integer

Returns:

  • (Integer)

See Also:



1290
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1290

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

#src ⇒ String

Returns:

  • (String)

See Also:



1198
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1198

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

#table ⇒ Integer

Returns:

  • (Integer)

See Also:



1238
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1238

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

#ttl_propagate ⇒ Integer

Returns:

  • (Integer)

See Also:



1282
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1282

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

#uid ⇒ Integer

Returns:

  • (Integer)

See Also:



1278
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1278

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

#via ⇒ String

Returns:

  • (String)

See Also:



1250
# File 'nl-linux/generated/nl/linux/rt_route.rb', line 1250

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