Changeset 2687bdb in mainline


Ignore:
Timestamp:
2010-10-06T19:31:28Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e4554d4
Parents:
fe5d3c1b
Message:

No need to maintain a separate net_byteorder.h.
Integrate its functionality into the standard byteorder.h.

Location:
uspace
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/byteorder.h

    rfe5d3c1b r2687bdb  
    8080#endif
    8181
     82#define htons(n)        host2uint16_t_be((n))
     83#define htonl(n)        host2uint32_t_be((n))
     84#define ntohs(n)        uint16_t_be2host((n))
     85#define ntohl(n)        uint32_t_be2host((n))
     86
    8287static inline uint64_t uint64_t_byteorder_swap(uint64_t n)
    8388{
  • uspace/lib/socket/include/inet.h

    rfe5d3c1b r2687bdb  
    3939
    4040#include <sys/types.h>
    41 
    42 #include <net_byteorder.h>
     41#include <byteorder.h>
    4342
    4443/** Type definition of the socket address.
  • uspace/lib/socket/include/socket.h

    rfe5d3c1b r2687bdb  
    4141
    4242#include <net/socket_codes.h>
    43 
    44 #include <net_byteorder.h>
     43#include <byteorder.h>
     44
    4545#include <in.h>
    4646#include <in6.h>
  • uspace/srv/hw/netif/dp8390/dp8390.c

    rfe5d3c1b r2687bdb  
    3434
    3535#include <assert.h>
     36#include <byteorder.h>
    3637#include <errno.h>
    3738
    38 #include <net_byteorder.h>
    3939#include <netif_local.h>
    4040#include <packet/packet.h>
  • uspace/srv/net/il/arp/arp.c

    rfe5d3c1b r2687bdb  
    4545#include <ipc/ipc.h>
    4646#include <ipc/services.h>
     47#include <byteorder.h>
    4748#include <err.h>
    4849
    4950#include <net_messages.h>
    5051#include <net_modules.h>
    51 #include <net_byteorder.h>
    5252#include <net_device.h>
    5353#include <arp_interface.h>
  • uspace/srv/net/il/ip/ip.c

    rfe5d3c1b r2687bdb  
    4545#include <ipc/services.h>
    4646#include <sys/types.h>
     47#include <byteorder.h>
    4748
    4849#include <net/socket_codes.h>
     
    5152#include <net_modules.h>
    5253#include <arp_interface.h>
    53 #include <net_byteorder.h>
    5454#include <net_checksum.h>
    5555#include <net_device.h>
  • uspace/srv/net/nil/eth/eth.c

    rfe5d3c1b r2687bdb  
    4040#include <mem.h>
    4141#include <stdio.h>
     42#include <byteorder.h>
    4243#include <str.h>
    4344#include <err.h>
     
    4849#include <net_messages.h>
    4950#include <net_modules.h>
    50 #include <net_byteorder.h>
    5151#include <net_checksum.h>
    5252#include <ethernet_lsap.h>
  • uspace/srv/net/tl/icmp/icmp.c

    rfe5d3c1b r2687bdb  
    4646#include <sys/time.h>
    4747#include <sys/types.h>
     48#include <byteorder.h>
    4849#include <errno.h>
    4950#include <err.h>
     
    5657#include <packet/packet_client.h>
    5758#include <packet_remote.h>
    58 #include <net_byteorder.h>
    5959#include <net_checksum.h>
    6060#include <icmp_api.h>
Note: See TracChangeset for help on using the changeset viewer.