Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions src/mctp.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,4 +109,28 @@ enum {
#define RTNLGRP_MCTP_IFADDR 34
#endif

#ifndef SIOCMCTPALLOCTAG
#define SIOCMCTPALLOCTAG (SIOCPROTOPRIVATE + 0)
#define SIOCMCTPDROPTAG (SIOCPROTOPRIVATE + 1)

struct mctp_ioc_tag_ctl {
mctp_eid_t peer_addr;
__u8 tag;
__u16 flags;
};
#endif

#ifndef SIOCMCTPALLOCTAG2
#define SIOCMCTPALLOCTAG2 (SIOCPROTOPRIVATE + 2)
#define SIOCMCTPDROPTAG2 (SIOCPROTOPRIVATE + 3)

struct mctp_ioc_tag_ctl2 {
unsigned int net;
mctp_eid_t peer_addr;
mctp_eid_t local_addr;
__u16 flags;
__u8 tag;
};
#endif

#endif /* _MCTP_H */
1 change: 1 addition & 0 deletions tests/mctp-ops-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <sys/socket.h>
#include <sys/un.h>

#include <linux/if.h>
#include <linux/netlink.h>

#include "mctp-ops.h"
Expand Down
Loading