1NOZZLE_RUN_UPDOWN(3)     Kronosnet Programmer's Manual    NOZZLE_RUN_UPDOWN(3)
2
3
4

NAME

6       nozzle_run_updown  -  execute  updown commands associated with a nozzle
7       device.
8
9

SYNOPSIS

11       #include <libnozzle.h>
12
13       int nozzle_run_updown(
14           const nozzle_t  nozzle,
15           uint8_t         action,
16           char          **exec_string
17       );
18

DESCRIPTION

20       nozzle_run_updown
21
22       nozzle - pointer to the nozzle struct
23
24       action - pre-up.d / up.d / down.d / post-down.d (see defines above)
25
26       exec_string - pointers  to  string  to  record  executing  action  std‐
27       out/stderr.  The string is malloc'ed, the caller needs to free the buf‐
28       fer. If the script generates no output this string might be NULL.
29
30       It is the application responsibility to call helper scripts  before  or
31       after creating/destroying interfaces or IP addresses.
32

RETURN VALUE

34       0  on  success -1 on error and errno is set (sanity checks and internal
35       calls. -2 on error from executing the shell scripts, and  no  errno  is
36       set.
37

SEE ALSO

39       nozzle_close(3), nozzle_set_mtu(3), nozzle_get_fd(3),
40       nozzle_get_mtu(3), nozzle_reset_mtu(3), nozzle_set_up(3),
41       nozzle_get_ips(3), nozzle_set_down(3), nozzle_reset_mac(3),
42       nozzle_get_handle_by_name(3), nozzle_open(3), nozzle_del_ip(3),
43       nozzle_get_mac(3), nozzle_set_mac(3), nozzle_get_name_by_handle(3),
44       nozzle_add_ip(3)
45
47       Copyright (C) 2010-2021 Red Hat, Inc. All rights reserved.
48
49
50
51kronosnet                         2021-11-15              NOZZLE_RUN_UPDOWN(3)
Impressum