Sha256: 82b935535e06f37d9a1f6a9ca3d4fc7d795d29ea662908bb815f36526af2792d

Contents?: true

Size: 1.03 KB

Versions: 23

Compression:

Stored size: 1.03 KB

Contents

/*
  Copyright (C) 2009-2012 NEC Corporation

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License, version 2, as
  published by the Free Software Foundation.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License along
  with this program; if not, write to the Free Software Foundation, Inc.,
  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/

#ifndef _ICMP_H_
#define _ICMP_H_

#include "ipv4.h"

#define ICMP_TYPE_ECHO_REPLY 0
#define ICMP_TYPE_ECHO_REQUEST 8

#define ICMP_HEADER_LEN 8
#define ICMP_TYPE_LEN 1
#define ICMP_CODE_LEN 1
#define ICMP_CHECKSUM_LEN 2
#define ICMP_ID_LEN 2
#define ICMP_SEQNUM_LEN 2

int icmp_handle_message(ipv4 *ip);
int icmp_send_echo_reply(ipv4 *ip);

#endif /* _ICMP_H */

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
trema-0.3.9 vendor/phost/src/icmp.h
trema-0.3.8 vendor/phost/src/icmp.h
trema-0.3.7 vendor/phost/src/icmp.h
trema-0.3.6 vendor/phost/src/icmp.h
trema-0.3.5 vendor/phost/src/icmp.h
trema-0.3.4 vendor/phost/src/icmp.h
trema-0.3.3 vendor/phost/src/icmp.h
trema-0.3.2 vendor/phost/src/icmp.h
trema-0.3.1 vendor/phost/src/icmp.h
trema-0.3.0 vendor/phost/src/icmp.h
trema-0.2.8 vendor/phost/src/icmp.h
trema-0.2.7 vendor/phost/src/icmp.h
trema-0.2.6 vendor/phost/src/icmp.h
trema-0.2.5 vendor/phost/src/icmp.h
trema-0.2.4 vendor/phost/src/icmp.h
trema-0.2.3 vendor/phost/src/icmp.h
trema-0.2.2.1 vendor/phost/src/icmp.h
trema-0.2.2 vendor/phost/src/icmp.h
trema-0.2.1 vendor/phost/src/icmp.h
trema-0.2.0 vendor/phost/src/icmp.h