.\" Automatically generated man page, do not edit .TH nozzle_open 3 2019-03-27 "kronosnet" "Kronosnet Programmer's Manual" .SH NAME nozzle_open \- create a new tap device on the system. .SH SYNOPSIS .nf .B #include .sp \fBnozzle_t nozzle_open\fP( \fBchar *\fP\fIdevname\fP, \fBsize_t \fP\fIdevname_size\fP, \fBconst char *\fP\fIupdownpath\fP ); .fi .SH DESCRIPTION .PP nozzle_open devname - pointer to device name of at least size IFNAMSIZ. if the dev strlen is 0, then the system will assign a name automatically. if a string is specified, the system will try to create a device with the specified name. NOTE: on FreeBSD the tap device names can only be tapX where X is a number from 0 to 255. On Linux such limitation does not apply. The name must be unique to the system. If an interface with the same name is already configured on the system, an error will be returned. .PP devname_size - length of the buffer provided in dev (has to be at least IFNAMSIZ). .PP updownpath - nozzle supports the typical filesystem structure to execute actions for: down.d post-down.d pre-up.d up.d in the form of: updownpath// updownpath specifies where to find those directories on the filesystem and it must be an absolute path. .SH RETURN VALUE .PP nozzle_open returns a pointer to a nozzle struct on success NULL on error and errno is set. .SH SEE ALSO .PP .nh .ad l \fInozzle_close(3), \fInozzle_set_mtu(3), \fInozzle_get_fd(3), \fInozzle_get_mtu(3), \fInozzle_reset_mtu(3), \fInozzle_set_up(3), \fInozzle_get_ips(3), \fInozzle_set_down(3), \fInozzle_reset_mac(3), \fInozzle_get_handle_by_name(3), \fInozzle_run_updown(3), \fInozzle_del_ip(3), \fInozzle_get_mac(3), \fInozzle_set_mac(3), \fInozzle_get_name_by_handle(3), \fInozzle_add_ip(3) .ad .hy .SH "COPYRIGHT" .PP Copyright (C) 2010-2019 Red Hat, Inc. All rights reserved.