Sha256: ffbc37bc915727948bf1479adfbefaed4068307f5dbc7d08324bc9314894ebdb
Contents?: true
Size: 1.42 KB
Versions: 7
Compression:
Stored size: 1.42 KB
Contents
/* * ARP header definitions * * Author: Kazuya Suzuki * * Copyright (C) 2008-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 ARP_H #define ARP_H #include <net/if_arp.h> #include <stdint.h> #include "buffer.h" #include "ether.h" /** * ARP Header Specification * For protocol details, please refer RFC 826 at http://tools.ietf.org/html/rfc826 * * TODO: Move the following type definition into packet_info.h and * remove this file. */ typedef struct arp_header { uint16_t ar_hrd; uint16_t ar_pro; uint8_t ar_hln; uint8_t ar_pln; uint16_t ar_op; uint8_t sha[ ETH_ADDRLEN ]; uint32_t sip; uint8_t tha[ ETH_ADDRLEN ]; uint32_t tip; } __attribute__((packed)) arp_header_t; #endif // ARP_H /* * Local variables: * c-basic-offset: 2 * indent-tabs-mode: nil * End: */
Version data entries
7 entries across 7 versions & 1 rubygems