Changeset 448
- Timestamp:
- Jul 21, 2020, 6:41:25 PM (3 years ago)
- Location:
- EcnlProtoTool/trunk/ntshell/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/ntshell/src/main.c
r446 r448 355 355 #ifndef NTSHELL_NO_SOCKET 356 356 ether_set_link_callback(netif_link_callback); 357 358 if (!dhcp_enable) { 359 dhcp4c_rel_info(); 360 in4_add_ifaddr(IPV4_ADDR_STAIC_LOCAL, IPV4_ADDR_STAIC_LOCAL_MASK); 361 } 357 362 #endif 358 363 { -
EcnlProtoTool/trunk/ntshell/src/tinet_app_config.h
r441 r448 2 2 * TINET (TCP/IP Protocol Stack) 3 3 * 4 * Copyright (C) 2001-201 2by Dep. of Computer Science and Engineering4 * Copyright (C) 2001-2017 by Dep. of Computer Science and Engineering 5 5 * Tomakomai National College of Technology, JAPAN 6 6 * … … 285 285 #ifdef SUPPORT_ETHER 286 286 287 #define IPV4_ADDR_LOCAL MAKE_IPV4_ADDR(192,168,137,110) 288 #define IPV4_ADDR_LOCAL_MASK MAKE_IPV4_ADDR(255,255,255,0) 289 #define IPV4_ADDR_DEFAULT_GW MAKE_IPV4_ADDR(192,168,137,1) 287 #define IPV4_ADDR_STAIC_LOCAL MAKE_IPV4_ADDR(192,168,137,110) 288 #define IPV4_ADDR_STAIC_LOCAL_MASK MAKE_IPV4_ADDR(255,255,255,0) 289 #define IPV4_ADDR_STAIC_DEFAULT_GW MAKE_IPV4_ADDR(192,168,137,1) 290 291 #ifdef DHCP4_CLI_CFG 292 293 #define IPV4_ADDR_LOCAL MAKE_IPV4_ADDR(0,0,0,0) 294 #define IPV4_ADDR_LOCAL_MASK MAKE_IPV4_ADDR(0,0,0,0) 295 #define IPV4_ADDR_DEFAULT_GW MAKE_IPV4_ADDR(0,0,0,0) 296 297 #else /* of #ifdef DHCP4_CLI_CFG */ 298 299 #define IPV4_ADDR_LOCAL IPV4_ADDR_STAIC_LOCAL 300 #define IPV4_ADDR_LOCAL_MASK IPV4_ADDR_STAIC_LOCAL_MASK 301 #define IPV4_ADDR_DEFAULT_GW IPV4_ADDR_STAIC_DEFAULT_GW 302 303 #endif /* of #ifdef DHCP4_CLI_CFG */ 290 304 291 305 #define NUM_IN4_STATIC_ROUTE_ENTRY 3 … … 610 624 /* DNS サーバの IP アドレス */ 611 625 612 #if !defined(DHCP6_CLI_CFG)626 //#if !defined(DHCP6_CLI_CFG) 613 627 614 628 #define IPV6_ADDR_DNS_INIT \ … … 618 632 UINT_C(0xfe), UINT_C(0x56), UINT_C(0xc5), UINT_C(0xd6) }}} 619 633 620 #endif /* of #if !defined(DHCP6_CLI_CFG) */621 622 #if !defined(DHCP4_CLI_CFG)623 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168, 2,1)624 #endif634 //#endif /* of #if !defined(DHCP6_CLI_CFG) */ 635 636 //#if !defined(DHCP4_CLI_CFG) 637 #define IPV4_ADDR_DNS MAKE_IPV4_ADDR(192,168,137,1) 638 //#endif 625 639 626 640 /* DOMAIN 名 */
Note:
See TracChangeset
for help on using the changeset viewer.