Changeset 12df1f1 in mainline
- Timestamp:
- 2013-07-15T16:42:08Z (11 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
- Files:
-
- 8 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, -
uspace/srv/net/tcp/pdu.c
r956d4281 r12df1f1 172 172 phdr6->tcp_length = 173 173 host2uint32_t_be(pdu->header_size + pdu->text_size); 174 memset(phdr6->zero , 0, 3);174 memset(phdr6->zeroes, 0, 3); 175 175 phdr6->next = IP_PROTO_TCP; 176 176 break; -
uspace/srv/net/tcp/std.h
r956d4281 r12df1f1 75 75 }; 76 76 77 /** TCP IPv4pseudo header */77 /** TCP over IPv4 checksum pseudo header */ 78 78 typedef struct { 79 79 /** Source address */ … … 89 89 } tcp_phdr_t; 90 90 91 /** TCP IPv6pseudo header */91 /** TCP over IPv6 checksum pseudo header */ 92 92 typedef struct { 93 93 /** Source address */ … … 98 98 uint32_t tcp_length; 99 99 /** Zeroes */ 100 uint8_t zero [3];100 uint8_t zeroes[3]; 101 101 /** Next header */ 102 102 uint8_t next; -
uspace/srv/net/udp/pdu.c
r956d4281 r12df1f1 110 110 host2addr128_t_be(dest_v6, phdr6->dest_addr); 111 111 phdr6->udp_length = host2uint32_t_be(pdu->data_size); 112 memset(phdr6->zero , 0, 3);112 memset(phdr6->zeroes, 0, 3); 113 113 phdr6->next = IP_PROTO_UDP; 114 114 break; -
uspace/srv/net/udp/std.h
r956d4281 r12df1f1 54 54 } udp_header_t; 55 55 56 /** UDP IPv4pseudo header */56 /** UDP over IPv4 checksum pseudo header */ 57 57 typedef struct { 58 58 /** Source address */ … … 68 68 } udp_phdr_t; 69 69 70 /** UDP IPv6pseudo header */70 /** UDP over IPv6 checksum pseudo header */ 71 71 typedef struct { 72 72 /** Source address */ … … 76 76 /** UDP length */ 77 77 uint32_t udp_length; 78 /** Reserved*/79 uint8_t zero [3];78 /** Zeroes */ 79 uint8_t zeroes[3]; 80 80 /** Next header */ 81 81 uint8_t next;
Note:
See TracChangeset
for help on using the changeset viewer.