Hallo, dies ist ein Test.
PWD: /www/data-lst1/unixsoft/unixsoft/kaempfer/.public_html
Running in File Mode
Relative path: ./../../../../../../usr/include/inet/netlink_generic.h
Real path: /usr/include/inet/netlink_generic.h
Zurück
/* * * Copyright (C) 2014 Daniele Di Proietto, Luigi Rizzo, * Universita` di Pisa. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. */ /* * $FreeBSD$ */ /* * Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved. */ #ifndef _NETLINK_GENERIC_H #define _NETLINK_GENERIC_H #ifdef __cplusplus extern "C" { #endif #include <sys/types.h> #include <sys/list.h> #define GENLMSG_DEFAULT_SIZE (NLMSG_DEFAULT_SIZE - GENL_HDRLEN) #define GENL_NAMESIZE 16 #define GENL_CMD_CAP_DO 0x02 #define GENL_CMD_CAP_DUMP 0x04 #define GENL_CMD_CAP_HASPOL 0x08 typedef struct nlg_multicast_group_s { char nlgm_gname[GENL_NAMESIZE]; } nlg_multicast_group_t; typedef struct nlg_cmd_op_s { uint8_t nlg_cmd_cmd; const struct nla_policy *nlg_cmd_policy; int (*nlg_cmd_doit)(nl_conn_t *, mblk_t *, nlattr_t **); mblk_t *(*nlg_cmd_dumpit)(nl_conn_t *, struct nlmsghdr *, int *); uint8_t nlg_cmd_flags; } nlg_cmd_op_t; typedef struct nlg_family_s { unsigned int nlgf_id; unsigned int nlgf_hdrsize; char nlgf_name[GENL_NAMESIZE]; unsigned int nlgf_version; unsigned int nlgf_maxattr; nlg_cmd_op_t *nlgf_cmd_ops; unsigned int nlgf_num_cmd_ops; nlg_multicast_group_t *nlgf_mcgrps; unsigned int nlgf_num_mcgrps; unsigned int nlgf_mcgrp_offset; list_node_t nlgf_next; } nlg_family_t; extern int genl_register_family(nlg_family_t *); extern void genlmsg_end(mblk_t *__mp, struct nlmsghdr *); extern struct nlmsghdr *genlmsg_put(mblk_t *, uint32_t, uint32_t, nlg_family_t *, int, uint8_t); #ifdef __cplusplus } #endif #endif /* _NETLINK_GENERIC_H */