Files
qt6-migration-pipeline/external/tmsif/include/dds/ddsi/ddsi_nwinterfaces.h
T
2026-10-23 16:13:31 +00:00

46 lines
1.1 KiB
C

// Copyright(c) 2006 to 2023 ZettaScale Technology and others
//
// This program and the accompanying materials are made available under the
// terms of the Eclipse Public License v. 2.0 which is available at
// http://www.eclipse.org/legal/epl-2.0, or the Eclipse Distribution License
// v. 1.0 which is available at
// http://www.eclipse.org/org/documents/edl-v10.php.
//
// SPDX-License-Identifier: EPL-2.0 OR BSD-3-Clause
#ifndef DDSI_NWINTERFACES_H
#define DDSI_NWINTERFACES_H
#include <stdbool.h>
#include "dds/ddsrt/ifaddrs.h"
#include "dds/ddsrt/sockets.h"
#include "dds/ddsi/ddsi_locator.h"
#if defined (__cplusplus)
extern "C" {
#endif
struct ddsi_network_interface {
ddsi_locator_t loc; // actual interface address
ddsi_locator_t extloc; // interface address to advertise in discovery
ddsi_locator_t netmask;
uint32_t if_index;
unsigned mc_capable: 1;
unsigned mc_flaky: 1;
unsigned point_to_point: 1;
unsigned loopback: 1;
unsigned link_local: 1;
unsigned prefer_multicast: 1;
unsigned is_psmx: 1;
uint32_t allow_multicast;
int32_t priority;
char *name;
};
#if defined (__cplusplus)
}
#endif
#endif /* DDSI_NWINTERFACES_H */