Lines Matching refs:s_addr
52 if (cs->fw.ip.src.s_addr != 0) { in nft_ipv4_add()
55 &cs->fw.ip.src.s_addr, &cs->fw.ip.smsk.s_addr, in nft_ipv4_add()
58 if (cs->fw.ip.dst.s_addr != 0) { in nft_ipv4_add()
61 &cs->fw.ip.dst.s_addr, &cs->fw.ip.dmsk.s_addr, in nft_ipv4_add()
105 if (a->fw.ip.src.s_addr != b->fw.ip.src.s_addr in nft_ipv4_is_same()
106 || a->fw.ip.dst.s_addr != b->fw.ip.dst.s_addr in nft_ipv4_is_same()
107 || a->fw.ip.smsk.s_addr != b->fw.ip.smsk.s_addr in nft_ipv4_is_same()
108 || a->fw.ip.dmsk.s_addr != b->fw.ip.dmsk.s_addr in nft_ipv4_is_same()
145 .s_addr = mask, in mask_to_str()
178 mask->s_addr = ctx->bitwise.mask[0]; in parse_mask_ipv4()
192 cs->fw.ip.src.s_addr = addr.s_addr; in nft_ipv4_parse_payload()
197 cs->fw.ip.smsk.s_addr = 0xffffffff; in nft_ipv4_parse_payload()
205 cs->fw.ip.dst.s_addr = addr.s_addr; in nft_ipv4_parse_payload()
210 cs->fw.ip.dmsk.s_addr = 0xffffffff; in nft_ipv4_parse_payload()
259 if (cs->fw.ip.smsk.s_addr == 0L && !(format & FMT_NUMERIC)) in print_ipv4_addr()
271 if (cs->fw.ip.dmsk.s_addr == 0L && !(format & FMT_NUMERIC)) in print_ipv4_addr()
328 if (!mask && !invert && !addr->s_addr) in save_ipv4_addr()
349 save_ipv4_addr('s', &cs->fw.ip.src, cs->fw.ip.smsk.s_addr, in nft_ipv4_save_firewall()
351 save_ipv4_addr('d', &cs->fw.ip.dst, cs->fw.ip.dmsk.s_addr, in nft_ipv4_save_firewall()
473 if (cs->fw.ip.src.s_addr != 0) { in nft_ipv4_xlate()
479 if (cs->fw.ip.dst.s_addr != 0) { in nft_ipv4_xlate()