Changeset 2ff150e in mainline for uspace/srv/inet/inet_link.c


Ignore:
Timestamp:
2012-02-13T08:25:46Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
081971b
Parents:
fe4310f
Message:

Correct handling of IP protocol field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/inet/inet_link.c

    rfe4310f r2ff150e  
    217217/** Send datagram over Internet link */
    218218int inet_link_send_dgram(inet_link_t *ilink, inet_addr_t *lsrc,
    219     inet_addr_t *ldest, inet_dgram_t *dgram, uint8_t ttl, int df)
     219    inet_addr_t *ldest, inet_dgram_t *dgram, uint8_t proto, uint8_t ttl, int df)
    220220{
    221221        iplink_sdu_t sdu;
     
    227227        packet.dest = dgram->dest;
    228228        packet.tos = dgram->tos;
    229         packet.proto = 42;
     229        packet.proto = proto;
    230230        packet.ttl = ttl;
    231231        packet.df = df;
Note: See TracChangeset for help on using the changeset viewer.