Class Racket::L4::ICMPv6NeighborAdvertisement
In: lib/racket/l4/icmpv6.rb  (CVS)
Parent: ICMPv6Generic

Methods

new   override=   router=   solicited=  

Attributes

address    for solicited adverts, the target address field in the solicitation that prompted this. for unsolicited adverts, the address whose link-layer address has changed
bigbustedfield    normally this would be router (1), solicited (1), override(1) and reserved (2), however a bit-struct byte boundary bug bites us here
payload   

Public Class methods

[Source]

# File lib/racket/l4/icmpv6.rb, line 383
  def initialize(*args)
    super(*args)
    self.type = ICMPv6_TYPE_NEIGHBOR_ADVERTISEMENT
  end

Public Instance methods

set override flag

[Source]

# File lib/racket/l4/icmpv6.rb, line 379
  def override=(f)
    self.bigbustedfield = (f << 29) ^ self.bigbustedfield
  end

set router flag

[Source]

# File lib/racket/l4/icmpv6.rb, line 374
  def router=(f)
    self.bigbustedfield = (f << 31) ^ self.bigbustedfield
  end

set solicited flag

[Source]

# File lib/racket/l4/icmpv6.rb, line 369
  def solicited=(f)
    self.bigbustedfield = (f << 30) ^ self.bigbustedfield
  end

[Validate]