Changeset 40e29f5 in mainline for uspace/srv/net/il/ip/ip.c


Ignore:
Timestamp:
2010-03-24T18:54:50Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eaf22d4
Parents:
63f8966 (diff), 3db8889 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge from lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/il/ip/ip.c

    r63f8966 r40e29f5  
    893893        struct sockaddr * addr;
    894894        size_t addrlen;
     895        size_t prefix;
     896        size_t suffix;
     897        size_t content;
    895898        ip_pseudo_header_ref header;
    896899        size_t headerlen;
     
    924927                        ERROR_PROPAGATE(ip_get_route_req(0, IP_GET_PROTOCOL(call), addr, (socklen_t) addrlen,
    925928                            &device_id, &header, &headerlen));
    926                         *IPC_SET_DEVICE(answer) = device_id;
    927                         *IP_SET_HEADERLEN(answer) = headerlen;
     929                        IPC_SET_DEVICE(answer, device_id);
     930                        IP_SET_HEADERLEN(answer, headerlen);
    928931                        *answer_count = 2;
    929932                        if(! ERROR_OCCURRED(data_reply(&headerlen, sizeof(headerlen)))){
     
    933936                        return ERROR_CODE;
    934937                case NET_IL_PACKET_SPACE:
    935                         ERROR_PROPAGATE(ip_packet_size_message(IPC_GET_DEVICE(call), IPC_SET_ADDR(answer), IPC_SET_PREFIX(answer), IPC_SET_CONTENT(answer), IPC_SET_SUFFIX(answer)));
    936                         *answer_count = 3;
     938                        ERROR_PROPAGATE(ip_packet_size_message(IPC_GET_DEVICE(call), &addrlen, &prefix, &content, &suffix));
     939                        IPC_SET_ADDR(answer, addrlen);
     940                        IPC_SET_PREFIX(answer, prefix);
     941                        IPC_SET_CONTENT(answer, content);
     942                        IPC_SET_SUFFIX(answer, suffix);
     943                        *answer_count = 4;
    937944                        return EOK;
    938945                case NET_IL_MTU_CHANGED:
Note: See TracChangeset for help on using the changeset viewer.