Changeset 12df1f1 in mainline for uspace/srv/net/inetsrv
- Timestamp:
- 2013-07-15T16:42:08Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a940f1d
- Parents:
- 956d4281
- Location:
- uspace/srv/net/inetsrv
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/inetsrv/icmpv6.c
r956d4281 r12df1f1 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); … … 186 186 dgram.size = rsize; 187 187 188 icmpv6_p seudo_headerphdr;188 icmpv6_phdr_t phdr; 189 189 190 190 host2addr128_t_be(sdu->src, phdr.src_addr); … … 196 196 uint16_t cs_phdr = 197 197 inet_checksum_calc(INET_CHECKSUM_INIT, &phdr, 198 sizeof(icmpv6_p seudo_header));198 sizeof(icmpv6_phdr_t)); 199 199 200 200 uint16_t cs_all = inet_checksum_calc(cs_phdr, rdata, rsize); -
uspace/srv/net/inetsrv/icmpv6_std.h
r956d4281 r12df1f1 104 104 /** Next header */ 105 105 uint8_t next; 106 } icmpv6_p seudo_header;106 } icmpv6_phdr_t; 107 107 108 108 /** NDP neighbour body */ -
uspace/srv/net/inetsrv/ndp.h
r956d4281 r12df1f1 35 35 */ 36 36 37 #ifndef ETH_NDP_H_38 #define ETH_NDP_H_37 #ifndef NDP_H_ 38 #define NDP_H_ 39 39 40 40 #include <sys/types.h> -
uspace/srv/net/inetsrv/pdu.c
r956d4281 r12df1f1 464 464 addr48(ndp->sender_hw_addr, message->mac); 465 465 466 icmpv6_p seudo_headerphdr;466 icmpv6_phdr_t phdr; 467 467 468 468 host2addr128_t_be(ndp->sender_proto_addr, phdr.src_addr); … … 474 474 uint16_t cs_phdr = 475 475 inet_checksum_calc(INET_CHECKSUM_INIT, &phdr, 476 sizeof(icmpv6_p seudo_header));476 sizeof(icmpv6_phdr_t)); 477 477 478 478 uint16_t cs_all = inet_checksum_calc(cs_phdr, dgram->data,
Note:
See TracChangeset
for help on using the changeset viewer.
