Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 058edb6 in mainline


Ignore:
Timestamp:
2010-10-06T18:50:55Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
bcafa70
Parents:
2aa15d4
Message:

Move socket_codes.h from libsocket to libc.

Remove stuff that was probably inappropriatelly taken from a Linux kernel
header.

Remove unneeded AF and PF codes.

Start assigning AF and PF codes sequentially. (These are not standardized.)

Location:
uspace
Files:
1 added
1 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/net/include/icmp_interface.h

    r2aa15d4 r058edb6  
    3434#define __NET_ICMP_INTERFACE_H__
    3535
     36#include <net/socket_codes.h>
    3637#include <sys/types.h>
    3738
     
    4142#include <inet.h>
    4243#include <ip_codes.h>
    43 #include <socket_codes.h>
    4444#include <icmp_codes.h>
    4545#include <icmp_common.h>
  • uspace/lib/net/include/ip_client.h

    r2aa15d4 r058edb6  
    3838#define __NET_IP_CLIENT_H__
    3939
     40#include <net/socket_codes.h>
    4041#include <sys/types.h>
    4142
     
    4344#include <ip_codes.h>
    4445#include <ip_interface.h>
    45 #include <socket_codes.h>
    4646
    4747/** Prepares the packet to be transfered via IP.
  • uspace/lib/net/include/ip_interface.h

    r2aa15d4 r058edb6  
    3434#define __NET_IP_INTERFACE_H__
    3535
     36#include <net/socket_codes.h>
    3637#include <async.h>
    3738#include <ipc/services.h>
     
    4243#include <in.h>
    4344#include <ip_codes.h>
    44 #include <socket_codes.h>
    4545
    4646#ifdef CONFIG_IL_TL_BUNDLE
  • uspace/lib/net/include/tl_common.h

    r2aa15d4 r058edb6  
    3838#define __NET_TL_COMMON_H__
    3939
     40#include <net/socket_codes.h>
     41
    4042#include <packet/packet.h>
    4143#include <net_device.h>
    4244#include <inet.h>
    43 #include <socket_codes.h>
    4445
    4546/** Device packet dimensions.
  • uspace/lib/net/tl/tl_common.c

    r2aa15d4 r058edb6  
    3636 */
    3737
     38#include <net/socket_codes.h>
    3839#include <async.h>
    3940#include <ipc/services.h>
     
    5152#include <ip_local.h>
    5253#include <ip_remote.h>
    53 #include <socket_codes.h>
    5454#include <ip_interface.h>
    5555#include <tl_interface.h>
  • uspace/lib/socket/generic/icmp_api.c

    r2aa15d4 r058edb6  
    3636 */
    3737
     38#include <net/socket_codes.h>
    3839#include <async.h>
    3940
     
    4748#include <inet.h>
    4849#include <ip_codes.h>
    49 #include <socket_codes.h>
    5050#include <icmp_messages.h>
    5151
  • uspace/lib/socket/generic/inet.c

    r2aa15d4 r058edb6  
    3535 */
    3636
     37#include <net/socket_codes.h>
    3738#include <errno.h>
    3839#include <mem.h>
     
    4344#include <in6.h>
    4445#include <inet.h>
    45 #include <socket_codes.h>
    4646
    4747int inet_ntop(uint16_t family, const uint8_t * data, char * address, size_t length){
  • uspace/lib/socket/generic/socket_core.c

    r2aa15d4 r058edb6  
    3535 */
    3636
     37#include <net/socket_codes.h>
     38
    3739#include <stdint.h>
    3840#include <stdlib.h>
     
    4244#include <in.h>
    4345#include <inet.h>
    44 #include <socket_codes.h>
    4546#include <adt/dynamic_fifo.h>
    4647#include <adt/int_map.h>
  • uspace/lib/socket/include/icmp_api.h

    r2aa15d4 r058edb6  
    3838#define __NET_ICMP_API_H__
    3939
     40#include <net/socket_codes.h>
    4041#include <sys/types.h>
    4142
     
    4546#include <inet.h>
    4647#include <ip_codes.h>
    47 #include <socket_codes.h>
    4848#include <icmp_codes.h>
    4949#include <icmp_common.h>
  • uspace/lib/socket/include/socket.h

    r2aa15d4 r058edb6  
    4040#define __NET_SOCKET_H__
    4141
     42#include <net/socket_codes.h>
     43
    4244#include <net_byteorder.h>
    4345#include <in.h>
    4446#include <in6.h>
    4547#include <inet.h>
    46 #include <socket_codes.h>
    4748#include <errno.h>
    4849
  • uspace/lib/socket/include/socket_messages.h

    r2aa15d4 r058edb6  
    4343#include <ipc/net.h>
    4444
    45 #include <socket_codes.h>
     45#include <net/socket_codes.h>
    4646
    4747/** Socket client messages.
  • uspace/srv/net/il/ip/ip.c

    r2aa15d4 r058edb6  
    4646#include <sys/types.h>
    4747
     48#include <net/socket_codes.h>
     49
    4850#include <net_messages.h>
    4951#include <net_modules.h>
     
    6466#include <nil_interface.h>
    6567#include <tl_interface.h>
    66 #include <socket_codes.h>
    6768#include <adt/measured_strings.h>
    6869#include <adt/module_map.h>
  • uspace/srv/net/tl/icmp/icmp.c

    r2aa15d4 r058edb6  
    4949#include <err.h>
    5050
     51#include <net/socket_codes.h>
     52
    5153#include <net_messages.h>
    5254#include <net_modules.h>
     
    6668#include <ip_protocols.h>
    6769#include <net_interface.h>
    68 #include <socket_codes.h>
    6970#include <tl_messages.h>
    7071#include <tl_interface.h>
  • uspace/srv/net/tl/tcp/tcp.c

    r2aa15d4 r058edb6  
    4848#include <ipc/services.h>
    4949
     50#include <net/socket_codes.h>
     51
    5052#include <net_messages.h>
    5153#include <net_modules.h>
     
    6365#include <icmp_interface.h>
    6466#include <net_interface.h>
    65 #include <socket_codes.h>
    6667#include <tcp_codes.h>
    6768#include <socket_core.h>
  • uspace/srv/net/tl/udp/udp.c

    r2aa15d4 r058edb6  
    4444#include <errno.h>
    4545#include <err.h>
     46
     47#include <net/socket_codes.h>
    4648
    4749#include <net_messages.h>
     
    6062#include <icmp_interface.h>
    6163#include <net_interface.h>
    62 #include <socket_codes.h>
    6364#include <socket_core.h>
    6465#include <socket_messages.h>
Note: See TracChangeset for help on using the changeset viewer.