Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
folium-app
GitHub Repository: folium-app/Folium
Path: blob/a-new-beginning/SharedDependencies/Sources/libslirp/include/main.h
2 views
1
/* SPDX-License-Identifier: BSD-3-Clause */
2
/*
3
* Copyright (c) 1995 Danny Gasparovski.
4
*/
5
6
#ifndef SLIRP_MAIN_H
7
#define SLIRP_MAIN_H
8
9
#include "libslirp.h"
10
11
/* The current guest virtual time */
12
extern unsigned curtime;
13
/* Always equal to INADDR_LOOPBACK, in network order */
14
extern struct in_addr loopback_addr;
15
/* Always equal to IN_CLASSA_NET, in network order */
16
extern unsigned long loopback_mask;
17
18
/* Send a packet to the guest */
19
int if_encap(Slirp *slirp, struct mbuf *ifm);
20
/* Send a frame to the guest. Flags are passed to the send() call */
21
slirp_ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
22
23
#endif
24
25