📄 net_config.txt
字号:
; generated by ARM/Thumb C/C++ Compiler with , RVCT3.1 [Build 939] for uVision
; commandline ArmCC [--debug -c --asm --interleave -o.\obj\net_config.o --depend=.\obj\net_config.d --device=DARMP --apcs=interwork -O0 -IC:\Keil\ARM\INC\Philips --omf_browse=.\obj\net_config.crf Net_Config.c]
ARM
AREA ||.text||, CODE, READONLY, ALIGN=2
sys_error PROC
;;;870
;;;871 switch (code) {
000000 e3500006 CMP r0,#6
000004 308ff100 ADDCC pc,pc,r0,LSL #2
000008 ea000011 B |L1.84|
00000c ea000004 B |L1.36|
000010 ea000005 B |L1.44|
000014 ea000006 B |L1.52|
000018 ea000007 B |L1.60|
00001c ea000008 B |L1.68|
000020 ea000009 B |L1.76|
|L1.36|
;;;872 case ERR_MEM_ALLOC:
000024 e1a00000 MOV r0,r0
;;;873 /* Out of memory. */
;;;874 break;
000028 ea000009 B |L1.84|
|L1.44|
;;;875
;;;876 case ERR_MEM_FREE:
00002c e1a00000 MOV r0,r0
;;;877 /* Trying to release non existing memory block. */
;;;878 break;
000030 ea000007 B |L1.84|
|L1.52|
;;;879
;;;880 case ERR_MEM_CORRUPT:
000034 e1a00000 MOV r0,r0
;;;881 /* Memory Link pointer is Corrupted. */
;;;882 /* More data written than the size of allocated mem block. */
;;;883 break;
000038 ea000005 B |L1.84|
|L1.60|
;;;884
;;;885 case ERR_UDP_ALLOC:
00003c e1a00000 MOV r0,r0
;;;886 /* Out of UDP Sockets. */
;;;887 break;
000040 ea000003 B |L1.84|
|L1.68|
;;;888
;;;889 case ERR_TCP_ALLOC:
000044 e1a00000 MOV r0,r0
;;;890 /* Out of TCP Sockets. */
;;;891 break;
000048 ea000001 B |L1.84|
|L1.76|
;;;892
;;;893 case ERR_TCP_STATE:
00004c e1a00000 MOV r0,r0
;;;894 /* TCP State machine in undefined state. */
;;;895 break;
000050 e1a00000 MOV r0,r0
|L1.84|
000054 e1a00000 MOV r0,r0 ;874
;;;896 }
;;;897
;;;898 /* End-less loop */
;;;899 while (1);
000058 e1a00000 MOV r0,r0
|L1.92|
00005c eafffffe B |L1.92|
;;;900 }
;;;901
ENDP
init_system PROC
;;;909
;;;910 void init_system (void) {
000060 e92d4010 PUSH {r4,lr}
;;;911 /* Initialize configured interfaces and applications. */
;;;912
;;;913 #if ETH_ENABLE == 1
;;;914 init_eth_link ();
000064 ebfffffe BL init_eth_link
;;;915 #endif
;;;916 #if PPP_ENABLE == 1
;;;917 init_ppp_link ();
;;;918 #endif
;;;919 #if SLIP_ENABLE == 1
;;;920 init_slip_link ();
;;;921 #endif
;;;922
;;;923 #if (IGMP_ENABLE & ETH_ENABLE) == 1
;;;924 init_igmp ();
;;;925 #endif
;;;926 #if UDP_ENABLE == 1
;;;927 init_udp ();
000068 ebfffffe BL init_udp
;;;928 #endif
;;;929 #if TCP_ENABLE == 1
;;;930 init_tcp ();
00006c ebfffffe BL init_tcp
;;;931 #endif
;;;932 #if HTTP_ENABLE == 1
;;;933 init_http ();
;;;934 #endif
;;;935 #if TNET_ENABLE == 1
;;;936 init_tnet ();
;;;937 #endif
;;;938 #if TFTP_ENABLE == 1
;;;939 init_tftp ();
;;;940 #endif
;;;941 #if (NBNS_ENABLE & ETH_ENABLE) == 1
;;;942 init_nbns ();
000070 ebfffffe BL init_nbns
;;;943 #endif
;;;944 #if (DHCP_ENABLE & ETH_ENABLE) == 1
;;;945 init_dhcp ();
;;;946 #endif
;;;947 #if DNS_ENABLE == 1
;;;948 init_dns ();
;;;949 #endif
;;;950 #if SMTP_ENABLE == 1
;;;951 init_smtp ();
;;;952 #endif
;;;953 }
000074 e8bd4010 POP {r4,lr}
000078 e12fff1e BX lr
;;;954
ENDP
run_system PROC
;;;957
;;;958 void run_system (void) {
00007c e92d4010 PUSH {r4,lr}
;;;959 /* Run configured interfaces and applications. */
;;;960
;;;961 #if ETH_ENABLE == 1
;;;962 run_eth_link ();
000080 ebfffffe BL run_eth_link
;;;963 #endif
;;;964 #if PPP_ENABLE == 1
;;;965 run_ppp_link ();
;;;966 #endif
;;;967 #if SLIP_ENABLE == 1
;;;968 run_slip_link ();
;;;969 #endif
;;;970
;;;971 #if (IGMP_ENABLE & ETH_ENABLE) == 1
;;;972 run_igmp_host ();
;;;973 #endif
;;;974 #if TCP_ENABLE == 1
;;;975 tcp_poll_sockets ();
000084 ebfffffe BL tcp_poll_sockets
;;;976 #endif
;;;977 #if HTTP_ENABLE == 1
;;;978 run_http_server ();
;;;979 #endif
;;;980 #if TNET_ENABLE == 1
;;;981 run_tnet_server ();
;;;982 #endif
;;;983 #if TFTP_ENABLE == 1
;;;984 run_tftp_server ();
;;;985 #endif
;;;986 #if (DHCP_ENABLE & ETH_ENABLE) == 1
;;;987 run_dhcp_client ();
;;;988 #endif
;;;989 #if DNS_ENABLE == 1
;;;990 run_dns_client ();
;;;991 #endif
;;;992 #if SMTP_ENABLE == 1
;;;993 run_smtp_client ();
;;;994 #endif
;;;995 }
000088 e8bd4010 POP {r4,lr}
00008c e12fff1e BX lr
;;;996
ENDP
process_hl_udp PROC
;;;1010 #if UDP_ENABLE == 1
;;;1011 void process_hl_udp (OS_FRAME *frame) {
000090 e92d4010 PUSH {r4,lr}
000094 e1a04000 MOV r4,r0
;;;1012 /* Process udp protocol frame */
;;;1013 process_udp (frame);
000098 e1a00004 MOV r0,r4
00009c ebfffffe BL process_udp
;;;1014 }
0000a0 e8bd4010 POP {r4,lr}
0000a4 e12fff1e BX lr
;;;1015 #endif
ENDP
process_hl_tcp PROC
;;;1020 #if TCP_ENABLE == 1
;;;1021 void process_hl_tcp (OS_FRAME *frame) {
0000a8 e92d4010 PUSH {r4,lr}
0000ac e1a04000 MOV r4,r0
;;;1022 /* Process tcp protocol frame */
;;;1023 process_tcp (frame);
0000b0 e1a00004 MOV r0,r4
0000b4 ebfffffe BL process_tcp
;;;1024 }
0000b8 e8bd4010 POP {r4,lr}
0000bc e12fff1e BX lr
;;;1025 #endif
ENDP
dispatch_frame PROC
;;;1029
;;;1030 BOOL dispatch_frame (OS_FRAME *frame, U8 netif) {
0000c0 e92d4070 PUSH {r4-r6,lr}
0000c4 e1a04000 MOV r4,r0
0000c8 e1a05001 MOV r5,r1
;;;1031 /* Dispatch the outgoing frame to selected network interface. */
;;;1032
;;;1033 switch (netif) {
0000cc e3550000 CMP r5,#0
0000d0 1a000004 BNE |L1.232|
;;;1034 #if ETH_ENABLE == 1
;;;1035 case NETIF_ETH:
0000d4 e1a00000 MOV r0,r0
;;;1036 return (eth_send_frame (frame));
0000d8 e1a00004 MOV r0,r4
0000dc ebfffffe BL eth_send_frame
|L1.224|
0000e0 e8bd4070 POP {r4-r6,lr}
;;;1037 #endif
;;;1038 #if PPP_ENABLE == 1
;;;1039 case NETIF_PPP:
;;;1040 return (ppp_send_frame (frame, PPP_PROT_IP));
;;;1041 #endif
;;;1042 #if SLIP_ENABLE == 1
;;;1043 case NETIF_SLIP:
;;;1044 return (slip_send_frame (frame));
;;;1045 #endif
;;;1046 }
;;;1047 return (__FALSE);
;;;1048 }
0000e4 e12fff1e BX lr
|L1.232|
0000e8 e3a00000 MOV r0,#0 ;1047
0000ec eafffffb B |L1.224|
;;;1049
ENDP
igmp_is_member PROC
;;;1075 #if (IGMP_ENABLE & ETH_ENABLE) == 0
;;;1076 BOOL igmp_is_member (U8 *ipadr) {
0000f0 e1a01000 MOV r1,r0
;;;1077 /* Provide an empty function when IP Multicasting is not enabled. */
;;;1078 ipadr = ipadr;
0000f4 e1a00000 MOV r0,r0
;;;1079 return (__FALSE);
0000f8 e3a00000 MOV r0,#0
;;;1080 }
0000fc e12fff1e BX lr
;;;1081 #endif
ENDP
AREA ||.data||, DATA, ALIGN=0
own_hw_adr
000000 1e306ca2 DCB 0x1e,0x30,0x6c,0xa2
000004 455e DCB 0x45,0x5e
lhost_name
000006 6d636232 DCB 0x6d,0x63,0x62,0x32
00000a 33303000 DCB 0x33,0x30,0x30,0x00
% 8
AREA ||.constdata||, DATA, READONLY, ALIGN=2
MAC_Broadcast
000000 ffffffff DCB 0xff,0xff,0xff,0xff
000004 ffff DCB 0xff,0xff
IP_Broadcast
000006 ffffffff DCB 0xff,0xff,0xff,0xff
nlocalm
00000a c0a8030b DCB 0xc0,0xa8,0x03,0x0b
00000e c0a800fe DCB 0xc0,0xa8,0x00,0xfe
000012 ffffff00 DCB 0xff,0xff,0xff,0x00
000016 c2190281 DCB 0xc2,0x19,0x02,0x81
00001a c2190282 DCB 0xc2,0x19,0x02,0x82
00001e 00000000 DCB 0x00,0x00,0x00,0x00
000022 00000000 DCB 0x00,0x00,0x00,0x00
000026 00000000 DCB 0x00,0x00,0x00,0x00
00002a 00000000 DCB 0x00,0x00,0x00,0x00
00002e 00000000 DCB 0x00,0x00,0x00,0x00
000032 00000000 DCB 0x00,0x00,0x00,0x00
000036 00000000 DCB 0x00,0x00,0x00,0x00
00003a 00000000 DCB 0x00,0x00,0x00,0x00
00003e 00000000 DCB 0x00,0x00,0x00,0x00
000042 00000000 DCB 0x00,0x00,0x00,0x00
netif_cfg
000046 3900 DCB 0x39,0x00
MPool_Size
000048 00002000 DCD 0x00002000
tick_rate
00004c 0005 DCW 0x0005
arp_TabSize
00004e 000a DCW 0x000a
arp_TimeOut
000050 0096 DCW 0x0096
arp_MaxRetry
000052 04 DCB 0x04
arp_Resend
000053 02 DCB 0x02
udp_NumSocks
000054 0200 DCB 0x02,0x00
udp_LastPort
000056 03ff DCW 0x03ff
tcp_NumSocks
000058 02 DCB 0x02
tcp_MaxRetry
000059 05 DCB 0x05
tcp_LastPort
00005a 03ff DCW 0x03ff
tcp_RetryTout
00005c 0014 DCW 0x0014
tcp_2MSSTout
00005e 0001 DCW 0x0001
tcp_SynRetryTout
000060 000a DCW 0x000a
tcp_InitRetryTout
000062 0005 DCW 0x0005
tcp_DefTout
000064 0078 DCW 0x0078
tcp_ConRetry
000066 07 DCB 0x07
AREA ||.bss||, DATA, NOINIT, ALIGN=2
Mem_Pool
% 8192
arp_table
% 140
udp_socket
% 24
tcp_socket
% 132
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -