Module ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str If Call NameLoad NameLoad Str body Assign NameStore ListLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad SubscriptLoad NameLoad Index Num Call NameLoad NameLoad SubscriptLoad NameLoad Index Num NameLoad Return Call AttributeLoad Str attr NameLoad orelse Raise Call NameLoad Str decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return BinOpMult BinOpBitAnd AttributeLoad NameLoad attr Num Num decorator_list FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str BinOpMult NameLoad NameLoad FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str BinOpMult NameLoad Num TupleLoad Str BinOpMult NameLoad Num TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str NameLoad TupleLoad Str BinOpMult NameLoad AttributeLoad NameLoad attr FunctionDef arguments args NameParam defaults body Return Call NameLoad NameLoad decorator_list decorator_list
N/A socket ntohs ctypes c_uint c_void_p c_uint32 c_char_p ARRAY c_uint64 c_int32 c_uint16 c_int c_uint8 c_ulong c_char c_ubyte Structure c_size_t c_ssize_t enum Defaults format_structure N/A N/A instance N/A N/A N/A 
    Returns a string representation for the structure
     N/A N/A hasattr instance _fields_ N/A N/A out N/A N/A field N/A instance _fields_ N/A N/A N/A N/A out append N/A [%s: %s] N/A N/A field N/A 0 N/A getattr instance N/A field N/A 0 None N/A N/A N/A join out N/A N/A N/A ValueError Passed argument is not a structure! N/A PacketHeader N/A Structure N/A N/A 
    typedef struct {
        struct ip *ip_hdr;
        struct tcphdr *tcp_hdr;
        struct udphdr *udp_hdr;
        u_char *payload;
        size_t size_ip;
        size_t size_tcp;
        size_t size_udp;
        size_t size_payload;
    } packet_hdrs_t;
     N/A _fields_ N/A N/A ip_hdr c_void_p N/A tcp_hdr c_void_p N/A udp_hdr c_void_p N/A payload c_char_p N/A size_ip c_ulong N/A size_tcp c_ulong N/A size_udp c_ulong N/A size_payload c_ulong N/A IpHeader N/A Structure N/A N/A 
    Ctypes structure for IPv4 header definition.
    struct ip {
        u_char	ip_vhl;			/* version << 4 | header length >> 2 */
        u_char	ip_tos;			/* type of service */
        u_short	ip_len;			/* total length */
        u_short	ip_id;			/* identification */
        u_short	ip_off;			/* fragment offset field */
        u_char	ip_ttl;			/* time to live */
        u_char	ip_p;			/* protocol */
        u_short	ip_sum;			/* checksum */
        struct	in_addr ip_src,ip_dst;	/* source and dest address */
    };
     N/A _fields_ N/A N/A ip_vhl c_uint8 N/A ip_tos c_uint8 N/A ip_len c_uint16 N/A ip_id c_uint16 N/A ip_off c_uint16 N/A ip_ttl c_uint8 N/A ip_p c_uint8 N/A ip_sum c_uint16 N/A ip_src c_uint32 N/A ip_dst c_uint32 get_total_length N/A N/A self N/A N/A N/A N/A ntohs N/A self ip_len N/A get_header_length N/A N/A self N/A N/A N/A N/A N/A N/A self ip_vhl 15 4 N/A __str__ N/A N/A self N/A N/A N/A N/A format_structure self N/A N/A ProcInfo N/A Structure N/A N/A 
    typedef struct {
        pid_t pid;
        pid_t epid;
        char comm[MAX_COMM_LEN];
    } proc_info_t;
     N/A MAXCOMLEN 32 N/A _fields_ N/A N/A pid c_int32 N/A epid c_int32 N/A comm N/A c_char MAXCOMLEN __str__ N/A N/A self N/A N/A N/A N/A format_structure self N/A N/A DivertHandleRaw N/A Structure N/A N/A 
   typedef struct {
        u_int32_t flags;
        int divert_fd;
        int kext_fd;
        int ipfw_id;
        int divert_port;
        int pipe_fd[2];
        int exit_fd[2];
        u_char *divert_buffer;
        size_t bufsize;
        packet_buf_t *thread_buffer;
        size_t thread_buffer_size;
        u_int64_t num_unknown;
        u_int64_t num_diverted;
        divert_error_handler_t err_handler;
        divert_callback_t callback;
        void *callback_args;
        volatile u_char is_looping;
        char *ipfw_filter;
        char errmsg[DIVERT_ERRBUF_SIZE];
    } divert_t;
     N/A _fields_ N/A N/A flags c_uint32 N/A divert_fd c_int N/A kext_fd c_int N/A ipfw_id c_int N/A divert_port c_int N/A pipe_fd N/A c_int 2 N/A exit_fd N/A c_int 2 N/A divert_buffer c_char_p N/A bufsize c_size_t N/A thread_buffer c_void_p N/A thread_buffer_size c_size_t N/A num_unknown c_uint64 N/A num_diverted c_uint64 N/A err_handler c_void_p N/A callback c_void_p N/A callback_args c_void_p N/A is_looping c_ubyte N/A ipfw_filter c_char_p N/A errmsg N/A c_char N/A Defaults DIVERT_ERRBUF_SIZE __str__ N/A N/A self N/A N/A N/A N/A format_structure self N/A N/A