public inbox for ecos-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
@ 2012-03-01 15:08 bugzilla-daemon
  2012-03-01 15:21 ` [Bug 1001502] " bugzilla-daemon
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-01 15:08 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

           Summary: Make ip6_init2() visible globally to allow method of
                    disabling ipv6 support at runtime.
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: enhancement
          Priority: low
         Component: TCP/IP
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: grant.b.edwards@gmail.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


If ip6_init2() is made global, then it's possible to somewhat cleanly
disable ipv6 support at runtime by munging the net_init table to
replace calls to net_add_domain(&inet6domain) and ip6_init2() with
calls to a noop function.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
@ 2012-03-01 15:21 ` bugzilla-daemon
  2012-03-01 15:28 ` bugzilla-daemon
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-01 15:21 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

--- Comment #1 from Grant Edwards <grant.b.edwards@gmail.com> 2012-03-01 15:20:56 GMT ---
Created an attachment (id=1602)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1602)
Patch to make ip6_init2() globally visible

Uses same kerne-space-name munging as ip6_init.  The globally visible
symbol is actually cyg_ip6_init2() -- there's a _KERNEL dependent
#define in sys/param.h that defines ip6_init2 as cyg_ip6_init2

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
  2012-03-01 15:21 ` [Bug 1001502] " bugzilla-daemon
@ 2012-03-01 15:28 ` bugzilla-daemon
  2012-03-02  6:40 ` bugzilla-daemon
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-01 15:28 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

--- Comment #2 from Grant Edwards <grant.b.edwards@gmail.com> 2012-03-01 15:28:06 GMT ---
Created an attachment (id=1603)
 --> (http://bugs.ecos.sourceware.org/attachment.cgi?id=1603)
Sample code showing how to disable ipv6 at runtime.

The file disable-ipv6-at-runtime.c demonstrates how to disable ipv6
support at runtime.  It needs to be done early in the boot process so
a dummy DEVTAB entry init() function is used as a hook to call the
code that conditionally disables ipv6 support.

Both the actual mechanism to disable ipv6 and the way it's invoked are
a bit too clever, but there doesn't seem to be any simpler, more
obvious way to do it.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
  2012-03-01 15:21 ` [Bug 1001502] " bugzilla-daemon
  2012-03-01 15:28 ` bugzilla-daemon
@ 2012-03-02  6:40 ` bugzilla-daemon
  2012-03-03  4:40 ` bugzilla-daemon
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-02  6:40 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

Sergei Gavrikov <sergei.gavrikov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ecos-patches@ecos.sourcewar
                   |                            |e.org,
                   |                            |sergei.gavrikov@gmail.com
          Component|TCP/IP                      |Patches and contributions

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
                   ` (2 preceding siblings ...)
  2012-03-02  6:40 ` bugzilla-daemon
@ 2012-03-03  4:40 ` bugzilla-daemon
  2012-03-06 17:18 ` bugzilla-daemon
  2012-03-09  3:42 ` bugzilla-daemon
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-03  4:40 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

Jonathan Larmour <jifl@ecoscentric.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jifl@ecoscentric.com

--- Comment #3 from Jonathan Larmour <jifl@ecoscentric.com> 2012-03-03 04:39:39 GMT ---
I have no problem with the principle of this. However I definitely think it
will need documenting in freebsd.sgml (or maybe tcpip.sgml if you think it fits
better there) because this trick won't be obvious!

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
                   ` (3 preceding siblings ...)
  2012-03-03  4:40 ` bugzilla-daemon
@ 2012-03-06 17:18 ` bugzilla-daemon
  2012-03-09  3:42 ` bugzilla-daemon
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-06 17:18 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

Grant Edwards <grant.b.edwards@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |NEXTRELEASE

--- Comment #4 from Grant Edwards <grant.b.edwards@gmail.com> 2012-03-06 17:17:41 GMT ---
Commited change:

/cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/ChangeLog,v  <--  ChangeLog
new revision: 1.75; previous revision: 1.74

/cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/include/sys/param.h,v  <-- 
param.h
new revision: 1.13; previous revision: 1.12

/cvs/ecos/ecos-opt/net/net/bsd_tcpip/current/src/sys/netinet6/ip6_input.c,v 
<--  ip6_input.c
new revision: 1.3; previous revision: 1.2


Still need to add to network docs the sample code showing how to disable IPv6
support at runtime if desired.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
  2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
                   ` (4 preceding siblings ...)
  2012-03-06 17:18 ` bugzilla-daemon
@ 2012-03-09  3:42 ` bugzilla-daemon
  5 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-09  3:42 UTC (permalink / raw)
  To: unassigned

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

Jonathan Larmour <jifl@ecoscentric.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|NEXTRELEASE                 |
         AssignedTo|unassigned@bugs.ecos.source |grant.b.edwards@gmail.com
                   |ware.org                    |

--- Comment #5 from Jonathan Larmour <jifl@ecoscentric.com> 2012-03-09 03:41:34 GMT ---
I suggest keeping this bug open till the doc is done, as a reminder. Either
that or open a new bug. It can stay as low priority though.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime.
@ 2012-03-01 15:08 bugzilla-daemon
  0 siblings, 0 replies; 8+ messages in thread
From: bugzilla-daemon @ 2012-03-01 15:08 UTC (permalink / raw)
  To: ecos-bugs

Please do not reply to this email. Use the web interface provided at:
http://bugs.ecos.sourceware.org/show_bug.cgi?id=1001502

           Summary: Make ip6_init2() visible globally to allow method of
                    disabling ipv6 support at runtime.
           Product: eCos
           Version: CVS
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: enhancement
          Priority: low
         Component: TCP/IP
        AssignedTo: unassigned@bugs.ecos.sourceware.org
        ReportedBy: grant.b.edwards@gmail.com
                CC: ecos-bugs@ecos.sourceware.org
             Class: Advice Request


If ip6_init2() is made global, then it's possible to somewhat cleanly
disable ipv6 support at runtime by munging the net_init table to
replace calls to net_add_domain(&inet6domain) and ip6_init2() with
calls to a noop function.

-- 
Configure bugmail: http://bugs.ecos.sourceware.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-03-09  3:42 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-01 15:08 [Bug 1001502] New: Make ip6_init2() visible globally to allow method of disabling ipv6 support at runtime bugzilla-daemon
2012-03-01 15:21 ` [Bug 1001502] " bugzilla-daemon
2012-03-01 15:28 ` bugzilla-daemon
2012-03-02  6:40 ` bugzilla-daemon
2012-03-03  4:40 ` bugzilla-daemon
2012-03-06 17:18 ` bugzilla-daemon
2012-03-09  3:42 ` bugzilla-daemon
2012-03-01 15:08 [Bug 1001502] New: " bugzilla-daemon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).