Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
nozzle_add_ip(3)	 Kronosnet Programmer's	Manual	      nozzle_add_ip(3)

NAME
       nozzle_add_ip - equivalent of ip	addr or	ifconfig <ipaddress/prefix>

SYNOPSIS
       #include	<libknet.h>

       int nozzle_add_ip(
	   nozzle_t	 nozzle,
	   const char	*ipaddr,
	   const char	*prefix
       );

DESCRIPTION
       nozzle_add_ip

       nozzle -	pointer	to the nozzle struct

       ipaddr  -  string  containing either an IPv4 or an IPv6 address.	Please
       note that Linux will automatically remove any IPv6  addresses  from  an
       interface  with	MTU  < 1280. libnozzle will cache those	IPs and	re-in-
       state them when MTU is >	1280. MTU must be set via  nozzle_set_mtu  for
       IPv6 to be re-instated.

       prefix -	24, 64 or any valid network prefix for the requested address.

RETURN VALUE
       0 on success -1 on error	and errno is set.

SEE ALSO
       nozzle_close(3),	nozzle_set_mtu(3), nozzle_get_fd(3),
       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
       nozzle_get_ips(3), nozzle_set_down(3), nozzle_reset_mac(3),
       nozzle_get_handle_by_name(3), nozzle_run_updown(3), nozzle_open(3),
       nozzle_del_ip(3), nozzle_get_mac(3), nozzle_set_mac(3),
       nozzle_get_name_by_handle(3),

COPYRIGHT
       Copyright (C) 2010-2020 Red Hat,	Inc. All rights	reserved.

kronosnet			  2020-04-23		      nozzle_add_ip(3)

NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | SEE ALSO | COPYRIGHT

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=nozzle_add_ip&sektion=3&manpath=FreeBSD+12.2-RELEASE+and+Ports>

home | help