Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/udp/pdu.c

    ra2e3ee6 r69a93df7  
    8686static void udp_phdr_setup(udp_pdu_t *pdu, udp_phdr_t *phdr)
    8787{
    88         // FIXME: Check for correctness
    89        
    90         uint32_t src;
    91         inet_addr_pack(&pdu->src, &src);
    92        
    93         uint32_t dest;
    94         inet_addr_pack(&pdu->dest, &dest);
    95        
    96         phdr->src_addr = host2uint32_t_be(src);
    97         phdr->dest_addr = host2uint32_t_be(dest);
     88        phdr->src_addr = host2uint32_t_be(pdu->src.ipv4);
     89        phdr->dest_addr = host2uint32_t_be(pdu->dest.ipv4);
    9890        phdr->zero = 0;
    9991        phdr->protocol = IP_PROTO_UDP;
Note: See TracChangeset for help on using the changeset viewer.