blob: 1f368aae1ee40b7cafe06147b5141beb8e027de8 [file] [log] [blame]
// Copyright 2016 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef INET6_NETIFC_H_
#define INET6_NETIFC_H_
#include <stdbool.h>
#include <zircon/compiler.h>
__BEGIN_CDECLS
// setup networking
// if interface != NULL, only use the given topological path for networking
int netifc_open(const char* interface);
// process inbound packet(s)
int netifc_poll(zx_time_t deadline);
// return nonzero if interface exists
int netifc_active(void);
// shut down networking
void netifc_close(void);
void netifc_recv(void* data, size_t len);
// send out next pending packet, and return value indicating if more are available to send
bool netifc_send_pending(void);
__END_CDECLS
#endif // INET6_NETIFC_H_