Debian Codegraph @

ifconfig/system/generic.c

raw
1 /* generic.c -- generic system code for ifconfig
2 Copyright (C) 2001-2026 Free Software Foundation, Inc.
3
4 This file is part of GNU Inetutils.
5
6 GNU Inetutils is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or (at
9 your option) any later version.
10
11 GNU Inetutils is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see `http://www.gnu.org/licenses/'. */
18
19 /* Written by Marcus Brinkmann. */
20
21 #include <config.h>
22
23 #include "../ifconfig.h"
24
25 #include <attribute.h>
26
27
28 /* Output format stuff. */
29
30 const char *system_default_format;
31
32
33 /* Argument parsing stuff. */
34
35 const char *system_help;
36
37 struct argp_child system_argp_child;
38
39 int
40 system_parse_opt (struct ifconfig **ifp MAYBE_UNUSED,
41 char option MAYBE_UNUSED, char *optarg MAYBE_UNUSED)
42 {
43 return 0;
44 }
45
46 int
47 system_parse_opt_rest (struct ifconfig **ifp MAYBE_UNUSED,
48 int argc MAYBE_UNUSED, MAYBE_UNUSED char *argv[])
49 {
50 return 0;
51 }
52
53 int
54 system_preconfigure (int sfd MAYBE_UNUSED, struct ifreq *ifr MAYBE_UNUSED)
55 {
56 return 0;
57 }
58
59 int
60 system_configure (int sfd MAYBE_UNUSED,
61 struct ifreq *ifr MAYBE_UNUSED,
62 struct system_ifconfig *ifs MAYBE_UNUSED)
63 {
64 return 0;
65 }
66
67 struct if_nameindex *(*system_if_nameindex) (void) = if_nameindex;