pknlusr: fix formatting of a line

This commit is contained in:
Jeremy Sowden
2020-10-22 19:30:03 +02:00
committed by Jan Engelhardt
parent 20e1b669fc
commit 86112194da

View 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);