]> git.ipfire.org Git - thirdparty/xtables-addons.git/commitdiff
pknlusr: fix formatting of a line
authorJeremy Sowden <jeremy@azazel.net>
Thu, 22 Oct 2020 17:30:03 +0000 (19:30 +0200)
committerJan Engelhardt <jengelh@inai.de>
Thu, 22 Oct 2020 17:59:06 +0000 (19:59 +0200)
extensions/pknock/pknlusr.c

index 6153bf6de099c0d448fc96c18934c2ff8d5a6ccc..14bc44a138875b207d4d21d8c18c1bc9e840f04a 100644 (file)
@@ -75,9 +75,7 @@ int main(void)
                        perror("recvfrom()");
                        return 1;
                }
-
-       nlmsg = (struct xt_pknock_nl_msg *) (buf + sizeof(struct cn_msg) + sizeof(struct nlmsghdr));
-
+               nlmsg = (struct xt_pknock_nl_msg *)(buf + sizeof(struct cn_msg) + sizeof(struct nlmsghdr));
                ip = inet_ntop(AF_INET, &nlmsg->peer_ip, ipbuf, sizeof(ipbuf));
                printf("rule_name: %s - ip %s\n", nlmsg->rule_name, ip);