Class: FFI::LibC::Ifaddrs
- Inherits:
-
Struct
- Object
- Struct
- FFI::LibC::Ifaddrs
- Defined in:
- lib/ffi/libc/ifaddrs.rb
Overview
Instance Method Summary collapse
-
#addr ⇒ Sockaddr
The address of the Interface.
-
#broadaddr ⇒ Sockaddr
The broadcast address of the Interface.
-
#dstaddr ⇒ Sockaddr
The destination address of the Interface.
-
#flags ⇒ Integer
The flags of the Interface.
-
#name ⇒ String
The name of the Interface.
-
#netmask ⇒ Sockaddr
The netmask of the Interface.
-
#next ⇒ Ifaddrs?
Gets the next Interface Address in the list.
Instance Method Details
#addr ⇒ Sockaddr
The address of the Interface.
57 58 59 |
# File 'lib/ffi/libc/ifaddrs.rb', line 57 def addr Sockaddr.new(self[:ifa_addr]) end |
#broadaddr ⇒ Sockaddr
The broadcast address of the Interface.
77 78 79 |
# File 'lib/ffi/libc/ifaddrs.rb', line 77 def broadaddr Sockaddr.new(self[:ifa_ifu][:ifu_broadaddr]) end |
#dstaddr ⇒ Sockaddr
The destination address of the Interface.
87 88 89 |
# File 'lib/ffi/libc/ifaddrs.rb', line 87 def dstaddr Sockaddr.new(self[:ifa_ifu][:ifu_dstaddr]) end |
#flags ⇒ Integer
The flags of the Interface.
47 48 49 |
# File 'lib/ffi/libc/ifaddrs.rb', line 47 def flags self[:ifa_flags] end |
#name ⇒ String
The name of the Interface.
37 38 39 |
# File 'lib/ffi/libc/ifaddrs.rb', line 37 def name self[:ifa_name] end |