Changeset 12df1f1 in mainline for uspace/srv/net/inetsrv


Ignore:
Timestamp:
2013-07-15T16:42:08Z (12 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a940f1d
Parents:
956d4281
Message:

cherrypick trivial changes from lp:~as-s/helenos/ipv6

Location:
uspace/srv/net/inetsrv
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/icmpv6.c

    r956d4281 r12df1f1  
    8484        rdgram.size = size;
    8585       
    86         icmpv6_pseudo_header phdr;
     86        icmpv6_phdr_t phdr;
    8787       
    8888        host2addr128_t_be(dest_v6, phdr.src_addr);
     
    9494        uint16_t cs_phdr =
    9595            inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
    96             sizeof(icmpv6_pseudo_header));
     96            sizeof(icmpv6_phdr_t));
    9797       
    9898        uint16_t cs_all = inet_checksum_calc(cs_phdr, reply, size);
     
    186186        dgram.size = rsize;
    187187       
    188         icmpv6_pseudo_header phdr;
     188        icmpv6_phdr_t phdr;
    189189       
    190190        host2addr128_t_be(sdu->src, phdr.src_addr);
     
    196196        uint16_t cs_phdr =
    197197            inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
    198             sizeof(icmpv6_pseudo_header));
     198            sizeof(icmpv6_phdr_t));
    199199       
    200200        uint16_t cs_all = inet_checksum_calc(cs_phdr, rdata, rsize);
  • uspace/srv/net/inetsrv/icmpv6_std.h

    r956d4281 r12df1f1  
    104104        /** Next header */
    105105        uint8_t next;
    106 } icmpv6_pseudo_header;
     106} icmpv6_phdr_t;
    107107
    108108/** NDP neighbour body */
  • uspace/srv/net/inetsrv/ndp.h

    r956d4281 r12df1f1  
    3535 */
    3636
    37 #ifndef ETH_NDP_H_
    38 #define ETH_NDP_H_
     37#ifndef NDP_H_
     38#define NDP_H_
    3939
    4040#include <sys/types.h>
  • uspace/srv/net/inetsrv/pdu.c

    r956d4281 r12df1f1  
    464464        addr48(ndp->sender_hw_addr, message->mac);
    465465       
    466         icmpv6_pseudo_header phdr;
     466        icmpv6_phdr_t phdr;
    467467       
    468468        host2addr128_t_be(ndp->sender_proto_addr, phdr.src_addr);
     
    474474        uint16_t cs_phdr =
    475475            inet_checksum_calc(INET_CHECKSUM_INIT, &phdr,
    476             sizeof(icmpv6_pseudo_header));
     476            sizeof(icmpv6_phdr_t));
    477477       
    478478        uint16_t cs_all = inet_checksum_calc(cs_phdr, dgram->data,
Note: See TracChangeset for help on using the changeset viewer.