Home
last modified time | relevance | path

Searched refs:tst_rtnl_context (Results 1 – 4 of 4) sorted by relevance

/third_party/ltp/include/
Dtst_rtnetlink.h8 struct tst_rtnl_context;
27 struct tst_rtnl_context *tst_rtnl_create_context(const char *file,
37 struct tst_rtnl_context *ctx);
43 struct tst_rtnl_context *ctx);
48 struct tst_rtnl_context *ctx);
53 int tst_rtnl_wait(struct tst_rtnl_context *ctx);
61 struct tst_rtnl_context *ctx);
66 struct tst_rtnl_context *ctx, const struct nlmsghdr *header,
74 struct tst_rtnl_context *ctx, unsigned short type, const void *data,
81 struct tst_rtnl_context *ctx, unsigned short type, const char *data);
[all …]
/third_party/ltp/lib/
Dtst_rtnetlink.c18 struct tst_rtnl_context { struct
30 struct tst_rtnl_context *ctx, size_t size) in tst_rtnl_grow_buffer() argument
56 struct tst_rtnl_context *ctx) in tst_rtnl_destroy_context()
63 struct tst_rtnl_context *tst_rtnl_create_context(const char *file, in tst_rtnl_create_context()
66 struct tst_rtnl_context *ctx; in tst_rtnl_create_context()
69 ctx = safe_malloc(file, lineno, NULL, sizeof(struct tst_rtnl_context)); in tst_rtnl_create_context()
118 struct tst_rtnl_context *ctx) in tst_rtnl_send()
156 int tst_rtnl_wait(struct tst_rtnl_context *ctx) in tst_rtnl_wait()
167 struct tst_rtnl_context *ctx) in tst_rtnl_recv()
243 struct tst_rtnl_context *ctx, const struct nlmsghdr *header, in tst_rtnl_add_message()
[all …]
Dtst_netdevice.c17 static struct tst_rtnl_context *create_request(const char *file, in create_request()
21 struct tst_rtnl_context *ctx; in create_request()
105 struct tst_rtnl_context *ctx; in tst_create_veth_pair()
164 struct tst_rtnl_context *ctx; in tst_netdev_add_device()
207 struct tst_rtnl_context *ctx; in tst_netdev_remove_device()
243 struct tst_rtnl_context *ctx; in modify_address()
324 struct tst_rtnl_context *ctx; in change_ns()
376 struct tst_rtnl_context *ctx; in modify_route()
/third_party/ltp/doc/
Dnetwork-c-api.txt292 struct tst_rtnl_context;
309 +struct tst_rtnl_context+ is an opaque rtnetlink socket with buffer for
350 - +struct tst_rtnl_context *RTNL_CREATE_CONTEXT(void)+ – Creates a new
357 - +void RTNL_DESTROY_CONTEXT(struct tst_rtnl_context *ctx)+ – Closes a
360 - +int RTNL_SEND(struct tst_rtnl_context *ctx)+ – Sends all messages waiting
365 - +int RTNL_SEND_VALIDATE(struct tst_rtnl_context *ctx)+ – Sends all messages
373 - +int RTNL_WAIT(struct tst_rtnl_context *ctx)+ – Waits until data becomes
377 - +struct tst_rtnl_message *RTNL_RECV(struct tst_rtnl_context *ctx)+ – Receives
384 - +int RTNL_CHECK_ACKS(struct tst_rtnl_context *ctx, struct tst_rtnl_message
399 - +int RTNL_ADD_MESSAGE(struct tst_rtnl_context *ctx, const struct nlmsghdr
[all …]