Changeset 331 for EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/nd6.c
- Timestamp:
- Jan 21, 2018, 12:10:09 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
EcnlProtoTool/trunk/asp3_dcre/tinet/netinet6/nd6.c
r321 r331 2 2 * TINET (TCP/IP Protocol Stack) 3 3 * 4 * Copyright (C) 2001-20 09by 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 * … … 98 98 #include <net/ethernet.h> 99 99 #include <net/if_arp.h> 100 #include <net/ppp.h> 100 101 #include <net/ppp_ipcp.h> 101 102 #include <net/net.h> 103 #include <net/net_endian.h> 102 104 #include <net/net_var.h> 103 105 #include <net/net_buf.h> … … 107 109 #include <netinet/in.h> 108 110 #include <netinet/in_var.h> 109 #include <netinet6/in6.h> 110 #include <netinet6/in6_var.h> 111 #include <netinet/ip.h> 112 #include <netinet/ip_var.h> 113 #include <netinet/ip_icmp.h> 114 111 115 #include <netinet6/nd6.h> 112 116 113 #include <netinet/ip6.h> 114 #include <netinet/icmp6.h> 115 #include <netinet6/ip6_var.h> 116 117 #include <net/if6_var.h> 118 119 #ifdef SUPPORT_INET6 117 #include <net/if_var.h> 118 119 #ifdef _IP6_CFG 120 120 121 121 /* … … 328 328 329 329 T_LLINFO_ND6 * 330 nd6_lookup ( T_IN6_ADDR *addr, bool_t create)330 nd6_lookup (const T_IN6_ADDR *addr, bool_t create) 331 331 { 332 332 SYSTIM min = 0xffffffff; … … 370 370 371 371 T_LLINFO_ND6 * 372 nd6_cache_lladdr (T_IFNET *ifp, T_IN6_ADDR *from,372 nd6_cache_lladdr (T_IFNET *ifp, const T_IN6_ADDR *from, 373 373 T_IF_ADDR *lladdr, uint8_t type, uint8_t code) 374 374 { … … 487 487 488 488 bool_t 489 nd6_is_addr_neighbor (T_IFNET *ifp, T_IN6_ADDR *addr)489 nd6_is_addr_neighbor (T_IFNET *ifp, const T_IN6_ADDR *addr) 490 490 { 491 491 if (IN6_IS_ADDR_LINKLOCAL(addr)) … … 508 508 509 509 ER 510 nd6_output (T_IFNET *ifp, T_NET_BUF *output, T_IN6_ADDR *dst, T_LLINFO_ND6 *ln, TMO tmout)510 nd6_output (T_IFNET *ifp, T_NET_BUF *output, const T_IN6_ADDR *dst, T_LLINFO_ND6 *ln, TMO tmout) 511 511 { 512 512 ER error = E_OK; … … 622 622 623 623 ER 624 nd6_storelladdr (T_IF_ADDR *out, T_IN6_ADDR *dst, T_IF_ADDR *ifa)624 nd6_storelladdr (T_IF_ADDR *out, const T_IN6_ADDR *dst, T_IF_ADDR *ifa) 625 625 { 626 626 if (IN6_IS_ADDR_MULTICAST(dst)) { … … 696 696 } 697 697 698 #endif /* of #ifdef SUPPORT_INET6*/698 #endif /* of #ifdef _IP6_CFG */
Note:
See TracChangeset
for help on using the changeset viewer.