Sha256: 2b910958da47fe4afab3e38a7c7f89fb13920974fb61fef6acdcb1cc58df2ee9
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
/* * IPv4 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 IPV4_H #define IPV4_H #include <netinet/ip.h> #include "buffer.h" typedef struct iphdr ipv4_header_t; #define IPV4_ADDRLEN 4 #define IPV4_IS_CLASSDE( _addr ) ( ( ( _addr ) & 0xe0000000UL ) == 0xe0000000UL ) #define IPV4_IS_LOOPBACK( _addr ) ( ( ( _addr ) & 0xffffff00UL ) == 0x7f000000UL ) #define IPV4_IS_LIMITEDBC( _addr ) ( ( _addr ) == 0xffffffffUL ) #endif // IPV4_H /* * Local variables: * c-basic-offset: 2 * indent-tabs-mode: nil * End: */
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
trema-0.1.3.2 | src/lib/ipv4.h |
trema-0.1.3.1 | src/lib/ipv4.h |
trema-0.1.3 | src/lib/ipv4.h |