ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/slirp/udp.c
(Generate patch)

Comparing BasiliskII/src/slirp/udp.c (file contents):
Revision 1.1 by gbeauche, 2005-05-13T09:00:59Z vs.
Revision 1.2 by gbeauche, 2005-05-13T14:02:37Z

# Line 420 | Line 420 | struct talk_request {
420   #endif
421          
422   struct cu_header {
423 <        char    dest[8];
424 <        short   family;
425 <        u_short port;
426 <        u_long  addr;
423 >        uint16_t        d_family;               // destination family
424 >        uint16_t        d_port;                 // destination port
425 >        uint32_t        d_addr;                 // destination address
426 >        uint16_t        s_family;               // source family
427 >        uint16_t        s_port;                 // source port
428 >        uint32_t        s_addr;                 // source address
429 >        uint32_t        seqn;                   // sequence number
430 >        uint16_t        message;                // message
431 >        uint16_t        data_type;              // data type
432 >        uint16_t        pkt_len;                // packet length
433   } *cu_head;
434  
435          switch(so->so_emu) {
# Line 610 | Line 616 | struct cu_header {
616                          if (getsockname(so->s, (struct sockaddr *)&addr, &addrlen) < 0)
617                                  return;
618                          cu_head = mtod(m, struct cu_header *);
619 <                        cu_head->port = addr.sin_port;
620 <                        cu_head->addr = (u_long) our_addr.s_addr;
619 >                        cu_head->s_port = addr.sin_port;
620 >                        cu_head->s_addr = our_addr.s_addr;
621                  }
622                  
623                  return;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines