Skip to content

Commit

Permalink
fix: syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Zxilly committed Nov 27, 2024
1 parent 701c591 commit fb3dc3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static void send_verdict(const struct nf_queue *queue, const struct nf_packet *p
syslog(LOG_ERR, "failed to put nfqueue header");
goto end;
}
nfq_nlmsg_verdict_put(nlh, int(pkt->packet_id), NF_ACCEPT);
nfq_nlmsg_verdict_put(nlh, pkt->packet_id, NF_ACCEPT);

if (mark.should_set) {
struct nlattr *nest = mnl_attr_nest_start_check(nlh, SEND_BUF_LEN, NFQA_CT);
Expand Down Expand Up @@ -252,7 +252,7 @@ void handle_packet(const struct nf_queue *queue, const struct nf_packet *pkt) {
struct pkt_buff *pkt_buff = pktb_alloc(AF_INET, pkt->payload, pkt->payload_len, 0);
assert(pkt_buff != NULL);

__auto_type type;
int type;
if (use_conntrack) {
type = pkt->orig.ip_version;
set_transport_header(pkt_buff, type);
Expand Down

0 comments on commit fb3dc3b

Please sign in to comment.