VirtualBox

Ignore:
Timestamp:
Aug 27, 2009 6:11:12 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
51514
Message:

NAT: some pollish of r51498

Location:
trunk/src/VBox/Devices/Network/slirp
Files:
5 edited

Legend:

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

    r22478 r22494  
    4747    return NULL;
    4848}
    49 BOOTPClient *alloc_addr(PNATState pData)
     49BOOTPClient *bc_alloc_client(PNATState pData)
    5050{
    5151    int i;
     
    6868{
    6969    BOOTPClient *bc;
    70     bc = alloc_addr(pData);
     70    bc = bc_alloc_client(pData);
    7171    if (bc == NULL)
    7272        return NULL;
     
    419419                    return off;
    420420               }
    421                bc = alloc_addr(pData);
     421               bc = bc_alloc_client(pData);
    422422               if (bc == NULL)
    423423               {
     
    441441                 return off;
    442442            }
    443             bc = alloc_addr(pData);
     443            bc = bc_alloc_client(pData);
    444444            if (bc == NULL)
    445445            {
  • trunk/src/VBox/Devices/Network/slirp/bootp.h

    r22102 r22494  
    114114    uint8_t        bp_vend[DHCP_OPT_LEN];
    115115};
     116
     117/** Entry in the table of known DHCP clients. */
     118typedef struct
     119{
     120    uint32_t xid;
     121    bool allocated;
     122    uint8_t macaddr[6];
     123    struct in_addr addr;
     124    int number;
     125} BOOTPClient;
     126
    116127#define DHCP_FLAGS_B (1<<15)
    117128struct bootp_ext
     
    122133
    123134void bootp_input(PNATState, struct mbuf *m);
     135BOOTPClient *bc_alloc_client(PNATState pData);
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r22478 r22494  
    13741374        /* if no*/
    13751375        {
    1376             BOOTPClient *bc = alloc_addr(pData);
     1376            BOOTPClient *bc = bc_alloc_client(pData);
    13771377            bc->addr.s_addr = *(uint32_t *)ah->ar_sip;
    13781378            memcpy(bc->macaddr, ah->ar_sha, ETH_ALEN);
  • trunk/src/VBox/Devices/Network/slirp/slirp.h

    r22024 r22494  
    308308struct tcpcb *tcp_drop(PNATState, struct tcpcb *tp, int err);
    309309
     310/*slirp.c*/
     311void slirp_arp_who_has(PNATState pData, uint32_t dst);
    310312#define MIN_MRU 128
    311313#define MAX_MRU 16384
     
    384386    RTStrPrintfV(buffer, 1024, format, args);
    385387
     388#if defined(DEBUG_vvl) && 0
     389    LogRel(("NAT:ALIAS: %s\n", buffer));
     390#else
    386391    Log2(("NAT:ALIAS: %s\n", buffer));
     392#endif
    387393}
    388394static void vbox_slirp_printf(char *format, ...)
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r22451 r22494  
    3838/** DHCP Lease time. */
    3939#define LEASE_TIME (24 * 3600)
    40 
    41 /** Entry in the table of known DHCP clients. */
    42 typedef struct
    43 {
    44     uint32_t xid;
    45     bool allocated;
    46     uint8_t macaddr[6];
    47     struct in_addr addr;
    48     int number;
    49 } BOOTPClient;
    50 
    5140
    5241/** TFTP session entry. */
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