[#69616] [Ruby trunk - Feature #11258] add 'x' mode character for O_EXCL — cremno@...
Issue #11258 has been updated by cremno phobia.
3 messages
2015/06/16
[#69643] [Ruby trunk - Misc #11276] [RFC] compile.c: convert to use ccan/list — normalperson@...
Issue #11276 has been updated by Eric Wong.
3 messages
2015/06/17
[#69751] [Ruby trunk - Bug #11001] 2.2.1 Segmentation fault in reserve_stack() function. — kubo@...
Issue #11001 has been updated by Takehiro Kubo.
3 messages
2015/06/27
[ruby-core:69448] [Ruby trunk - Feature #11210] IPAddr has no public method to get the current subnet mask
From:
bjmllr@...
Date:
2015-06-02 17:01:51 UTC
List:
ruby-core #69448
Issue #11210 has been updated by Ben Miller. It would be useful to expose @mask_addr. I have done this at times by reopening IPAddr and adding an attr_reader. Then the string form of the mask can be obtained with ```ruby IPAddr.new(addr.mask_addr, addr.family).to_s ``` #mask_addr is also useful when doing subnetting operations which are beyond the scope of IPAddr. ---------------------------------------- Feature #11210: IPAddr has no public method to get the current subnet mask https://bugs.ruby-lang.org/issues/11210#change-52718 * Author: Herwin . * Status: Open * Priority: Low * Assignee: ---------------------------------------- Both to_s and to_string omit the subnet mask of an IP address. The only way to query it via public methods is to manually parse the output of inspect. -- https://bugs.ruby-lang.org/