Minor code style fixes
This commit is contained in:
parent
9ce61940c0
commit
9e30f0f7c6
1 changed files with 4 additions and 12 deletions
|
@ -431,7 +431,6 @@ uip_init(void)
|
||||||
}
|
}
|
||||||
#endif /* UIP_UDP */
|
#endif /* UIP_UDP */
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_TCP && UIP_ACTIVE_OPEN
|
#if UIP_TCP && UIP_ACTIVE_OPEN
|
||||||
struct uip_conn *
|
struct uip_conn *
|
||||||
|
@ -503,8 +502,6 @@ uip_connect(uip_ipaddr_t *ripaddr, u16_t rport)
|
||||||
return conn;
|
return conn;
|
||||||
}
|
}
|
||||||
#endif /* UIP_TCP && UIP_ACTIVE_OPEN */
|
#endif /* UIP_TCP && UIP_ACTIVE_OPEN */
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_UDP
|
#if UIP_UDP
|
||||||
struct uip_udp_conn *
|
struct uip_udp_conn *
|
||||||
|
@ -526,7 +523,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
conn = 0;
|
conn = 0;
|
||||||
for(c = 0; c < UIP_UDP_CONNS; ++c) {
|
for(c = 0; c < UIP_UDP_CONNS; ++c) {
|
||||||
if(uip_udp_conns[c].lport == 0) {
|
if(uip_udp_conns[c].lport == 0) {
|
||||||
|
@ -551,8 +547,6 @@ uip_udp_new(const uip_ipaddr_t *ripaddr, u16_t rport)
|
||||||
return conn;
|
return conn;
|
||||||
}
|
}
|
||||||
#endif /* UIP_UDP */
|
#endif /* UIP_UDP */
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
#if UIP_TCP
|
#if UIP_TCP
|
||||||
void
|
void
|
||||||
|
@ -565,8 +559,6 @@ uip_unlisten(u16_t port)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
uip_listen(u16_t port)
|
uip_listen(u16_t port)
|
||||||
|
@ -581,7 +573,6 @@ uip_listen(u16_t port)
|
||||||
#endif
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
#if UIP_CONF_IPV6_REASSEMBLY
|
#if UIP_CONF_IPV6_REASSEMBLY
|
||||||
#define UIP_REASS_BUFSIZE (UIP_BUFSIZE - UIP_LLH_LEN)
|
#define UIP_REASS_BUFSIZE (UIP_BUFSIZE - UIP_LLH_LEN)
|
||||||
|
|
||||||
|
@ -814,7 +805,8 @@ uip_add_rcv_nxt(u16_t n)
|
||||||
* \brief Process the options in Destination and Hop By Hop extension headers
|
* \brief Process the options in Destination and Hop By Hop extension headers
|
||||||
*/
|
*/
|
||||||
static u8_t
|
static u8_t
|
||||||
ext_hdr_options_process() {
|
ext_hdr_options_process(void)
|
||||||
|
{
|
||||||
/*
|
/*
|
||||||
* Length field in the extension header: length of th eheader in units of
|
* Length field in the extension header: length of th eheader in units of
|
||||||
* 8 bytes, excluding the first 8 bytes
|
* 8 bytes, excluding the first 8 bytes
|
||||||
|
@ -822,7 +814,7 @@ ext_hdr_options_process() {
|
||||||
*/
|
*/
|
||||||
uip_ext_opt_offset = 2;
|
uip_ext_opt_offset = 2;
|
||||||
while(uip_ext_opt_offset < ((UIP_EXT_BUF->len << 3) + 8)) {
|
while(uip_ext_opt_offset < ((UIP_EXT_BUF->len << 3) + 8)) {
|
||||||
switch (UIP_EXT_HDR_OPT_BUF->type) {
|
switch(UIP_EXT_HDR_OPT_BUF->type) {
|
||||||
/*
|
/*
|
||||||
* for now we do not support any options except padding ones
|
* for now we do not support any options except padding ones
|
||||||
* PAD1 does not make sense as the header must be 8bytes aligned,
|
* PAD1 does not make sense as the header must be 8bytes aligned,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue