File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / mtr / packet / deconstruct_unix.h
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Oct 21 14:25:31 2019 UTC (4 years, 8 months ago) by misho
Branches: mtr, MAIN
CVS tags: v0_92, HEAD
mtr ver 0.92

    1: /*
    2:     mtr  --  a network diagnostic tool
    3:     Copyright (C) 2016  Matt Kimball
    4: 
    5:     This program is free software; you can redistribute it and/or modify
    6:     it under the terms of the GNU General Public License version 2 as
    7:     published by the Free Software Foundation.
    8: 
    9:     This program is distributed in the hope that it will be useful,
   10:     but WITHOUT ANY WARRANTY; without even the implied warranty of
   11:     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   12:     GNU General Public License for more details.
   13: 
   14:     You should have received a copy of the GNU General Public License
   15:     along with this program; if not, write to the Free Software
   16:     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
   17: */
   18: 
   19: #ifndef DECONSTRUCT_H
   20: #define DECONSTRUCT_H
   21: 
   22: #include "probe.h"
   23: 
   24: typedef void (
   25:     *received_packet_func_t) (
   26:     struct net_state_t * net_state,
   27:     const struct sockaddr_storage * remote_addr,
   28:     const void *packet,
   29:     int packet_length,
   30:     struct timeval * timestamp);
   31: 
   32: void handle_received_ip4_packet(
   33:     struct net_state_t *net_state,
   34:     const struct sockaddr_storage *remote_addr,
   35:     const void *packet,
   36:     int packet_length,
   37:     struct timeval *timestamp);
   38: 
   39: void handle_received_ip6_packet(
   40:     struct net_state_t *net_state,
   41:     const struct sockaddr_storage *remote_addr,
   42:     const void *packet,
   43:     int packet_length,
   44:     struct timeval *timestamp);
   45: 
   46: #endif

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>