History log of /haiku/headers/posix/netinet/in.h
Revision Date Author Comments
# 569791be 27-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

headers/posix: Define the byteswap macros unconditionally.

It helps if one tests GCC4+ fixes on GCC4+...


# 8e309168 26-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

headers/posix: Use separate naming for the byte-swap macros.

This avoids a compile error on GCC4 when ByteOrder.h is included
after it.


# 6d5e91f0 26-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

headers/posix: Make casts in netinet byteswap functions uniform.


# 9cb15d72 26-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

netinet/in: Use the GCC4 builtin byteswap functions for htonl.

Fixes the build breakage caused by PulkoMandy's recent commit.
Remove these from ByteOrder.h now also, as per POSIX they should
come from netinet/in.h.

This is a small source compatibility breakage, but it will only
affect a small portion of non-POSIX, partially-Be applications.


# 74e1a530 11-Jul-2014 Jérôme Duval <jerome.duval@gmail.com>

Revert unrelated part of 17aa359b5df69f658b4b33e29546c9fb2f0cfce3.


# 17aa359b 28-Jun-2014 Akshay Jaggi <akshay1994.leo@gmail.com>

XHCI USB: Fixes.

* Add support for hubs in AllocateDevice().
* Prevent page fault in FinishTransfers().
* Set fCapabilityLength
* Correct in BIOS ownership code
* Fix context errors in _InsertEndpointForPipe().
* Update constants according to latest Specification (v1.1)
* Fix SMI code (reference
http://lkml.iu.edu/hypermail/linux/kernel/1204.2/02460.html).
* Fix Memory/Device-Slot leaks.
* Fix area allocation for TRBs.
* Fix for Intel Lynx Point and Panther Point chipsets. Also move init
of xhci before ehci, to switch USB 2.0 ports before the ehci module
discovers them.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# fad4fc59 30-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "ByteOrder.h: remove use of __builtin_bswap16."

This reverts commit 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e.


# 040dc2ee 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: remove use of __builtin_bswap16.

* Fixes the build for host compilers older than gcc-4.8


# 3fed1a15 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Get app_server working on x86_64.

With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.


# 173f54f1 19-Jul-2012 Matt Madia <mattmadia@gmail.com>

Updated copyright in headers. No functional change.


# 0fae8733 03-Nov-2010 Scott McCreary <scottmc2@gmail.com>

Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca83261d 19-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

Patch by Atis Elsts with only minor changes by myself:
* Moved ip6.h header from FreeBSD private to posix/netinet.
* Added some more IPv6 support definitions to in.h, and in6.h.
* Added icmp6.h header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37599 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d019c5f 22-Mar-2010 Axel Dörfler <axeld@pinc-software.de>

* Added missing IPv6 defines based on a patch by Andreas Färber in bug #5608.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4693495c 24-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* ntohl(), and htonl() should return an uint32_t, so better cast the return
value we get from __swap_int32().
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32652 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a8712463 21-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Our INADDR_* and IN_CLASS* macros were mostly wrong - they are supposed to
be in host endian order.
* Adapted ipv4 code that automatically finds a netmask to this change.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30299 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b6361ef 11-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* Replaced INADDR_ANY, INADDR_BROADCAST, and INADDR_NONE with constants, as
the endian doesn't matter for them. While I consider code that relies on this
as broken (as they don't follow the standard), it doesn't hurt, anyway; this
closes ticket #3121.
* Header cleanup, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28625 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f3917584 21-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing INET_ADDRSTRLEN.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25598 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b9320128 10-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber:
Replaced single-line comments by multi-line comments for ANSI C
compliance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15ab0bcf 21-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

* int32_t, uint32_t are now of type "int", and no longer of type "long".
This should help to reduce the number of warnings imported code will throw
during compilation (helps a lot with tcpdump, for example).
* Since long is 64 bit on 64 bit platforms, we might want to think about doing
that change for the Haiku types int32 and uint32 as well.
* Fixed several occurences of hidden type problems.
* Fixed build of the stack and TCP under BeOS.
* Fixed incorrect typedef in socket_interface.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22643 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75f1f9e0 30-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

added two more test multicast applications: multicat/multisend. sockaddr_in6/in6_addr must be visible through <netinet/in.h>, fixed that as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20926 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46527f68 14-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

initial steps towards IPv4 Multicast Filter Delta API (RFC 3678)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20690 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6181d22f 25-Jan-2007 François Revol <revol@free.fr>

Change IPPROTO_* from enum to #defines. This fixes #992.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19955 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2c739ce 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Removed superfluous prototypes from in.h. Minor cleanup.
* Fixed in6.h header. to be able to be compiled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19552 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5adca30a 07-Aug-2006 Axel Dörfler <axeld@pinc-software.de>

Merge of branches/team/network/new_stack - not yet complete as SVN does only support
replacing files when merging when you don't have deleted them manually (for some reason,
it only works as part of the merge operation, and we didn't copy the whole tree to
have "a fresh start" - next time we know better, at least if SVN still suffers from
that same limitation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18456 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 861d934e 27-Sep-2004 Waldemar Kornewald <wkornew@nowhere.fake>

This should fix BONE compatibility a little bit. We still need nonblocking IO and a good select() fix.
Explanation: we did not have the same sockaddr_in struct size as BONE, but our netstack wants to have our size, so I changed it to match BONE's. ;)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9079 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4283dfd6 30-Mar-2004 Waldemar Kornewald <wkornew@nowhere.fake>

Fixed warning.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7116 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e8038705 09-Feb-2003 Philippe Houdoin <philippe.houdoin@gmail.com>

Forgot to commit these... Should fix network stuff build issues.
Add again the load_driver_symbols() export into our KernelExport.h, as it's expected
by many kernel add-ons (drivers, modules)... the network ones, for a start.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2672 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d31ea94 31-Oct-2002 Philippe Houdoin <philippe.houdoin@gmail.com>

Add missing extern "C" enclosures.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1808 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42415555 29-Oct-2002 beveloper <beveloper@nowhere.fake>

after many changes, the network stack can now be build


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b5170a4 02-Sep-2002 beveloper <beveloper@nowhere.fake>

modified to support building of libnet


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4fc67516 12-Jul-2002 David Reid <dreid@nowhere.fake>

Bring these files up to date.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@126 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a38012 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74e1a530f88029d2933619301c56f23bf31e96a1 11-Jul-2014 Jérôme Duval <jerome.duval@gmail.com>

Revert unrelated part of 17aa359b5df69f658b4b33e29546c9fb2f0cfce3.


# 17aa359b5df69f658b4b33e29546c9fb2f0cfce3 28-Jun-2014 Akshay Jaggi <akshay1994.leo@gmail.com>

XHCI USB: Fixes.

* Add support for hubs in AllocateDevice().
* Prevent page fault in FinishTransfers().
* Set fCapabilityLength
* Correct in BIOS ownership code
* Fix context errors in _InsertEndpointForPipe().
* Update constants according to latest Specification (v1.1)
* Fix SMI code (reference
http://lkml.iu.edu/hypermail/linux/kernel/1204.2/02460.html).
* Fix Memory/Device-Slot leaks.
* Fix area allocation for TRBs.
* Fix for Intel Lynx Point and Panther Point chipsets. Also move init
of xhci before ehci, to switch USB 2.0 ports before the ehci module
discovers them.

Signed-off-by: Jérôme Duval <jerome.duval@gmail.com>


# fad4fc59f99b836052f9dc28f2b31adf933a59ff 30-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

Revert "ByteOrder.h: remove use of __builtin_bswap16."

This reverts commit 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e.


# 040dc2eebc6628cc05c4ac5e287c5287c5dacf2e 29-May-2014 Jessica Hamilton <jessica.l.hamilton@gmail.com>

ByteOrder.h: remove use of __builtin_bswap16.

* Fixes the build for host compilers older than gcc-4.8


# 3fed1a15f58e8d6fe6b492f3b94bb3625ffeddbd 05-Aug-2012 Alex Smith <alex@alex-smith.me.uk>

Get app_server working on x86_64.

With this commit, app_server now compiles and runs at boot! Nothing
particularly interesting happens, just the blue background and a mouse
pointer. Remote backends are broken and not compiled in, see #8834.
Note that it won't be possible to build this quite yet, need to get
the FreeType package uploaded.


# 173f54f1473bd6a6511c5fc6dc899c91fb8dd667 19-Jul-2012 Matt Madia <mattmadia@gmail.com>

Updated copyright in headers. No functional change.


# 0fae873352b02792db93f721c1a2ff6b240c8ecc 03-Nov-2010 Scott McCreary <scottmc2@gmail.com>

Updated posix headers to remove commas from copyright line, to match the preferred coding guidelines.
Cleaned up some header style violations, making sure there are two blank lines after the header guards.
This fixes the posix header part of #2191.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39288 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca83261dd66e46f2dc9591ca7eef849269e8a00a 19-Jul-2010 Axel Dörfler <axeld@pinc-software.de>

Patch by Atis Elsts with only minor changes by myself:
* Moved ip6.h header from FreeBSD private to posix/netinet.
* Added some more IPv6 support definitions to in.h, and in6.h.
* Added icmp6.h header.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37599 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3d019c5f638217067997a5ad06720fd3cf627f2e 22-Mar-2010 Axel Dörfler <axeld@pinc-software.de>

* Added missing IPv6 defines based on a patch by Andreas Färber in bug #5608.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35934 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4693495cf0017a5dccf3d54082803ea9e2282ea2 24-Aug-2009 Axel Dörfler <axeld@pinc-software.de>

* ntohl(), and htonl() should return an uint32_t, so better cast the return
value we get from __swap_int32().
+alphabranch


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32652 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a87124634a3c72f8114796ce541f2875f00a0420 21-Apr-2009 Axel Dörfler <axeld@pinc-software.de>

* Our INADDR_* and IN_CLASS* macros were mostly wrong - they are supposed to
be in host endian order.
* Adapted ipv4 code that automatically finds a netmask to this change.
* Cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30299 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b6361ef3afbbf22554bf00fa6f13ac44c4cd49d 11-Nov-2008 Axel Dörfler <axeld@pinc-software.de>

* Replaced INADDR_ANY, INADDR_BROADCAST, and INADDR_NONE with constants, as
the endian doesn't matter for them. While I consider code that relies on this
as broken (as they don't follow the standard), it doesn't hurt, anyway; this
closes ticket #3121.
* Header cleanup, added license.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28625 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f3917584f1fedea047eafefb821e43ed0d0e8e02 21-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Added missing INET_ADDRSTRLEN.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25598 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b93201281504cee31f4186f7c6548815940c576e 10-May-2008 Ingo Weinhold <ingo_weinhold@gmx.de>

Patch by Andreas Faerber:
Replaced single-line comments by multi-line comments for ANSI C
compliance.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25433 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 15ab0bcf01ef7bd7323d9b2da55906bafbb40fd3 21-Oct-2007 Axel Dörfler <axeld@pinc-software.de>

* int32_t, uint32_t are now of type "int", and no longer of type "long".
This should help to reduce the number of warnings imported code will throw
during compilation (helps a lot with tcpdump, for example).
* Since long is 64 bit on 64 bit platforms, we might want to think about doing
that change for the Haiku types int32 and uint32 as well.
* Fixed several occurences of hidden type problems.
* Fixed build of the stack and TCP under BeOS.
* Fixed incorrect typedef in socket_interface.h.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22643 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 75f1f9e04a532697c24bb3d1bb1dc1524a656d3d 30-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

added two more test multicast applications: multicat/multisend. sockaddr_in6/in6_addr must be visible through <netinet/in.h>, fixed that as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20926 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 46527f6806b3d52282de36566581fd567d839839 14-Apr-2007 Hugo Santos <hugosantos@nowhere.fake>

initial steps towards IPv4 Multicast Filter Delta API (RFC 3678)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20690 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 6181d22fb0dae99720872b06324b023469e54654 25-Jan-2007 François Revol <revol@free.fr>

Change IPPROTO_* from enum to #defines. This fixes #992.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19955 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c2c739ce33a1dd4884d5e998dd103a74d3f5a3b3 18-Dec-2006 Axel Dörfler <axeld@pinc-software.de>

* Removed superfluous prototypes from in.h. Minor cleanup.
* Fixed in6.h header. to be able to be compiled.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19552 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5adca30a18617cc25bc50a9a12e2fe6539412ccb 07-Aug-2006 Axel Dörfler <axeld@pinc-software.de>

Merge of branches/team/network/new_stack - not yet complete as SVN does only support
replacing files when merging when you don't have deleted them manually (for some reason,
it only works as part of the merge operation, and we didn't copy the whole tree to
have "a fresh start" - next time we know better, at least if SVN still suffers from
that same limitation).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18456 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 861d934e82498b74ba7984d59068b5fe31c4d786 27-Sep-2004 Waldemar Kornewald <wkornew@nowhere.fake>

This should fix BONE compatibility a little bit. We still need nonblocking IO and a good select() fix.
Explanation: we did not have the same sockaddr_in struct size as BONE, but our netstack wants to have our size, so I changed it to match BONE's. ;)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9079 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4283dfd6f6576512fb7dd9e5a57947a7d59895b6 30-Mar-2004 Waldemar Kornewald <wkornew@nowhere.fake>

Fixed warning.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7116 a95241bf-73f2-0310-859d-f6bbb57e9c96


# e803870545c64005bf53339217a04d4fa0ca051a 09-Feb-2003 Philippe Houdoin <philippe.houdoin@gmail.com>

Forgot to commit these... Should fix network stuff build issues.
Add again the load_driver_symbols() export into our KernelExport.h, as it's expected
by many kernel add-ons (drivers, modules)... the network ones, for a start.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@2672 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d31ea94fb6c07026f8762b99e9fbafee6c51f97 31-Oct-2002 Philippe Houdoin <philippe.houdoin@gmail.com>

Add missing extern "C" enclosures.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1808 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 42415555d395fa902b738d6f16313f2097622750 29-Oct-2002 beveloper <beveloper@nowhere.fake>

after many changes, the network stack can now be build


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1776 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 0b5170a447e6bbb212b1eecb53e36584bf59b7cb 02-Sep-2002 beveloper <beveloper@nowhere.fake>

modified to support building of libnet


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 4fc6751684fa9d716a898e11869b024fa891c709 12-Jul-2002 David Reid <dreid@nowhere.fake>

Bring these files up to date.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@126 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 52a380120846174213ccce9c4aab0dda17c72083 08-Jul-2002 ejakowatz <ejakowatz@nowhere.fake>

It is accomplished ...


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10 a95241bf-73f2-0310-859d-f6bbb57e9c96