Changeset 6148

Show
Ignore:
Timestamp:
01/13/09 16:15:33 (6 months ago)
Author:
kris
Message:

Notify handlers of before and after socket creation events for raw IP

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework3/trunk/lib/rex/socket/comm/local.rb

    r6072 r6148  
    4040        # 
    4141        def self.create_ip(param) 
     42                self.instance.notify_before_socket_create(self, param) 
     43 
    4244                sock = ::Socket.open(::Socket::PF_INET, ::Socket::SOCK_RAW, ::Socket::IPPROTO_RAW) 
    4345                sock.setsockopt(::Socket::IPPROTO_IP, ::Socket::IP_HDRINCL, 1) 
     
    4749                sock.extend(::Rex::Socket::Ip) 
    4850                sock.initsock(param) 
    49                  
     51 
     52                self.instance.notify_socket_created(self, sock, param) 
     53 
    5054                sock 
    5155        end