Changeset 583

Show
Ignore:
Timestamp:
07/08/06 16:45:06 (3 years ago)
Author:
common
Message:

nepenthes

  • TCPSocket, add EVENT on binding a port (was used for my upnp tests)
  • Socket.cpp increase buffers for parsing /proc/net/arp
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/nepenthes-core/src/Socket.cpp

    r566 r583  
    507507 
    508508#define _PATH_PROCNET_ARP               "/proc/net/arp" 
    509         char ip[100]; 
    510         char hwa[100]; 
    511         char mask[100]; 
     509        char ip[101]; 
     510        char hwa[101]; 
     511        char mask[101]; 
    512512        char line[200]; 
    513         char dev[100]; 
     513        char dev[101]; 
    514514        int type, flags; 
    515515        FILE *fp; 
  • nepenthes/trunk/nepenthes-core/src/TCPSocket.cpp

    r550 r583  
    329329        m_LocalPort = ntohs( ( (sockaddr_in *)&addrBind)->sin_port ) ; 
    330330        logDebug("Success binding Port %i\n", m_LocalPort); 
     331 
     332        SocketEvent sEvent(this,EV_SOCK_TCP_BIND); 
     333        g_Nepenthes->getEventMgr()->handleEvent(&sEvent); 
    331334 
    332335    return true;