Project

General

Profile

Bug #9350

Handle IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket options correctly on OpenBSD

Added by Jeremy Evans about 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
ruby -v:
ruby 2.1.0p0 (2013-12-25 revision 44422) [x86_64-openbsd]
Backport:
1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: DONE
[ruby-core:59496]

Description

OpenBSD is similar to NetBSD in that the IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket options take unsigned char and not int arguments. So replace

#ifdef NetBSD

with

#if defined(NetBSD) || defined(OpenBSD)

patch-ext_socket_option_c (2.17 KB) Jeremy Evans, 01/03/2014 01:32 PM

Associated revisions

Revision 44638
Added by Akira Tanaka about 2 years ago

  • ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket option takes a byte on OpenBSD. Fixed by Jeremy Evans. [Bug #9350]

Revision 44638
Added by Akira Tanaka about 2 years ago

  • ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket option takes a byte on OpenBSD. Fixed by Jeremy Evans. [Bug #9350]

History

#1 [ruby-core:59841] Updated by Akira Tanaka about 2 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

Applied in changeset r44638.


  • ext/socket/option.c: IP_MULTICAST_LOOP and IP_MULTICAST_TTL socket option takes a byte on OpenBSD. Fixed by Jeremy Evans. [Bug #9350]

#2 [ruby-core:59844] Updated by Tomoyuki Chikanaga about 2 years ago

  • Backport changed from 1.9.3: UNKNOWN, 2.0.0: UNKNOWN, 2.1: UNKNOWN to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED

socket option IP_MULTICAST_LOOP and IP_MULTICAST_TTL don't exist in 1.9.3 and 2.0.0, but in 2.1.

#3 Updated by Yui NARUSE almost 2 years ago

  • Backport changed from 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: REQUIRED to 1.9.3: DONTNEED, 2.0.0: DONTNEED, 2.1: DONE

Also available in: Atom PDF