#include "decode_ip.h"
#include "decode_ethernet.h"
#include "../packets/packet.h"
#include <stdio.h>
#include <stdlib.h>
#include <netinet/in.h>
#include <arpa/inet.h>
Go to the source code of this file.
Functions | |
void * | DecodeIP (int PacketSlot) |
int | InitDecoderIP () |
Variables | |
GlobalVars | Globals |
int | EthernetDecoderID |
void* DecodeIP | ( | int | PacketSlot | ) |
Definition at line 18 of file decode_ip.c.
References packet_rec::BeginData, ip_header::daddr, DEBUGPATH, ETHERNET_TYPE_IP, EthernetDecoderID, GetDataByID(), Globals, ip_data::Header, ip_header::ihl, NULL, global_vars::Packets, packet_rec::RawPacket, and ip_header::saddr.
Referenced by InitDecoderIP().
int InitDecoderIP | ( | ) |
Definition at line 61 of file decode_ip.c.
References CreateDecoder(), DEBUGPATH, decoder_rec::DecodeFunc, DecodeIP(), DECODER_NONE, DecoderAddDecoder(), global_vars::Decoders, EthernetDecoderID, FALSE, GetDecoderByName(), Globals, and TRUE.
Referenced by InitDecoders().
Definition at line 13 of file decode_ip.c.