Changes in uspace/srv/net/inetsrv/icmpv6.c [a17356fd:1d94e21] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/icmpv6.c
ra17356fd r1d94e21 78 78 inet_dgram_t rdgram; 79 79 80 rdgram.src = dgram->dest;80 inet_get_srcaddr(&dgram->src, 0, &rdgram.src); 81 81 rdgram.dest = dgram->src; 82 82 rdgram.tos = 0; … … 84 84 rdgram.size = size; 85 85 86 icmpv6_p seudo_headerphdr;86 icmpv6_phdr_t phdr; 87 87 88 88 host2addr128_t_be(dest_v6, phdr.src_addr); … … 94 94 uint16_t cs_phdr = 95 95 inet_checksum_calc(INET_CHECKSUM_INIT, &phdr, 96 sizeof(icmpv6_p seudo_header));96 sizeof(icmpv6_phdr_t)); 97 97 98 98 uint16_t cs_all = inet_checksum_calc(cs_phdr, reply, size); … … 150 150 case ICMPV6_NEIGHBOUR_SOLICITATION: 151 151 case ICMPV6_NEIGHBOUR_ADVERTISEMENT: 152 #ifdef ACCEPT_RA153 152 case ICMPV6_ROUTER_ADVERTISEMENT: 154 #endif155 153 return ndp_received(dgram); 156 154 default: … … 186 184 dgram.size = rsize; 187 185 188 icmpv6_p seudo_headerphdr;186 icmpv6_phdr_t phdr; 189 187 190 188 host2addr128_t_be(sdu->src, phdr.src_addr); … … 196 194 uint16_t cs_phdr = 197 195 inet_checksum_calc(INET_CHECKSUM_INIT, &phdr, 198 sizeof(icmpv6_p seudo_header));196 sizeof(icmpv6_phdr_t)); 199 197 200 198 uint16_t cs_all = inet_checksum_calc(cs_phdr, rdata, rsize);
Note:
See TracChangeset
for help on using the changeset viewer.