Changes in uspace/srv/net/udp/pdu.c [69a93df7:a2e3ee6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/udp/pdu.c
r69a93df7 ra2e3ee6 86 86 static void udp_phdr_setup(udp_pdu_t *pdu, udp_phdr_t *phdr) 87 87 { 88 phdr->src_addr = host2uint32_t_be(pdu->src.ipv4); 89 phdr->dest_addr = host2uint32_t_be(pdu->dest.ipv4); 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); 90 98 phdr->zero = 0; 91 99 phdr->protocol = IP_PROTO_UDP;
Note:
See TracChangeset
for help on using the changeset viewer.