mirror of
https://github.com/systemd/systemd.git
synced 2024-12-15 05:03:34 +08:00
sd-rtnl: always include linux/rtnetlink.h
This commit is contained in:
parent
0bfedf143c
commit
818dc5e72a
@ -24,7 +24,6 @@
|
||||
#include <net/if.h>
|
||||
#include <asm/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <stdbool.h>
|
||||
@ -232,6 +231,8 @@ int sd_rtnl_message_new_addr(uint16_t nlmsg_type, int index, unsigned char famil
|
||||
|
||||
(*ret)->hdr->nlmsg_len = NLMSG_LENGTH(sizeof(struct ifaddrmsg));
|
||||
(*ret)->hdr->nlmsg_type = nlmsg_type;
|
||||
if (nlmsg_type == RTM_GETADDR && family == AF_INET)
|
||||
(*ret)->hdr->nlmsg_flags |= NLM_F_DUMP;
|
||||
|
||||
ifa = NLMSG_DATA((*ret)->hdr);
|
||||
|
||||
|
@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <netinet/ether.h>
|
||||
|
||||
#include "sd-rtnl.h"
|
||||
|
@ -19,7 +19,6 @@
|
||||
along with systemd; If not, see <http://www.gnu.org/licenses/>.
|
||||
***/
|
||||
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <netinet/ether.h>
|
||||
|
||||
#include "util.h"
|
||||
|
@ -22,7 +22,6 @@
|
||||
#pragma once
|
||||
|
||||
#include <arpa/inet.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
|
||||
#include "sd-event.h"
|
||||
#include "sd-rtnl.h"
|
||||
|
@ -40,7 +40,6 @@
|
||||
#include <sys/un.h>
|
||||
#include <sys/socket.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
#include <sys/eventfd.h>
|
||||
#include <net/if.h>
|
||||
#include <linux/veth.h>
|
||||
|
@ -25,6 +25,7 @@
|
||||
#include <inttypes.h>
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <linux/rtnetlink.h>
|
||||
|
||||
#include "sd-event.h"
|
||||
#include "_sd-common.h"
|
||||
@ -71,12 +72,7 @@ int sd_rtnl_message_new_addr(uint16_t msg_type, int index, unsigned char family,
|
||||
sd_rtnl_message **ret);
|
||||
int sd_rtnl_message_new_route(uint16_t nlmsg_type, unsigned char rtm_family,
|
||||
sd_rtnl_message **ret);
|
||||
/*
|
||||
unsigned char rtm_dst_len, unsigned char rtm_src_len,
|
||||
unsigned char rtm_tos, unsigned char rtm_table,
|
||||
unsigned char rtm_scope, unsigned char rtm_protocol,
|
||||
unsigned char rtm_type, unsigned flags, sd_rtnl_message **ret);
|
||||
*/
|
||||
|
||||
sd_rtnl_message *sd_rtnl_message_ref(sd_rtnl_message *m);
|
||||
sd_rtnl_message *sd_rtnl_message_unref(sd_rtnl_message *m);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user