OSDN Git Service

Add in_port_t and move it and in_addr_t to the correct header file.
authorElliott Hughes <enh@google.com>
Tue, 19 Aug 2014 19:43:50 +0000 (12:43 -0700)
committerElliott Hughes <enh@google.com>
Wed, 29 Oct 2014 18:49:45 +0000 (11:49 -0700)
commiteedbf70e8eae18ab28a36017632b80e23c398e53
treee593c3492f3d44f72d74d1611bf23ba0ac99f043
parent1c8ea807ebb54c1533040b60c0a6394abc77e339
Add in_port_t and move it and in_addr_t to the correct header file.

No one's reported this, but I saw it in an Android port of fuser(1).

We still have lots of problems in our network headers because we
get most of the structs direct from the kernel, and it doesn't use
types like this (which is why we've got away without this one for
so long). One day we should probably look at cleaning that up, but
doing so can wait.

(cherry picked from commit 35d226e05d92824c6eb992e7a64ea22efc8bae03)

Bug: 18172268
Change-Id: Ice490bfe84afb04722d738128053d4c533b8a664
libc/include/arpa/inet.h
libc/include/netinet/in.h