In bip.c getter and setter functions of IP address and Port number expect and return values in the network byte order. All ntoh and hton were eliminated from bip.c.
All other modules changed to be consistent. arm7 port left unchanged.
This commit is contained in:
@@ -89,24 +89,24 @@ extern "C" {
|
||||
uint16_t max_pdu, /* amount of space available in the PDU */
|
||||
unsigned timeout); /* milliseconds to wait for a packet */
|
||||
|
||||
/* use host byte order for setting */
|
||||
/* use network byte order for setting */
|
||||
void bip_set_port(
|
||||
uint16_t port);
|
||||
/* returns host byte order */
|
||||
/* returns network byte order */
|
||||
uint16_t bip_get_port(
|
||||
void);
|
||||
|
||||
/* use network byte order for setting */
|
||||
void bip_set_addr(
|
||||
uint32_t net_address);
|
||||
/* returns host byte order */
|
||||
/* returns network byte order */
|
||||
uint32_t bip_get_addr(
|
||||
void);
|
||||
|
||||
/* use network byte order for setting */
|
||||
void bip_set_broadcast_addr(
|
||||
uint32_t net_address);
|
||||
/* returns host byte order */
|
||||
/* returns network byte order */
|
||||
uint32_t bip_get_broadcast_addr(
|
||||
void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user