summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ip/iplink_rmnet.c7
-rw-r--r--lib/libnetlink.c3
2 files changed, 9 insertions, 1 deletions
diff --git a/ip/iplink_rmnet.c b/ip/iplink_rmnet.c
index 97e9e0f6..7912b141 100644
--- a/ip/iplink_rmnet.c
+++ b/ip/iplink_rmnet.c
@@ -31,25 +31,30 @@ static int rmnet_parse_opt(struct link_util *lu, int argc, char **argv,
{
struct ifla_rmnet_flags flags = { };
__u16 mux_id;
-
+printf(" ======= rmnet_parse_opt\n");
while (argc > 0) {
if (matches(*argv, "mux_id") == 0) {
NEXT_ARG();
if (get_u16(&mux_id, *argv, 0))
invarg("mux_id is invalid", *argv);
addattr16(n, 1024, IFLA_RMNET_MUX_ID, mux_id);
+printf(" ======= rmnet_parse_opt mux_id %hu\n", mux_id);
} else if (matches(*argv, "ingress-deaggregation") == 0) {
flags.mask = ~0;
flags.flags |= RMNET_FLAGS_INGRESS_DEAGGREGATION;
+printf(" ======= rmnet_parse_opt ingress-deaggregation\n");
} else if (matches(*argv, "ingress-map-commands") == 0) {
flags.mask = ~0;
flags.flags |= RMNET_FLAGS_INGRESS_MAP_COMMANDS;
+printf(" ======= rmnet_parse_opt ingress-map-commands\n");
} else if (matches(*argv, "ingress-map-chksumv4") == 0) {
flags.mask = ~0;
flags.flags |= RMNET_FLAGS_INGRESS_MAP_CKSUMV4;
+printf(" ======= rmnet_parse_opt ingress-map-chksumv4\n");
} else if (matches(*argv, "egress-map-chksumv4") == 0) {
flags.mask = ~0;
flags.flags |= RMNET_FLAGS_EGRESS_MAP_CKSUMV4;
+printf(" ======= rmnet_parse_opt egress-map-chksumv4\n");
} else if (matches(*argv, "help") == 0) {
explain();
return -1;
diff --git a/lib/libnetlink.c b/lib/libnetlink.c
index e02d6294..183eb693 100644
--- a/lib/libnetlink.c
+++ b/lib/libnetlink.c
@@ -931,6 +931,7 @@ static int __rtnl_talk_iov(struct rtnl_handle *rtnl, struct iovec *iov,
perror("Cannot talk to rtnetlink");
return -1;
}
+printf(" === sent msg\n");
/* change msg to use the response iov */
msg.msg_iov = &riov;
@@ -941,6 +942,7 @@ next:
status = rtnl_recvmsg(rtnl->fd, &msg, &buf);
++i;
+printf(" === recv msg returned %d\n", status);
if (status < 0)
return status;
@@ -985,6 +987,7 @@ next:
return -1;
}
+printf(" === recv msg NLMSG_ERROR %d\n", error);
if (!error) {
/* check messages from kernel */
nl_dump_ext_ack(h, errfn);