📄 fs.i
字号:
# 191 "..\\unip\\include\\lwip\\arch.h"
# 36 "..\\unip\\include\\lwip\\mem.h" 2
typedef u16_t mem_size_t;
struct mem {
mem_size_t next, prev;
u16_t used;
};
void mem_init(void);
void *mem_malloc(mem_size_t size);
void mem_free(void *mem);
void *mem_realloc(void *mem, mem_size_t size);
void *mem_reallocm(void *mem, mem_size_t size);
extern u16_t ram [] ;
extern u16_t mem_size ;
# 55 "..\\unip\\include\\lwipopts.h" 2
# 1 "..\\unip\\include\\lwip\\pbuf.h" 1
typedef enum {
PBUF_TRANSPORT,
PBUF_IP,
PBUF_LINK,
PBUF_RAW
} pbuf_layer;
typedef enum {
PBUF_RAM,
PBUF_ROM,
PBUF_REF,
PBUF_POOL
} pbuf_flag;
struct pbuf {
struct pbuf *next;
void *payload;
u16_t tot_len;
u16_t len;
u16_t flags;
u16_t ref;
};
void pbuf_init(void);
struct pbuf *pbuf_alloc(pbuf_layer l, u16_t size, pbuf_flag flag);
void pbuf_realloc(struct pbuf *p, u16_t size);
u8_t pbuf_header(struct pbuf *p, s16_t header_size);
void pbuf_ref(struct pbuf *p);
void pbuf_ref_chain(struct pbuf *p);
u8_t pbuf_free(struct pbuf *p);
u8_t pbuf_clen(struct pbuf *p);
void pbuf_cat(struct pbuf *h, struct pbuf *t);
void pbuf_chain(struct pbuf *h, struct pbuf *t);
struct pbuf *pbuf_take(struct pbuf *f);
struct pbuf *pbuf_dechain(struct pbuf *p);
extern u8_t pbuf_pool_memory [] ;
extern u16_t pool_num ;
extern u16_t pool_size ;
# 56 "..\\unip\\include\\lwipopts.h" 2
# 1 "..\\unip\\include\\lwip\\ip_addr.h" 1
struct ip_addr {
u32_t addr __attribute__((packed)) ;
} __attribute__((packed)) ;
struct in_addr {
u32_t s_addr;
};
extern const struct ip_addr ip_addr_any;
extern const struct ip_addr ip_addr_broadcast;
# 57 "..\\unip\\include\\lwipopts.h" 2
# 1 "..\\unip\\include\\lwip\\netif.h" 1
# 1 "..\\unip\\include\\lwip\\err.h" 1
typedef s8_t err_t;
# 37 "..\\unip\\include\\lwip\\netif.h" 2
# 1 "..\\unip\\include\\lwip\\inet.h" 1
u16_t inet_chksum(void *dataptr, u16_t len);
u16_t inet_chksum_pbuf(struct pbuf *p);
u16_t inet_chksum_pseudo(struct pbuf *p,
struct ip_addr *src, struct ip_addr *dest,
u8_t proto, u16_t proto_len);
u32_t inet_addr(const char *cp);
int inet_aton(const char *cp, struct in_addr *addr);
u8_t *inet_ntoa(u32_t addr);
u16_t htons(u16_t x);
u16_t ntohs(u16_t x);
u32_t htonl(u32_t x);
u32_t ntohl(u32_t x);
# 41 "..\\unip\\include\\lwip\\netif.h" 2
struct netif {
struct netif *next;
struct ip_addr ip_addr;
struct ip_addr netmask;
struct ip_addr gw;
err_t (* input)(struct pbuf *p, struct netif *inp);
err_t (* output)(struct netif *netif, struct pbuf *p,
struct ip_addr *ipaddr);
err_t (* linkoutput)(struct netif *netif, struct pbuf *p);
void *state;
unsigned char hwaddr_len;
unsigned char hwaddr[3U ];
u16_t mtu;
char name[2];
u8_t num;
u8_t flags;
};
extern struct netif *netif_list;
extern struct netif *netif_default;
void netif_init(void);
struct netif *netif_add(struct ip_addr *ipaddr, struct ip_addr *netmask,
struct ip_addr *gw,
void *state,
err_t (* init)(struct netif *netif),
err_t (* input)(struct pbuf *p, struct netif *netif));
void
netif_set_addr(struct netif *netif,struct ip_addr *ipaddr, struct ip_addr *netmask,
struct ip_addr *gw);
void netif_remove(struct netif * netif);
struct netif *netif_find(char *name);
void netif_set_default(struct netif *netif);
void netif_set_ipaddr(struct netif *netif, struct ip_addr *ipaddr);
void netif_set_netmask(struct netif *netif, struct ip_addr *netmast);
void netif_set_gw(struct netif *netif, struct ip_addr *gw);
# 58 "..\\unip\\include\\lwipopts.h" 2
# 1 "..\\unip\\include\\lwip\\tcp.h" 1
# 1 "..\\unip\\include\\lwip\\sys.h" 1
typedef u8_t sys_sem_t;
typedef u8_t sys_mbox_t;
struct sys_timeout {u8_t dummy;};
# 131 "..\\unip\\include\\lwip\\sys.h"
# 174 "..\\unip\\include\\lwip\\sys.h"
# 35 "..\\unip\\include\\lwip\\tcp.h" 2
# 1 "..\\unip\\include\\lwip\\ip.h" 1
struct netif;
void ip_init(void);
u8_t ip_lookup(void *header, struct netif *inp);
struct netif *ip_route(struct ip_addr *dest);
err_t ip_input(struct pbuf *p, struct netif *inp);
err_t ip_output(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
u8_t ttl, u8_t proto);
err_t ip_output_if(struct pbuf *p, struct ip_addr *src, struct ip_addr *dest,
u8_t ttl, u8_t proto,
struct netif *netif);
struct ip_hdr {
u16_t _v_hl_tos __attribute__((packed)) ;
u16_t _len __attribute__((packed)) ;
u16_t _id __attribute__((packed)) ;
u16_t _offset __attribute__((packed)) ;
u16_t _ttl_proto __attribute__((packed)) ;
u16_t _chksum __attribute__((packed)) ;
struct ip_addr src __attribute__((packed)) ;
struct ip_addr dest __attribute__((packed)) ;
} __attribute__((packed)) ;
# 40 "..\\unip\\include\\lwip\\tcp.h" 2
# 1 "..\\unip\\include\\lwip\\icmp.h" 1
enum icmp_dur_type {
ICMP_DUR_NET = 0,
ICMP_DUR_HOST = 1,
ICMP_DUR_PROTO = 2,
ICMP_DUR_PORT = 3,
ICMP_DUR_FRAG = 4,
ICMP_DUR_SR = 5
};
enum icmp_te_type {
ICMP_TE_TTL = 0,
ICMP_TE_FRAG = 1
};
void icmp_input(struct pbuf *p, struct netif *inp);
void icmp_dest_unreach(struct pbuf *p, enum icmp_dur_type t);
void icmp_time_exceeded(struct pbuf *p, enum icmp_te_type t);
struct icmp_echo_hdr {
u16_t _type_code __attribute__((packed)) ;
u16_t chksum __attribute__((packed)) ;
u16_t id __attribute__((packed)) ;
u16_t seqno __attribute__((packed)) ;
} __attribute__((packed)) ;
struct icmp_dur_hdr {
u16_t _type_code __attribute__((packed)) ;
u16_t chksum __attribute__((packed)) ;
u32_t unused __attribute__((packed)) ;
} __attribute__((packed)) ;
struct icmp_te_hdr {
u16_t _type_code __attribute__((packed)) ;
u16_t chksum __attribute__((packed)) ;
u32_t unused __attribute__((packed)) ;
} __attribute__((packed)) ;
# 41 "..\\unip\\include\\lwip\\tcp.h" 2
struct tcp_pcb;
void tcp_init (void);
void tcp_tmr (void);
struct tcp_pcb * tcp_new (void);
struct tcp_pcb * tcp_alloc (u8_t prio);
void tcp_arg (struct tcp_pcb *pcb, void *arg);
void tcp_accept (struct tcp_pcb *pcb,
err_t (* accept)(void *arg, struct tcp_pcb *newpcb,
err_t err));
void tcp_recv (struct tcp_pcb *pcb,
err_t (* recv)(void *arg, struct tcp_pcb *tpcb,
struct pbuf *p, err_t err));
void tcp_sent (struct tcp_pcb *pcb,
err_t (* sent)(void *arg, struct tcp_pcb *tpcb,
u16_t len));
void tcp_poll (struct tcp_pcb *pcb,
err_t (* poll)(void *arg, struct tcp_pcb *tpcb),
u8_t interval);
void tcp_err (struct tcp_pcb *pcb,
void (* err)(void *arg, err_t err));
void tcp_recved (struct tcp_pcb *pcb, u16_t len);
err_t tcp_bind (struct tcp_pcb *pcb, struct ip_addr *ipaddr,
u16_t port);
err_t tcp_connect (struct tcp_pcb *pcb, struct ip_addr *ipaddr,
u16_t port, err_t (* connected)(void *arg,
struct tcp_pcb *tpcb,
err_t err));
struct tcp_pcb * tcp_listen (struct tcp_pcb *pcb);
void tcp_abort (struct tcp_pcb *pcb);
err_t tcp_close (struct tcp_pcb *pcb);
err_t tcp_write (struct tcp_pcb *pcb, const void *dataptr, u16_t len,
u8_t copy);
void tcp_setprio (struct tcp_pcb *pcb, u8_t prio);
void tcp_slowtmr (void);
void tcp_fasttmr (void);
void tcp_input (struct pbuf *p, struct netif *inp);
err_t tcp_output (struct tcp_pcb *pcb);
void tcp_rexmit (struct tcp_pcb *pcb);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -