VirtualBox

Changeset 20574 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Jun 15, 2009 1:51:43 AM (16 years ago)
Author:
vboxsync
Message:

NAT: typo (missed 'N')

Location:
trunk/src/VBox/Devices/Network
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r20556 r20574  
    5858#define VBOX_NAT_DELAY_HACK
    5959#ifdef VBOX_WITH_STATISTICS
    60 # define COUNTING_COUTER(name, dsc) \
     60# define COUNTING_COUNTER(name, dsc) \
    6161    extern "C" void slirp_counting_counter_##name##_reset(PNATState pData); \
    6262    extern "C" void slirp_counting_counter_##name##_inc(PNATState pData); \
     
    6868# define PROFILE_COUNTER(name, dsc)
    6969# include "Network/slirp/counters.h"
    70 # undef COUNTING_COUTER
     70# undef COUNTING_COUNTER
    7171# undef PROFILE_COUNTER
    7272# define DRVNAT_COUNTER_RESET(pData, name) \
  • trunk/src/VBox/Devices/Network/slirp/counters.h

    r20457 r20574  
    2020 */
    2121#ifndef PROFILE_COUNTER
    22 # error PROFILE_COUNTER not defied
     22# error PROFILE_COUNTER is not defied
    2323#endif
    24 #ifndef COUNTING_COUTER
    25 #error COUNTING_COUTER
     24#ifndef COUNTING_COUNTER
     25#error COUNTING_COUNTER is not defined
    2626#endif
    2727
     
    3333PROFILE_COUNTER(IOread, "Profiling IO soread")
    3434
    35 COUNTING_COUTER(TCP, "TCP sockets")
    36 COUNTING_COUTER(TCPHot, "TCP sockets active")
    37 COUNTING_COUTER(UDP, "UDP sockets")
    38 COUNTING_COUTER(UDPHot, "UDP sockets active")
     35COUNTING_COUNTER(TCP, "TCP sockets")
     36COUNTING_COUNTER(TCPHot, "TCP sockets active")
     37COUNTING_COUNTER(UDP, "UDP sockets")
     38COUNTING_COUNTER(UDPHot, "UDP sockets active")
    3939
    40 COUNTING_COUTER(IORead_in_1, "SB IORead_in_1")
    41 COUNTING_COUTER(IORead_in_1_bytes, "SB IORead_in_1_bytes")
    42 COUNTING_COUTER(IORead_in_2, "SB IORead_in_2")
    43 COUNTING_COUTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes")
    44 COUNTING_COUTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes")
    45 COUNTING_COUTER(IOWrite_in_1, "SB IOWrite_in_1")
    46 COUNTING_COUTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes")
    47 COUNTING_COUTER(IOWrite_in_2, "SB IOWrite_in_2")
    48 COUNTING_COUTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes")
    49 COUNTING_COUTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes")
    50 COUNTING_COUTER(IOWrite_no_w, "SB IOWrite_no_w")
    51 COUNTING_COUTER(IOWrite_rest, "SB IOWrite_rest")
    52 COUNTING_COUTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes")
     40COUNTING_COUNTER(IORead_in_1, "SB IORead_in_1")
     41COUNTING_COUNTER(IORead_in_1_bytes, "SB IORead_in_1_bytes")
     42COUNTING_COUNTER(IORead_in_2, "SB IORead_in_2")
     43COUNTING_COUNTER(IORead_in_2_1st_bytes, "SB IORead_in_2_1st_bytes")
     44COUNTING_COUNTER(IORead_in_2_2nd_bytes, "SB IORead_in_2_2nd_bytes")
     45COUNTING_COUNTER(IOWrite_in_1, "SB IOWrite_in_1")
     46COUNTING_COUNTER(IOWrite_in_1_bytes, "SB IOWrite_in_1_bytes")
     47COUNTING_COUNTER(IOWrite_in_2, "SB IOWrite_in_2")
     48COUNTING_COUNTER(IOWrite_in_2_1st_bytes, "SB IOWrite_in_2_1st_bytes")
     49COUNTING_COUNTER(IOWrite_in_2_2nd_bytes, "SB IOWrite_in_2_2nd_bytes")
     50COUNTING_COUNTER(IOWrite_no_w, "SB IOWrite_no_w")
     51COUNTING_COUNTER(IOWrite_rest, "SB IOWrite_rest")
     52COUNTING_COUNTER(IOWrite_rest_bytes, "SB IOWrite_rest_bytes")
    5353
    5454PROFILE_COUNTER(IOSBAppend_pf, "Profiling sbuf::append common")
     
    5656PROFILE_COUNTER(IOSBAppend_pf_wf, "Profiling sbuf::append writen fault")
    5757PROFILE_COUNTER(IOSBAppend_pf_wp, "Profiling sbuf::append writen partly")
    58 COUNTING_COUTER(IOSBAppend, "SB: Append total")
    59 COUNTING_COUTER(IOSBAppend_wa, "SB: Append all is written to network ")
    60 COUNTING_COUTER(IOSBAppend_wf, "SB: Append nothing is written")
    61 COUNTING_COUTER(IOSBAppend_wp, "SB: Append is written partly")
    62 COUNTING_COUTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less")
     58COUNTING_COUNTER(IOSBAppend, "SB: Append total")
     59COUNTING_COUNTER(IOSBAppend_wa, "SB: Append all is written to network ")
     60COUNTING_COUNTER(IOSBAppend_wf, "SB: Append nothing is written")
     61COUNTING_COUNTER(IOSBAppend_wp, "SB: Append is written partly")
     62COUNTING_COUNTER(IOSBAppend_zm, "SB: Append mbuf is zerro or less")
    6363
    64 COUNTING_COUTER(IOSBAppendSB, "SB: AppendSB total")
    65 COUNTING_COUTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)")
    66 COUNTING_COUTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)")
    67 COUNTING_COUTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)")
     64COUNTING_COUNTER(IOSBAppendSB, "SB: AppendSB total")
     65COUNTING_COUNTER(IOSBAppendSB_w_l_r, "SB: AppendSB (sb_wptr < sb_rptr)")
     66COUNTING_COUNTER(IOSBAppendSB_w_ge_r, "SB: AppendSB (sb_wptr >= sb_rptr)")
     67COUNTING_COUNTER(IOSBAppendSB_w_alter, "SB: AppendSB (altering of sb_wptr)")
    6868
    6969PROFILE_COUNTER(TCP_reassamble, "TCP::reasamble")
    7070PROFILE_COUNTER(TCP_input, "TCP::input")
    7171
    72 COUNTING_COUTER(DrvNAT_package_sent, "counting package sent via PDM queue")
    73 COUNTING_COUTER(DrvNAT_package_drop, "counting package drops by PDM queue")
     72COUNTING_COUNTER(DrvNAT_package_sent, "counting package sent via PDM queue")
     73COUNTING_COUNTER(DrvNAT_package_drop, "counting package drops by PDM queue")
    7474
    7575
  • trunk/src/VBox/Devices/Network/slirp/slirp.c

    r20457 r20574  
    730730# define PROFILE_COUNTER(name, dsc) \
    731731    COUNTER(name, STAMTYPE_PROFILE, STAMUNIT_TICKS_PER_CALL, dsc);
    732 # define COUNTING_COUTER(name, dsc) \
     732# define COUNTING_COUNTER(name, dsc) \
    733733    COUNTER(name, STAMTYPE_COUNTER, STAMUNIT_COUNT, dsc);
    734734
     
    737737#undef COUNTER
    738738#undef PROFILE_COUNTER
    739 #undef COUNTING_COUTER
     739#undef COUNTING_COUNTER
    740740
    741741#endif /* VBOX_WITH_STATISTICS */
     
    18911891#ifdef VBOX_WITH_STATISTICS
    18921892/*definitions */
    1893 #define COUNTING_COUTER(name, dsc) \
     1893#define COUNTING_COUNTER(name, dsc) \
    18941894void slirp_counting_counter_##name##_reset(PNATState);      \
    18951895void slirp_counting_counter_##name##_inc(PNATState);        \
     
    18981898#define PROFILE_COUNTER(name, dsc)
    18991899#include "counters.h"
    1900 #undef COUNTING_COUTER
     1900#undef COUNTING_COUNTER
    19011901#undef PROFILE_COUNTER
    19021902
    19031903/*declarations*/
    1904 #define COUNTING_COUTER(name, dsc) \
     1904#define COUNTING_COUNTER(name, dsc) \
    19051905void slirp_counting_counter_##name##_reset(PNATState pData) \
    19061906{                                                           \
     
    19181918#define PROFILE_COUNTER(name, dsc)
    19191919#include "counters.h"
    1920 #undef COUNTING_COUTER
     1920#undef COUNTING_COUNTER
    19211921#undef PROFILE_COUNTER
    19221922#endif
  • trunk/src/VBox/Devices/Network/slirp/slirp_state.h

    r20457 r20574  
    241241
    242242# define PROFILE_COUNTER(name, dsc) STAMPROFILE Stat ## name;
    243 # define COUNTING_COUTER(name, dsc) STAMCOUNTER Stat ## name;
     243# define COUNTING_COUNTER(name, dsc) STAMCOUNTER Stat ## name;
    244244
    245245#include "counters.h"
    246246
    247247#undef PROFILE_COUNTER
    248 #undef COUNTING_COUTER
     248#undef COUNTING_COUNTER
    249249
    250250} NATState;
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