X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/f33655defbdef7570c05d258ba8b117a58de0487..ee882f766d3173ed8ffb6e52b06749c10832f1bf:/projects/stargazer/plugins/capture/ipq_linux/libipq.c diff --git a/projects/stargazer/plugins/capture/ipq_linux/libipq.c b/projects/stargazer/plugins/capture/ipq_linux/libipq.c index a7ed5745..d0eb33b3 100644 --- a/projects/stargazer/plugins/capture/ipq_linux/libipq.c +++ b/projects/stargazer/plugins/capture/ipq_linux/libipq.c @@ -323,13 +323,6 @@ int ipq_message_type(const unsigned char *buf) return((struct nlmsghdr*)buf)->nlmsg_type; } //----------------------------------------------------------------------------- -int ipq_get_msgerr(const unsigned char *buf) -{ - struct nlmsghdr *h = (struct nlmsghdr *)buf; - struct nlmsgerr *err = (struct nlmsgerr*)NLMSG_DATA(h); - return -err->error; -} -//----------------------------------------------------------------------------- ipq_packet_msg_t *ipq_get_packet(const unsigned char *buf) { return(ipq_packet_msg_t *)(NLMSG_DATA((struct nlmsghdr *)(buf))); @@ -380,12 +373,6 @@ int ipq_set_verdict(const struct ipq_handle *h, return ipq_netlink_sendmsg(h, &msg, 0); } //----------------------------------------------------------------------------- -/* Not implemented yet */ -int ipq_ctl(const struct ipq_handle __attribute__((unused)) * handle, int __attribute__((unused)) request, ...) -{ - return 1; -} -//----------------------------------------------------------------------------- char *ipq_errstr(void) { return ipq_strerror(ipq_errno);