Annotation of embedaddon/mtr/packet/deconstruct_unix.h, revision 1.1.1.2
1.1 misho 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:
1.1.1.2 ! misho 14: You should have received a copy of the GNU General Public License along
! 15: with this program; if not, write to the Free Software Foundation, Inc.,
! 16: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
1.1 misho 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:
1.1.1.2 ! misho 46: void handle_error_queue_packet(
! 47: struct net_state_t *net_state,
! 48: const struct sockaddr_storage *remote_addr,
! 49: int icmp_result,
! 50: int proto,
! 51: char *packet,
! 52: int packet_length,
! 53: struct timeval *timestamp);
! 54:
1.1 misho 55: #endif
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>