VirtualBox

Changeset 22881 in vbox for trunk


Ignore:
Timestamp:
Sep 9, 2009 8:21:37 PM (15 years ago)
Author:
vboxsync
Message:

NAT: {ip,udp}_next macro used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/libalias/alias_dns.c

    r22880 r22881  
    169169    struct udphdr *udp = NULL;
    170170    union dnsmsg_header *hdr = NULL;
    171     udp = (struct udphdr *)((char *)pip) + (pip->ip_hl << 2);
    172     hdr = (union dnsmsg_header *)&udp[1];
     171    udp = (struct udphdr *)ip_next(pip);
     172    hdr = (union dnsmsg_header *)udp_next(udp);
    173173
    174174    if (hdr->X.qr == 1)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette