/[qemu]/qemu/slirp/udp.c
ViewVC logotype

Diff of /qemu/slirp/udp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by bellard, Thu Oct 7 23:27:35 2004 UTC revision 1.5 by bellard, Sun Jun 5 17:11:42 2005 UTC
# Line 420  struct talk_request { Line 420  struct talk_request {
420  #endif  #endif
421                    
422  struct cu_header {  struct cu_header {
423          char    dest[8];          uint16_t        d_family;               // destination family
424          short   family;          uint16_t        d_port;                 // destination port
425          u_short port;          uint32_t        d_addr;                 // destination address
426          u_long  addr;          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;  } *cu_head;
434    
435          switch(so->so_emu) {          switch(so->so_emu) {
# Line 610  struct cu_header { Line 616  struct cu_header {
616                          if (getsockname(so->s, (struct sockaddr *)&addr, &addrlen) < 0)                          if (getsockname(so->s, (struct sockaddr *)&addr, &addrlen) < 0)
617                                  return;                                  return;
618                          cu_head = mtod(m, struct cu_header *);                          cu_head = mtod(m, struct cu_header *);
619                          cu_head->port = addr.sin_port;                          cu_head->s_port = addr.sin_port;
620                          cu_head->addr = (u_long) our_addr.s_addr;                          cu_head->s_addr = our_addr.s_addr;
621                  }                  }
622                                    
623                  return;                  return;

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26