VirtualBox

Changeset 34036 in vbox for trunk


Ignore:
Timestamp:
Nov 12, 2010 6:46:21 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
67718
Message:

NAT: help routine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r30218 r34036  
    460460int slirp_arp_lookup_ip_by_ether(PNATState, const uint8_t *, uint32_t *);
    461461int slirp_arp_lookup_ether_by_ip(PNATState, uint32_t, uint8_t *);
    462 #endif
    463 
     462
     463static inline size_t slirp_size(PNATState pData)
     464{
     465        if (if_mtu < MSIZE)
     466            return MCLBYTES;
     467        else if (if_mtu < MCLBYTES)
     468            return MCLBYTES;
     469        else if (if_mtu < MJUM9BYTES)
     470            return MJUM9BYTES;
     471        else if (if_mtu < MJUM16BYTES)
     472            return MJUM16BYTES;
     473        else
     474            AssertMsgFailed(("Unsupported size"));
     475        return 0;
     476}
     477#endif
     478
Note: See TracChangeset for help on using the changeset viewer.

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