2021-11-26 03:31:05 +00:00
|
|
|
/** @file
|
2017-10-26 07:35:35 +00:00
|
|
|
* Definitions of IPv4 address-and-mask structure, which is what an
|
|
|
|
* FT_IPV4 value is (even if there's no mask in a packet, those
|
|
|
|
* values can be compared against an address+mask in a filter
|
|
|
|
* expression).
|
1999-11-15 06:32:38 +00:00
|
|
|
*
|
2001-11-13 23:55:44 +00:00
|
|
|
* Gilbert Ramirez <gram@alumni.rice.edu>
|
1999-11-15 06:32:38 +00:00
|
|
|
*
|
2006-05-21 05:12:17 +00:00
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
1999-11-15 06:32:38 +00:00
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-02-08 16:59:17 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
1999-11-15 06:32:38 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __IPV4_H__
|
|
|
|
#define __IPV4_H__
|
|
|
|
|
2017-10-30 02:10:46 +00:00
|
|
|
#include <wsutil/inet_ipv4.h>
|
2013-03-01 23:53:11 +00:00
|
|
|
|
1999-11-15 06:32:38 +00:00
|
|
|
typedef struct {
|
|
|
|
guint32 addr; /* stored in host order */
|
|
|
|
guint32 nmask; /* stored in host order */
|
2016-01-03 23:05:13 +00:00
|
|
|
} ipv4_addr_and_mask;
|
1999-11-15 06:32:38 +00:00
|
|
|
|
|
|
|
#endif
|