Debian Codegraph @

src/net.h

raw symbols SCIP
1 /* SPDX-License-Identifier: BSD-2-Clause */
2 /*
3 * Copyright (C) 2020-2025 Linutronix GmbH
4 * Author Kurt Kanzenbach <[email protected]>
5 */
6
7 #ifndef _NET_H_
8 #define _NET_H_
9
10 #include <stddef.h>
11
12 #include <sys/socket.h>
13
14 #include "net_def.h"
15
16 int create_tsn_high_socket(void);
17 int create_tsn_low_socket(void);
18 int create_rtc_socket(void);
19 int create_rta_socket(void);
20 int create_dcp_socket(void);
21 int create_lldp_socket(void);
22 int create_generic_l2_socket(void);
23 int create_udp_socket(const char *udp_destination, const char *udp_source, const char *udp_port,
24 int socket_priority, struct sockaddr_storage *destination);
25 int create_udp_cl_socket(const char *udp_destination, const char *udp_port,
26 struct sockaddr_storage *destination);
27 int get_interface_mac_address(const char *if_name, unsigned char *mac, size_t len);
28 int get_interface_link_speed(const char *if_name, uint32_t *speed);
29
30 #endif /* _NET_H_ */