From 20b80b32dc4922c77c2b0619fc75a25f3066eace Mon Sep 17 00:00:00 2001 From: Vadim Vetrov Date: Mon, 22 Jul 2024 09:57:51 +0300 Subject: [PATCH] Change logs order --- youtubeUnblock.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/youtubeUnblock.c b/youtubeUnblock.c index 777d626..a3203ff 100644 --- a/youtubeUnblock.c +++ b/youtubeUnblock.c @@ -636,14 +636,13 @@ static int queue_cb(const struct nlmsghdr *nlh, void *data) { } } + return process_packet(packet); } int main(int argc, const char *argv[]) { -#ifdef USE_GSO - printf("GSO is enabled!\n"); -#endif + if (parse_args(argc, argv)) { perror("Unable to parse args"); exit(EXIT_FAILURE); @@ -682,6 +681,8 @@ int main(int argc, const char *argv[]) nfq_nlmsg_cfg_put_params(nlh, NFQNL_COPY_PACKET, 0xffff); #ifdef USE_GSO + printf("GSO is enabled!\n"); + mnl_attr_put_u32(nlh, NFQA_CFG_FLAGS, htonl(NFQA_CFG_F_GSO)); mnl_attr_put_u32(nlh, NFQA_CFG_MASK, htonl(NFQA_CFG_F_GSO)); #endif