mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
delete '!!!'
This commit is contained in:
parent
de57c04fb4
commit
ed4c83a935
44 changed files with 206 additions and 187 deletions
|
@ -310,9 +310,9 @@ static void dhcps_send_offer(struct pbuf *packet_buffer)
|
|||
#if 0
|
||||
memset(&ip_table, 0, sizeof(struct table));
|
||||
mark_ip_in_table((uint8_t)ip4_addr4(&dhcps_local_address));
|
||||
printf("reset ip table!!");
|
||||
printf("reset ip table!");
|
||||
#endif
|
||||
printf("No useable ip!!!!");
|
||||
printf("No useable ip!");
|
||||
}
|
||||
|
||||
IP4_ADDR(&dhcps_allocated_client_address, (ip4_addr1(&dhcps_network_id)),
|
||||
|
@ -502,7 +502,7 @@ struct pbuf *udp_packet_buffer, struct ip_addr *sender_addr, uint16_t sender_por
|
|||
|
||||
dhcp_message_repository = (struct dhcp_msg *)udp_packet_buffer->payload;
|
||||
if (udp_packet_buffer == NULL) {
|
||||
printf("Error!!!! System doesn't allocate any buffer\n");
|
||||
printf("Error! System doesn't allocate any buffer\n");
|
||||
return;
|
||||
}
|
||||
if (sender_port == DHCP_CLIENT_PORT) {
|
||||
|
@ -580,7 +580,7 @@ void dhcps_init(struct netif * pnetif)
|
|||
|
||||
dhcps_pcb = udp_new();
|
||||
if (dhcps_pcb == NULL) {
|
||||
printf("Error!!!upd_new error\n");
|
||||
printf("Error! upd_new error\n");
|
||||
return;
|
||||
}
|
||||
IP4_ADDR(&dhcps_send_broadcast_address, 255, 255, 255, 255);
|
||||
|
|
|
@ -56,13 +56,16 @@
|
|||
#include "ethernetif.h"
|
||||
#include "queue.h"
|
||||
#include "lwip_netconf.h"
|
||||
#include "ethernet_mii/ethernet_mii.h"
|
||||
|
||||
//#include "lwip/ethip6.h" //Add for ipv6
|
||||
|
||||
#include <platform/platform_stdlib.h>
|
||||
#include "platform_opts.h"
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
#include "ethernet_mii/ethernet_mii.h"
|
||||
#endif
|
||||
|
||||
#if CONFIG_WLAN
|
||||
#include <lwip_intf.h>
|
||||
#endif
|
||||
|
@ -159,6 +162,7 @@ static err_t low_level_output(struct netif *netif, struct pbuf *p)
|
|||
return ERR_OK;
|
||||
}
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
/*for ethernet mii interface*/
|
||||
static err_t low_level_output_mii(struct netif *netif, struct pbuf *p)
|
||||
{
|
||||
|
@ -177,7 +181,7 @@ static err_t low_level_output_mii(struct netif *netif, struct pbuf *p)
|
|||
}
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* Should allocate a pbuf and transfer the bytes of the incoming
|
||||
|
@ -241,7 +245,7 @@ void ethernetif_recv(struct netif *netif, int total_len)
|
|||
|
||||
}
|
||||
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
void ethernetif_mii_recv(struct netif *netif, int total_len)
|
||||
{
|
||||
struct eth_drv_sg sg_list[MAX_ETH_DRV_SG];
|
||||
|
@ -270,6 +274,7 @@ void ethernetif_mii_recv(struct netif *netif, int total_len)
|
|||
pbuf_free(p);
|
||||
|
||||
}
|
||||
#endif
|
||||
/**
|
||||
* Should be called at the beginning of the program to set up the
|
||||
* network interface. It calls the function low_level_init() to do the
|
||||
|
@ -307,7 +312,7 @@ err_t ethernetif_init(struct netif *netif)
|
|||
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
err_t ethernetif_mii_init(struct netif *netif)
|
||||
{
|
||||
LWIP_ASSERT("netif != NULL", (netif != NULL));
|
||||
|
@ -329,7 +334,7 @@ err_t ethernetif_mii_init(struct netif *netif)
|
|||
|
||||
return ERR_OK;
|
||||
}
|
||||
|
||||
#endif
|
||||
static void arp_timer(void *arg)
|
||||
{
|
||||
etharp_tmr();
|
||||
|
|
|
@ -1011,7 +1011,7 @@ lwip_write(int s, const void *data, size_t size)
|
|||
* set in the sets has events. On return, readset, writeset and exceptset have
|
||||
* the sockets enabled that had events.
|
||||
*
|
||||
* exceptset is not used for now!!!
|
||||
* exceptset is not used for now!
|
||||
*
|
||||
* @param maxfdp1 the highest socket index in the sets
|
||||
* @param readset_in: set of sockets to check for read events
|
||||
|
|
|
@ -311,7 +311,7 @@ snmp_asn1_enc_length_cnt(u16_t length, u8_t *octets_needed)
|
|||
*
|
||||
* @note ASN coded integers are _always_ signed. E.g. +0xFFFF is coded
|
||||
* as 0x00,0xFF,0xFF. Note the leading sign octet. A positive value
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!!
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!
|
||||
*/
|
||||
void
|
||||
snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed)
|
||||
|
@ -337,7 +337,7 @@ snmp_asn1_enc_u32t_cnt(u32_t value, u16_t *octets_needed)
|
|||
*
|
||||
* @note ASN coded integers are _always_ signed. E.g. +0xFFFF is coded
|
||||
* as 0x00,0xFF,0xFF. Note the leading sign octet. A positive value
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!!
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!
|
||||
*/
|
||||
void
|
||||
snmp_asn1_enc_u64t_cnt(const u32_t *value, u16_t *octets_needed)
|
||||
|
@ -479,7 +479,7 @@ snmp_asn1_dec_tlv(struct snmp_pbuf_stream* pbuf_stream, struct snmp_asn1_tlv* tl
|
|||
*
|
||||
* @note ASN coded integers are _always_ signed. E.g. +0xFFFF is coded
|
||||
* as 0x00,0xFF,0xFF. Note the leading sign octet. A positive value
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!!
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!
|
||||
*/
|
||||
err_t
|
||||
snmp_asn1_dec_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value)
|
||||
|
@ -519,7 +519,7 @@ snmp_asn1_dec_u32t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value
|
|||
*
|
||||
* @note ASN coded integers are _always_ signed. E.g. +0xFFFF is coded
|
||||
* as 0x00,0xFF,0xFF. Note the leading sign octet. A positive value
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!!
|
||||
* of 0xFFFFFFFF is preceded with 0x00 and the length is 5 octets!
|
||||
*/
|
||||
err_t
|
||||
snmp_asn1_dec_u64t(struct snmp_pbuf_stream *pbuf_stream, u16_t len, u32_t *value)
|
||||
|
|
|
@ -876,7 +876,7 @@ dns_enqueue(const char *name, dns_found_callback found, void *callback_arg)
|
|||
|
||||
/**
|
||||
* Resolve a hostname (string) into an IP address.
|
||||
* NON-BLOCKING callback version for use with raw API!!!
|
||||
* NON-BLOCKING callback version for use with raw API!
|
||||
*
|
||||
* Returns immediately with one of err_t return codes:
|
||||
* - ERR_OK if hostname is a valid IP address string or the host
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*
|
||||
* So, a packet queue consists of one or more pbuf chains, each of
|
||||
* which consist of one or more pbufs. CURRENTLY, PACKET QUEUES ARE
|
||||
* NOT SUPPORTED!!! Use helper structs to queue multiple packets.
|
||||
* NOT SUPPORTED! Use helper structs to queue multiple packets.
|
||||
*
|
||||
* The differences between a pbuf chain and a packet queue are very
|
||||
* precise but subtle.
|
||||
|
@ -359,7 +359,7 @@ pbuf_alloc(pbuf_layer layer, u16_t length, pbuf_type type)
|
|||
* @param payload_mem pointer to the buffer that is used for payload and headers,
|
||||
* must be at least big enough to hold 'length' plus the header size,
|
||||
* may be NULL if set later.
|
||||
* ATTENTION: The caller is responsible for correct alignment of this buffer!!
|
||||
* ATTENTION: The caller is responsible for correct alignment of this buffer!
|
||||
* @param payload_mem_len the size of the 'payload_mem' buffer, must be at least
|
||||
* big enough to hold 'length' plus the header size
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue