[388] | 1 | /*
|
---|
| 2 | * TINET (TCP/IP Protocol Stack)
|
---|
| 3 | *
|
---|
| 4 | * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering
|
---|
| 5 | * Tomakomai National College of Technology, JAPAN
|
---|
| 6 | *
|
---|
| 7 | * ä¸è¨èä½æ¨©è
|
---|
| 8 | ã¯ï¼ä»¥ä¸ã® (1)ï½(4) ã®æ¡ä»¶ãï¼Free Software Foundation
|
---|
| 9 | * ã«ãã£ã¦å
|
---|
| 10 | ¬è¡¨ããã¦ãã GNU General Public License ã® Version 2 ã«è¨
|
---|
| 11 | * è¿°ããã¦ããæ¡ä»¶ãæºããå ´åã«éãï¼æ¬ã½ããã¦ã§ã¢ï¼æ¬ã½ããã¦ã§ã¢
|
---|
| 12 | * ãæ¹å¤ãããã®ãå«ãï¼ä»¥ä¸åãï¼ã使ç¨ã»è¤è£½ã»æ¹å¤ã»åé
|
---|
| 13 | å¸ï¼ä»¥ä¸ï¼
|
---|
| 14 | * å©ç¨ã¨å¼ã¶ï¼ãããã¨ãç¡åã§è¨±è«¾ããï¼
|
---|
| 15 | * (1) æ¬ã½ããã¦ã§ã¢ãã½ã¼ã¹ã³ã¼ãã®å½¢ã§å©ç¨ããå ´åã«ã¯ï¼ä¸è¨ã®èä½
|
---|
| 16 | * 権表示ï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãï¼ãã®ã¾ã¾ã®å½¢ã§ã½ã¼
|
---|
| 17 | * ã¹ã³ã¼ãä¸ã«å«ã¾ãã¦ãããã¨ï¼
|
---|
| 18 | * (2) æ¬ã½ããã¦ã§ã¢ãï¼ã©ã¤ãã©ãªå½¢å¼ãªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
| 19 | * ç¨ã§ããå½¢ã§åé
|
---|
| 20 | å¸ããå ´åã«ã¯ï¼åé
|
---|
| 21 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨
|
---|
| 22 | * è
|
---|
| 23 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®èä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨
|
---|
| 24 | * ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 25 | * (3) æ¬ã½ããã¦ã§ã¢ãï¼æ©å¨ã«çµã¿è¾¼ããªã©ï¼ä»ã®ã½ããã¦ã§ã¢éçºã«ä½¿
|
---|
| 26 | * ç¨ã§ããªãå½¢ã§åé
|
---|
| 27 | å¸ããå ´åã«ã¯ï¼æ¬¡ã®æ¡ä»¶ãæºãããã¨ï¼
|
---|
| 28 | * (a) åé
|
---|
| 29 | å¸ã«ä¼´ãããã¥ã¡ã³ãï¼å©ç¨è
|
---|
| 30 | ããã¥ã¢ã«ãªã©ï¼ã«ï¼ä¸è¨ã®è
|
---|
| 31 | * ä½æ¨©è¡¨ç¤ºï¼ãã®å©ç¨æ¡ä»¶ããã³ä¸è¨ã®ç¡ä¿è¨¼è¦å®ãæ²è¼ãããã¨ï¼
|
---|
| 32 | * (4) æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´æ¥çã¾ãã¯éæ¥çã«çãããããªãæ
|
---|
| 33 | * 害ãããï¼ä¸è¨èä½æ¨©è
|
---|
| 34 | ããã³TOPPERSããã¸ã§ã¯ããå
|
---|
| 35 | 責ãããã¨ï¼
|
---|
| 36 | *
|
---|
| 37 | * æ¬ã½ããã¦ã§ã¢ã¯ï¼ç¡ä¿è¨¼ã§æä¾ããã¦ãããã®ã§ããï¼ä¸è¨èä½æ¨©è
|
---|
| 38 | ã
|
---|
| 39 | * ãã³TOPPERSããã¸ã§ã¯ãã¯ï¼æ¬ã½ããã¦ã§ã¢ã«é¢ãã¦ï¼ãã®é©ç¨å¯è½æ§ã
|
---|
| 40 | * å«ãã¦ï¼ãããªãä¿è¨¼ãè¡ããªãï¼ã¾ãï¼æ¬ã½ããã¦ã§ã¢ã®å©ç¨ã«ããç´
|
---|
| 41 | * æ¥çã¾ãã¯éæ¥çã«çãããããªãæ害ã«é¢ãã¦ãï¼ãã®è²¬ä»»ãè² ããªãï¼
|
---|
| 42 | *
|
---|
| 43 | * @(#) $Id: in_rename.h 388 2019-05-22 11:25:18Z coas-nagasima $
|
---|
| 44 | */
|
---|
| 45 |
|
---|
| 46 | #ifndef _IN_RENAME_H_
|
---|
| 47 | #define _IN_RENAME_H_
|
---|
| 48 |
|
---|
| 49 | /*
|
---|
| 50 | * TCP/IP ãããã³ã«ã¹ã¿ãã¯å
|
---|
| 51 | é¨åã®ãªãã¼ã
|
---|
| 52 | */
|
---|
| 53 |
|
---|
| 54 | /* netinet/tcp_input.c */
|
---|
| 55 |
|
---|
| 56 | #define tcp_input _tinet_tcp_input
|
---|
| 57 | #define tcp_move_twcep _tinet_tcp_move_twcep
|
---|
| 58 |
|
---|
| 59 | /* netinet/tcp_output.c */
|
---|
| 60 |
|
---|
| 61 | /* netinet/tcp_timer.c */
|
---|
| 62 |
|
---|
| 63 | #define tcp_cancel_timers _tinet_tcp_cancel_timers
|
---|
| 64 | #define tcp_slow_timo _tinet_tcp_slow_timo
|
---|
| 65 | #define tcp_fast_timo _tinet_tcp_fast_timo
|
---|
| 66 | #define tcp_range_set _tinet_tcp_range_set
|
---|
| 67 | #define tcp_set_persist_timer _tinet_tcp_set_persist_timer
|
---|
| 68 |
|
---|
| 69 | /* netinet/tcp_usrrq.c */
|
---|
| 70 |
|
---|
| 71 | #define tcp_user_closed _tinet_tcp_user_closed
|
---|
| 72 |
|
---|
| 73 | /* netinet/tcp_subr.c */
|
---|
| 74 |
|
---|
| 75 | #define tcp_iss _tinet_tcp_iss
|
---|
| 76 | #define tcp_init _tinet_tcp_init
|
---|
| 77 | #define tcp_init_iss _tinet_tcp_init_iss
|
---|
| 78 | #define tcp_close _tinet_tcp_close
|
---|
| 79 | #define tcp_drop _tinet_tcp_drop
|
---|
| 80 | #define tcp_respond _tinet_tcp_respond
|
---|
| 81 | #define tcp_get_segment _tinet_tcp_get_segment
|
---|
| 82 | #define tcp_rexmt_val _tinet_tcp_rexmt_val
|
---|
| 83 | #define tcp_init_cep _tinet_tcp_init_cep
|
---|
| 84 | #define tcp_notify _tinet_tcp_notify
|
---|
| 85 | #define tcp_alloc_auto_port _tinet_tcp_alloc_auto_port
|
---|
| 86 | #define tcp_alloc_port _tinet_tcp_alloc_port
|
---|
| 87 | #define tcp_free_reassq _tinet_tcp_free_reassq
|
---|
| 88 | #define tcp_move_ra2rw _tinet_tcp_move_ra2rw
|
---|
| 89 | #define tcp_wait_rwbuf _tinet_tcp_wait_rwbuf
|
---|
| 90 | #define tcp_write_raque _tinet_tcp_write_raque
|
---|
| 91 | #define tcp_lock_cep _tinet_tcp_lock_cep
|
---|
| 92 | #define tcp_can_send_more _tinet_tcp_can_send_more
|
---|
| 93 | #define tcp_can_recv_more _tinet_tcp_can_recv_more
|
---|
| 94 | #define tcp_output_trace _tinet_tcp_output_trace
|
---|
| 95 | #define tcp_input_trace _tinet_tcp_input_trace
|
---|
| 96 | #define tcp_find_cep _tinet_tcp_find_cep
|
---|
| 97 | #define tcp_find_twcep _tinet_tcp_find_twcep
|
---|
| 98 | #define tcp_is_addr_accept _tinet_tcp_is_addr_accept
|
---|
| 99 | #define tcp_move_twcep _tinet_tcp_move_twcep
|
---|
| 100 | #define tcpn_get_segment _tinet_tcpn_get_segment
|
---|
| 101 |
|
---|
| 102 | /* netinet/tcp_subr_cs.c */
|
---|
| 103 |
|
---|
| 104 | #define tcp_read_rwbuf _tinet_tcp_read_rwbuf
|
---|
| 105 | #define tcp_write_rwbuf _tinet_tcp_write_rwbuf
|
---|
| 106 | #define tcp_drop_rwbuf _tinet_tcp_drop_rwbuf
|
---|
| 107 | #define tcp_free_rwbufq _tinet_tcp_free_rwbufq
|
---|
| 108 | #define tcp_get_rwbuf_addr _tinet_tcp_get_rwbuf_addr
|
---|
| 109 |
|
---|
| 110 | #define tcp_free_rwbufq_cs _tinet_tcp_free_rwbufq_cs
|
---|
| 111 | #define tcp_get_rwbuf_addr_cs _tinet_tcp_get_rwbuf_addr_cs
|
---|
| 112 | #define tcp_read_rwbuf_cs _tinet_tcp_read_rwbuf_cs
|
---|
| 113 | #define tcp_write_rwbuf_cs _tinet_tcp_write_rwbuf_cs
|
---|
| 114 | #define tcp_drop_rwbuf_cs _tinet_tcp_drop_rwbuf_cs
|
---|
| 115 |
|
---|
| 116 | #define tcp_wait_swbuf _tinet_tcp_wait_swbuf
|
---|
| 117 | #define tcp_init_swbuf _tinet_tcp_init_swbuf
|
---|
| 118 | #define tcp_alloc_swbuf _tinet_tcp_alloc_swbuf
|
---|
| 119 | #define tcp_is_swbuf_full _tinet_tcp_is_swbuf_full
|
---|
| 120 | #define tcp_drop_swbuf _tinet_tcp_drop_swbuf
|
---|
| 121 | #define tcp_free_swbufq _tinet_tcp_free_swbufq
|
---|
| 122 | #define tcp_read_swbuf _tinet_tcp_read_swbuf
|
---|
| 123 | #define tcp_write_swbuf _tinet_tcp_write_swbuf
|
---|
| 124 | #define tcp_pull_res_nbuf _tinet_tcp_pull_res_nbuf
|
---|
| 125 | #define tcp_push_res_nbuf _tinet_tcp_push_res_nbuf
|
---|
| 126 | #define tcp_get_swbuf_addr _tinet_tcp_get_swbuf_addr
|
---|
| 127 | #define tcp_send_swbuf _tinet_tcp_send_swbuf
|
---|
| 128 |
|
---|
| 129 | #define tcp_get_swbuf_addr_cs _tinet_tcp_get_swbuf_addr_cs
|
---|
| 130 | #define tcp_wait_swbuf_cs _tinet_tcp_wait_swbuf_cs
|
---|
| 131 | #define tcp_is_swbuf_full_cs _tinet_tcp_is_swbuf_full_cs
|
---|
| 132 | #define tcp_alloc_swbuf_cs _tinet_tcp_alloc_swbuf_cs
|
---|
| 133 | #define tcp_send_swbuf_cs _tinet_tcp_send_swbuf_cs
|
---|
| 134 | #define tcp_free_swbufq_cs _tinet_tcp_free_swbufq_cs
|
---|
| 135 | #define tcp_drop_swbuf_cs _tinet_tcp_drop_swbuf_cs
|
---|
| 136 | #define tcp_write_swbuf_cs _tinet_tcp_write_swbuf_cs
|
---|
| 137 |
|
---|
| 138 | /* netinet/tcp_subr_ncs.c */
|
---|
| 139 |
|
---|
| 140 | #define tcp_drop_rwbuf_ncs _tinet_tcp_drop_rwbuf_ncs
|
---|
| 141 | #define tcp_read_rwbuf_ncs _tinet_tcp_read_rwbuf_ncs
|
---|
| 142 | #define tcp_is_swbuf_full_ncs _tinet_tcp_is_swbuf_full_ncs
|
---|
| 143 | #define tcp_drop_swbuf_ncs _tinet_tcp_drop_swbuf_ncs
|
---|
| 144 | #define tcp_read_swbuf_ncs _tinet_tcp_read_swbuf_ncs
|
---|
| 145 | #define tcp_wait_swbuf_ncs _tinet_tcp_wait_swbuf_ncs
|
---|
| 146 | #define tcp_write_swbuf_ncs _tinet_tcp_write_swbuf_ncs
|
---|
| 147 | #define tcp_write_rwbuf_ncs _tinet_tcp_write_rwbuf_ncs
|
---|
| 148 | #define tcp_get_swbuf_addr_ncs _tinet_tcp_get_swbuf_addr_ncs
|
---|
| 149 | #define tcp_send_swbuf_ncs _tinet_tcp_send_swbuf_ncs
|
---|
| 150 | #define tcp_get_rwbuf_addr_ncs _tinet_tcp_get_rwbuf_addr_ncs
|
---|
| 151 |
|
---|
| 152 | /* tcp_cfg.c */
|
---|
| 153 |
|
---|
| 154 | #define tcp6_rep _tinet_tcp6_rep
|
---|
| 155 | #define tcp4_rep _tinet_tcp4_rep
|
---|
| 156 | #define tcp_cep _tinet_tcp_cep
|
---|
| 157 | #define tcp_twcep _tinet_tcp_twcep
|
---|
| 158 | #define tmax_tcp_repid _tinet_tmax_tcp_repid
|
---|
| 159 | #define tmax_tcp_cepid _tinet_tmax_tcp_cepid
|
---|
| 160 | #define tmax_tcp_crepid _tinet_tmax_tcp_repid /* TINET 1.3 ã¨ã®äºææ§ã®ããã®å®ç¾© */
|
---|
| 161 | #define tmax_tcp_ccepid _tinet_tmax_tcp_cepid /* TINET 1.3 ã¨ã®äºææ§ã®ããã®å®ç¾© */
|
---|
| 162 |
|
---|
| 163 | /* netinet/udp_input.c */
|
---|
| 164 |
|
---|
| 165 | #define udp6_reply_no_port _tinet_udp6_reply_no_port
|
---|
| 166 | #define udp6_input_select _tinet_udp6_input_select
|
---|
| 167 | #define udp6_input _tinet_udp6_input
|
---|
| 168 | #define udp4_reply_no_port _tinet_udp4_reply_no_port
|
---|
| 169 | #define udp4_input_select _tinet_udp4_input_select
|
---|
| 170 | #define udp4_input _tinet_udp4_input
|
---|
| 171 |
|
---|
| 172 | /* netinet/udp_subr.c */
|
---|
| 173 |
|
---|
| 174 | #define udp6_alloc_port _tinet_udp6_alloc_port
|
---|
| 175 | #define udp6_alloc_auto_port _tinet_udp6_alloc_auto_port
|
---|
| 176 | #define udp6_notify _tinet_udp6_notify
|
---|
| 177 | #define udp6_find_cep _tinet_udp6_find_cep
|
---|
| 178 | #define udp4_alloc_port _tinet_udp4_alloc_port
|
---|
| 179 | #define udp4_alloc_auto_port _tinet_udp4_alloc_auto_port
|
---|
| 180 | #define udp4_notify _tinet_udp4_notify
|
---|
| 181 | #define udp4_find_cep _tinet_udp4_find_cep
|
---|
| 182 |
|
---|
| 183 | /* netinet/udp_usrreq.c */
|
---|
| 184 |
|
---|
| 185 | #define udp_send_data _tinet_udp_send_data
|
---|
| 186 |
|
---|
| 187 | /* netinet/udp_usrreq_nblk.c */
|
---|
| 188 |
|
---|
| 189 | #define udp_can_rcv _tinet_udp_can_rcv
|
---|
| 190 | #define udp_can_snd _tinet_udp_can_snd
|
---|
| 191 |
|
---|
| 192 | /* udp_cfg.c */
|
---|
| 193 |
|
---|
| 194 | #define udp6_cep _tinet_udp6_cep
|
---|
| 195 | #define udp4_cep _tinet_udp4_cep
|
---|
| 196 | #define tmax_udp_cepid _tinet_tmax_udp_cepid
|
---|
| 197 | #define tmax_udp_ccepid _tinet_tmax_udp_cepid /* TINET 1.3 ã¨ã®äºææ§ã®ããã®å®ç¾© */
|
---|
| 198 |
|
---|
| 199 | /* netinet/ip_icmp.c */
|
---|
| 200 |
|
---|
| 201 | #define icmp_input _tinet_icmp_input
|
---|
| 202 | #define icmp_error _tinet_icmp_error
|
---|
| 203 | #define icmp_echo_reply _tinet_icmp_echo_reply
|
---|
| 204 |
|
---|
| 205 | /* netinet/ip_input.c */
|
---|
| 206 |
|
---|
| 207 | #define ip_input _tinet_ip_input
|
---|
| 208 | #define ip_init _tinet_ip_init
|
---|
| 209 | #define ip_frag_timer _tinet_ip_frag_timer
|
---|
| 210 | #define ip_get_frag_queue _tinet_ip_get_frag_queue
|
---|
| 211 | #define ip_remove_options _tinet_ip_remove_options
|
---|
| 212 |
|
---|
| 213 | /* netinet/ip_output.c */
|
---|
| 214 |
|
---|
| 215 | #define ip_output _tinet_ip_output
|
---|
| 216 |
|
---|
| 217 | /* netinet/in_subr.c */
|
---|
| 218 |
|
---|
| 219 | #define inn_addrwithifp _tinet_inn_addrwithifp
|
---|
| 220 | #define in_cksum_carry _tinet_in_cksum_carry
|
---|
| 221 | #define inn_is_addr_multicast _tinet_inn_is_addr_multicast
|
---|
| 222 | #define inn_get_datagram _tinet_inn_get_datagram
|
---|
| 223 | #define inn_is_dstaddr_accept _tinet_inn_is_dstaddr_accept
|
---|
| 224 | #define ip_exchg_addr _tinet_ip_exchg_addr
|
---|
| 225 | #define inn_copy_to_host _tinet_inn_copy_to_host
|
---|
| 226 | #define in_cksum_sum _tinet_in_cksum_sum
|
---|
| 227 | #define inn_are_net_srcaddr_equal \
|
---|
| 228 | _tinet_inn_are_net_srcaddr_equal
|
---|
| 229 |
|
---|
| 230 | /* netinet/in4_subr.c */
|
---|
| 231 |
|
---|
| 232 | #define in4_add_ifaddr _tinet_in4_add_ifaddr
|
---|
| 233 | #define in4_set_header _tinet_in4_set_header
|
---|
| 234 | #define inn4_is_dstaddr_accept _tinet_inn4_is_dstaddr_accept
|
---|
| 235 | #define in4_rtredirect _tinet_in4_rtredirect
|
---|
| 236 | #define in_rtnewentry _tinet_in_rtnewentry
|
---|
| 237 | #define in_cksum _tinet_in_cksum
|
---|
| 238 | #define in4_addrwithifp _tinet_in4_addrwithifp
|
---|
| 239 | #define in4_rtalloc _tinet_in4_rtalloc
|
---|
| 240 | #define in4_init _tinet_in4_init
|
---|
| 241 | #define in_rttimer _tinet_in_rttimer
|
---|
| 242 | #define in4_get_ifaddr _tinet_in4_get_ifaddr
|
---|
| 243 | #define in4_get_datagram _tinet_in4_get_datagram
|
---|
| 244 | #define in4_is_dstaddr_accept _tinet_in4_is_dstaddr_accept
|
---|
| 245 | #define in4_cksum _tinet_in4_cksum
|
---|
| 246 | #define in_rtinit _tinet_in_rtinit
|
---|
| 247 | #define in4_ifawithifp _tinet_in4_ifawithifp
|
---|
| 248 |
|
---|
| 249 | /* netinet/if_ether.c */
|
---|
| 250 |
|
---|
| 251 | #define arp_request _tinet_arp_request
|
---|
| 252 | #define arp_input _tinet_arp_input
|
---|
| 253 | #define arp_resolve _tinet_arp_resolve
|
---|
| 254 | #define arp_init _tinet_arp_init
|
---|
| 255 | #define arp_get_cache _tinet_arp_get_cache
|
---|
| 256 |
|
---|
| 257 | #define ether_map_ipv4_multicast _tinet_ether_map_ipv4_multicast
|
---|
| 258 |
|
---|
| 259 | /* netinet6/icmp6.c */
|
---|
| 260 |
|
---|
| 261 | #define icmp6_input _tinet_icmp6_input
|
---|
| 262 |
|
---|
| 263 | #endif /* of #ifndef _IN_RENAME_H_ */
|
---|