id
int64
1
722k
file_path
stringlengths
8
177
funcs
stringlengths
1
35.8M
201
./sleepd/src/pwrevents/sawmill_logger.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
202
./sleepd/src/pwrevents/shutdown.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
203
./sleepd/src/utils/timesaver.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
204
./sleepd/src/utils/timersource.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
205
./sleepd/src/utils/sysfs.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
206
./sleepd/src/utils/lunaservice_utils.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
207
./sleepd/src/utils/logging.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
208
./sleepd/src/utils/init.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
209
./sleepd/src/alarms/timeout_alarm.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
210
./sleepd/src/alarms/smartsql.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
211
./sleepd/src/alarms/alarm.c
/* @@@LICENSE * * Copyright (c) 2011-2012 Hewlett-Packard Development Company, L.P. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unl...
212
./ssh4py/src/channel.c
/* * channel.c * * Copyright (C) 2005 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
213
./ssh4py/src/sftp.c
/* * sftp.c * * Copyright (C) 2005 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Li...
214
./ssh4py/src/session.c
/* * session.c * * Copyright (C) 2005 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the...
215
./ssh4py/src/listener.c
/* * listener.c * * Copyright (C) 2006 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of th...
216
./ssh4py/src/sftphandle.c
/* * sftphandle.c * * Copyright (C) 2005 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of ...
217
./ssh4py/src/ssh2.c
/* * ssh.c * * Copyright (C) 2005 Keyphrene.com * Copyright (C) 2010-2011 Sebastian Noack * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the Lic...
218
./objective-zip/MiniZip/ioapi.c
/* ioapi.c -- IO base function header for compress/uncompress .zip files using zlib + zip or unzip API Version 1.01e, February 12th, 2005 Copyright (C) 1998-2005 Gilles Vollant */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "zlib.h" #include "ioapi.h" /* I've found an old Unix (a...
219
./objective-zip/MiniZip/unzip.c
/* unzip.c -- IO for uncompress .zip files using zlib Version 1.01e, February 12th, 2005 Copyright (C) 1998-2005 Gilles Vollant Read unzip.h for more info */ /* Decryption code comes from crypt.c by Info-ZIP but has been greatly reduced in terms of compatibility with older software. The following is from th...
220
./objective-zip/MiniZip/zip.c
/* zip.c -- IO on .zip files using zlib Version 1.01e, February 12th, 2005 27 Dec 2004 Rolf Kalbermatter Modification to zipOpen2 to support globalComment retrieval. Copyright (C) 1998-2005 Gilles Vollant Read zip.h for more info */ #define NOCRYPT #define NOUNCRYPT #include <stdio.h> #include <stdl...
221
./objective-zip/MiniZip/mztools.c
/* Additional tools for Minizip Code: Xavier Roche '2004 License: Same as ZLIB (www.gzip.org) */ /* Code */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "zlib.h" #include "unzip.h" #include "mztools.h" #define READ_8(adr) ((unsigned char)*(adr)) #define READ_16(adr) ( READ_8(adr) | (READ...
222
./osx-keychain-java/src/c/com_mcdermottroe_apple_OSXKeychain.c
/* * Copyright (c) 2011, Conor McDermottroe * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of co...
223
./osx-keychain-java/src/c/codegen/generate_enums.c
/* * Copyright (c) 2011, Conor McDermottroe * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of co...
224
./osx-keychain-java/test/c/test.c
/* * Copyright (c) 2011, Conor McDermottroe * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of co...
225
./osx-keychain-java/test/c/fakejni.c
/* * Copyright (c) 2011, Conor McDermottroe * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * - Redistributions of source code must retain the above copyright notice, * this list of co...
226
./readme/mod.c
// ╨▐╕─╕├╬─╝■ #include<stdio.h> int main() { //│┬╦½╠φ╝╙╡─╫ó╩═ printf("Hello World!\n"); return 0; } // ═⌡═⌠╨▐╕─
227
./readme/del.c
// ╔╛│²╕├╬─╝■ #include<stdio.h> int main() { printf("Hello World!\n"); return 0; } // ═⌡═⌠╨▐╕─
228
./readme/wangwang.c
// ═⌡═⌠╘÷╝╙╕├╬─╝■ #include<stdio.h> int main() { printf("Hello World!\n"); return 0; } // #include<stdio.h> int main() { printf("Hello World!\n"); return 0; }
229
./pidgin-gpg/src/pidgin-gpg.c
/* * Pidgin - GPG Pidgin Plugin * * Copyright (C) 2010, Aerol <rectifier04@gmail.com> * Alexander Murauer <segler_alex@web.de> * * This program is free software: you can redistribut...
230
./android_firewall/external/iptables/utils/nfnl_osf.c
/* * Copyright (c) 2005 Evgeniy Polyakov <johnpol@2ka.mxt.ru> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version...
231
./android_firewall/external/iptables/libiptc/libip6tc.c
/* Library which manipulates firewall rules. Version 0.1. */ /* Architecture of firewall rules is as follows: * * Chains go INPUT, FORWARD, OUTPUT then user chains. * Each user chain starts with an ERROR node. * Every chain ends with an unconditional jump: a RETURN for user chains, * and a POLICY for built-ins. ...
232
./android_firewall/external/iptables/libiptc/libiptc.c
/* Library which manipulates firewall rules. Version $Revision$ */ /* Architecture of firewall rules is as follows: * * Chains go INPUT, FORWARD, OUTPUT then user chains. * Each user chain starts with an ERROR node. * Every chain ends with an unconditional jump: a RETURN for user chains, * and a POLICY for built...
233
./android_firewall/external/iptables/libiptc/libip4tc.c
/* Library which manipulates firewall rules. Version 0.1. */ /* Architecture of firewall rules is as follows: * * Chains go INPUT, FORWARD, OUTPUT then user chains. * Each user chain starts with an ERROR node. * Every chain ends with an unconditional jump: a RETURN for user chains, * and a POLICY for built-ins. ...
234
./android_firewall/external/iptables/libipq/libipq.c
/* * libipq.c * * IPQ userspace library. * * Please note that this library is still developmental, and there may * be some API changes. * * Author: James Morris <jmorris@intercode.com.au> * * 07-11-2001 Modified by Fernando Anton to add support for IPv6. * * Copyright (c) 2000-2001 Netfilter Core Team * *...
235
./android_firewall/external/iptables/extensions/libxt_connlimit.c
#include <stdio.h> #include <netdb.h> #include <string.h> #include <xtables.h> #include <linux/netfilter/xt_connlimit.h> enum { O_UPTO = 0, O_ABOVE, O_MASK, O_SADDR, O_DADDR, F_UPTO = 1 << O_UPTO, F_ABOVE = 1 << O_ABOVE, F_MASK = 1 << O_MASK, F_SADDR = 1 << O_SADDR, F_DADDR = 1 << O_DADDR, }; static void ...
236
./android_firewall/external/iptables/extensions/libxt_connmark.c
/* Shared library add-on to iptables to add connmark matching support. * * (C) 2002,2004 MARA Systems AB <http://www.marasystems.com> * by Henrik Nordstrom <hno@marasystems.com> * * Version 1.1 * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Publi...
237
./android_firewall/external/iptables/extensions/libxt_TCPOPTSTRIP.c
/* * Shared library add-on to iptables to add TCPOPTSTRIP target support. * Copyright (c) 2007 Sven Schnelle <svens@bitebene.org> * Copyright © CC Computer Consultants GmbH, 2007 * Jan Engelhardt <jengelh@computergmbh.de> */ #include <stdio.h> #include <string.h> #include <xtables.h> #include <netinet/tcp.h> #inc...
238
./android_firewall/external/iptables/extensions/libipt_MIRROR.c
/* Shared library add-on to iptables to add MIRROR target support. */ #include <xtables.h> static struct xtables_target mirror_tg_reg = { .name = "MIRROR", .version = XTABLES_VERSION, .family = NFPROTO_IPV4, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), }; void _init(void) { xtables_register_target(&mir...
239
./android_firewall/external/iptables/extensions/libxt_SET.c
/* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> * Patrick Schaaf <bof@bof.de> * Martin Josefsson <gandalf@wlug.westbo.se> * Copyright (C) 2003-2010 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> * * This program is free software; you can redistribute it and/...
240
./android_firewall/external/iptables/extensions/libxt_hashlimit.c
/* ip6tables match extension for limiting packets per destination * * (C) 2003-2004 by Harald Welte <laforge@netfilter.org> * * Development of this code was funded by Astaro AG, http://www.astaro.com/ * * Based on ipt_limit.c by * Jérôme de Vivie <devivie@info.enserb.u-bordeaux.fr> * Hervé Eychenne <rv@...
241
./android_firewall/external/iptables/extensions/libxt_cpu.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_cpu.h> enum { O_CPU = 0, }; static void cpu_help(void) { printf( "cpu match options:\n" "[!] --cpu number Match CPU number\n"); } static const struct xt_option_entry cpu_opts[] = { {.name = "cpu", .id = O_CPU, .type = XTTYPE_UINT32, .flags =...
242
./android_firewall/external/iptables/extensions/libip6t_HL.c
/* * IPv6 Hop Limit Target module * Maciej Soltysiak <solt@dns.toxicfilms.tv> * Based on HW's ttl target * This program is distributed under the terms of GNU GPL */ #include <stdio.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_HL.h> enum { O_HL_SET = 0, O_HL_INC, O_HL_DEC, F_HL_SET = 1 << O_HL_S...
243
./android_firewall/external/iptables/extensions/libxt_limit.c
/* Shared library add-on to iptables to add limit support. * * Jérôme de Vivie <devivie@info.enserb.u-bordeaux.fr> * Hervé Eychenne <rv@wallfire.org> */ #define _BSD_SOURCE 1 #define _ISOC99_SOURCE 1 #include <math.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <xtables.h> #include <...
244
./android_firewall/external/iptables/extensions/libip6t_frag.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_frag.h> enum { O_FRAGID = 0, O_FRAGLEN, O_FRAGRES, O_FRAGFIRST, O_FRAGMORE, O_FRAGLAST, F_FRAGMORE = 1 << O_FRAGMORE, F_FRAGLAST = 1 << O_FRAGLAST, }; static void frag_help(void) { printf( "frag match options:\n" "[!] --fragid id[:id...
245
./android_firewall/external/iptables/extensions/libxt_physdev.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_physdev.h> enum { O_PHYSDEV_IN = 0, O_PHYSDEV_OUT, O_PHYSDEV_IS_IN, O_PHYSDEV_IS_OUT, O_PHYSDEV_IS_BRIDGED, }; static void physdev_help(void) { printf( "physdev match options:\n" " [!] --physdev-in inputname[+] bridge port name ([+] for wildc...
246
./android_firewall/external/iptables/extensions/libxt_CT.c
#include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter/nf_conntrack_common.h> #include <linux/netfilter/xt_CT.h> static void ct_help(void) { printf( "CT target options:\n" " --notrack Don't track connection\n" " --helper name Use conntrack helper 'name' for connection\n" " --ctevent...
247
./android_firewall/external/iptables/extensions/libipt_LOG.c
#include <stdio.h> #include <string.h> #include <syslog.h> #include <xtables.h> #include <linux/netfilter_ipv4/ipt_LOG.h> #define LOG_DEFAULT_LEVEL LOG_WARNING #ifndef IPT_LOG_UID /* Old kernel */ #define IPT_LOG_UID 0x08 /* Log UID owning local socket */ #undef IPT_LOG_MASK #define IPT_LOG_MASK 0x0f #endif enum { ...
248
./android_firewall/external/iptables/extensions/libxt_length.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_length.h> enum { O_LENGTH = 0, }; static void length_help(void) { printf( "length match options:\n" "[!] --length length[:length] Match packet length against value or range\n" " of values (inclusive)\n"); } sta...
249
./android_firewall/external/iptables/extensions/libxt_u32.c
/* Shared library add-on to iptables to add u32 matching, * generalized matching on values found at packet offsets * * Detailed doc is in the kernel module source * net/netfilter/xt_u32.c * * (C) 2002 by Don Cohen <don-netf@isis.cs3-inc.com> * Released under the terms of GNU GPL v2 * * Copyright © CC Computer...
250
./android_firewall/external/iptables/extensions/libxt_statistic.c
#include <math.h> #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter/xt_statistic.h> enum { O_MODE = 0, O_PROBABILITY, O_EVERY, O_PACKET, F_PROBABILITY = 1 << O_PROBABILITY, F_EVERY = 1 << O_EVERY, F_PACKET = 1 << O_PACKET, }; static void statistic_help(void) { pr...
251
./android_firewall/external/iptables/extensions/libxt_TCPMSS.c
/* Shared library add-on to iptables to add TCPMSS target support. * * Copyright (c) 2000 Marc Boucher */ #include "config.h" #include <stdio.h> #include <xtables.h> #include <netinet/ip.h> #include <linux/netfilter/xt_TCPMSS.h> enum { O_SET_MSS = 0, O_CLAMP_MSS, }; struct mssinfo { struct xt_entry_target t; st...
252
./android_firewall/external/iptables/extensions/libxt_TOS.c
/* * Shared library add-on to iptables to add TOS target support * * Copyright © CC Computer Consultants GmbH, 2007 * Contact: Jan Engelhardt <jengelh@medozas.de> */ #include <getopt.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <netinet/in.h> #include <xtables.h> #i...
253
./android_firewall/external/iptables/extensions/libxt_owner.c
/* * libxt_owner - iptables addon for xt_owner * * Copyright © CC Computer Consultants GmbH, 2007 - 2008 * Jan Engelhardt <jengelh@computergmbh.de> */ #include <grp.h> #include <pwd.h> #include <stdbool.h> #include <stdio.h> #include <limits.h> #include <xtables.h> #include <linux/netfilter/xt_owner.h> /* match ...
254
./android_firewall/external/iptables/extensions/libipt_ULOG.c
/* Shared library add-on to iptables to add ULOG support. * * (C) 2000 by Harald Welte <laforge@gnumonks.org> * * multipart netlink support based on ideas by Sebastian Zander * <zander@fokus.gmd.de> * * This software is released under the terms of GNU GPL * * libipt_ULOG.c,v 1.7 2001/01/30 11:55:02 la...
255
./android_firewall/external/iptables/extensions/libipt_NETMAP.c
/* Shared library add-on to iptables to add static NAT support. Author: Svenning Soerensen <svenning@post5.tele.dk> */ #include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <getopt.h> #include <xtables.h> #include <net/netfilter/nf_nat.h> #define MODULENAME "NETMAP" enum { O_TO = ...
256
./android_firewall/external/iptables/extensions/libip6t_eui64.c
/* Shared library add-on to ip6tables to add EUI64 address checking support. */ #include <xtables.h> static struct xtables_match eui64_mt6_reg = { .name = "eui64", .version = XTABLES_VERSION, .family = NFPROTO_IPV6, .size = XT_ALIGN(sizeof(int)), .userspacesize = XT_ALIGN(sizeof(int)), }; void _init(void) { ...
257
./android_firewall/external/iptables/extensions/libxt_CLASSIFY.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_CLASSIFY.h> #include <linux/pkt_sched.h> enum { O_SET_CLASS = 0, }; static void CLASSIFY_help(void) { printf( "CLASSIFY target options:\n" "--set-class MAJOR:MINOR Set skb->priority value (always hexadecimal!)\n"); } static const struct xt_opt...
258
./android_firewall/external/iptables/extensions/libip6t_REJECT.c
/* Shared library add-on to ip6tables to add customized REJECT support. * * (C) 2000 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> * * ported to IPv6 by Harald Welte <laforge@gnumonks.org> * */ #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_REJECT.h> struct reject_...
259
./android_firewall/external/iptables/extensions/libxt_LED.c
/* * libxt_LED.c - shared library add-on to iptables to add customized LED * trigger support. * * (C) 2008 Adam Nielsen <a.nielsen@shikadi.net> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published b...
260
./android_firewall/external/iptables/extensions/libip6t_icmp6.c
#include <stdint.h> #include <stdio.h> #include <string.h> #include <xtables.h> #include <limits.h> /* INT_MAX in ip6_tables.h */ #include <linux/netfilter_ipv6/ip6_tables.h> enum { O_ICMPV6_TYPE = 0, }; struct icmpv6_names { const char *name; uint8_t type; uint8_t code_min, code_max; }; static const struct icmp...
261
./android_firewall/external/iptables/extensions/libxt_sctp.c
/* Shared library add-on to iptables for SCTP matching * * (C) 2003 by Harald Welte <laforge@gnumonks.org> * * This program is distributed under the terms of GNU GPL v2, 1991 * * libipt_ecn.c borrowed heavily from libipt_dscp.c * */ #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h>...
262
./android_firewall/external/iptables/extensions/libxt_policy.c
#include <stdbool.h> #include <stdint.h> #include <stdio.h> #include <string.h> #include <netdb.h> #include <xtables.h> #include <linux/netfilter/xt_policy.h> enum { O_DIRECTION = 0, O_POLICY, O_STRICT, O_REQID, O_SPI, O_PROTO, O_MODE, O_TUNNELSRC, O_TUNNELDST, O_NEXT, F_STRICT = 1 << O_STRICT, }; static v...
263
./android_firewall/external/iptables/extensions/libxt_NFQUEUE.c
/* Shared library add-on to iptables for NFQ * * (C) 2005 by Harald Welte <laforge@netfilter.org> * * This program is distributed under the terms of GNU GPL v2, 1991 * */ #include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_NFQUEUE.h> enum { O_QUEUE_NUM = 0, O_QUEUE_BALANCE, O_QUEUE_BYPASS, F...
264
./android_firewall/external/iptables/extensions/libxt_helper.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_helper.h> enum { O_HELPER = 0, }; static void helper_help(void) { printf( "helper match options:\n" "[!] --helper string Match helper identified by string\n"); } static const struct xt_option_entry helper_opts[] = { {.name = "helper", .id...
265
./android_firewall/external/iptables/extensions/libip6t_dst.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_opts.h> enum { O_DSTLEN = 0, O_DSTOPTS, }; static void dst_help(void) { printf( "dst match options:\n" "[!] --dst-len length total length of this header\n" " --dst-opts...
266
./android_firewall/external/iptables/extensions/libxt_RATEEST.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <math.h> #include <xtables.h> #include <linux/netfilter/x_tables.h> #include <linux/netfilter/xt_RATEEST.h> struct rateest_tg_udata { unsigned int interval; unsigned int ewma_log; }; static void RATEEST_help(void) { printf( "RATEEST target option...
267
./android_firewall/external/iptables/extensions/libxt_TPROXY.c
/* * shared library add-on to iptables to add TPROXY target support. * * Copyright (C) 2002-2008 BalaBit IT Ltd. */ #include <stdio.h> #include <limits.h> #include <xtables.h> #include <linux/netfilter/xt_TPROXY.h> #include <arpa/inet.h> enum { P_PORT = 0, P_ADDR, P_MARK, F_PORT = 1 << P_PORT, F_ADDR = 1 << P...
268
./android_firewall/external/iptables/extensions/libxt_quota.c
/* * Shared library add-on to iptables to add quota support * * Sam Johnston <samj@samj.net> */ #include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_quota.h> enum { O_QUOTA = 0, }; static const struct xt_option_entry quota_opts[] = { {.name = "quota", .id = O_QUOTA, .type = XTTYPE_UINT64, .fla...
269
./android_firewall/external/iptables/extensions/dscp_helper.c
/* * DiffServ classname <-> DiffServ codepoint mapping functions. * * The latest list of the mappings can be found at: * <http://www.iana.org/assignments/dscp-registry> * * This code is released under the GNU GPL v2, 1991 * * Author: Iain Barnes */ #include <stdio.h> #include <string.h> #include <xtables.h> ...
270
./android_firewall/external/iptables/extensions/libxt_rateest.c
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stddef.h> #include <getopt.h> #include <xtables.h> #include <linux/netfilter/xt_rateest.h> static void rateest_help(void) { printf( "rateest match options:\n" " --rateest1 name Rate estimator name\n" " --rateest2 name Rate es...
271
./android_firewall/external/iptables/extensions/libipt_DNAT.c
#include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <xtables.h> #include <iptables.h> /* get_kernel_version */ #include <limits.h> /* INT_MAX in ip_tables.h */ #include <linux/netfilter_ipv4/ip_tables.h> #include <net/netfilter/nf_nat.h> enum { O_TO_DEST = 0, O_RANDOM, O_PERSISTEN...
272
./android_firewall/external/iptables/extensions/libxt_dscp.c
/* Shared library add-on to iptables for DSCP * * (C) 2002 by Harald Welte <laforge@gnumonks.org> * * This program is distributed under the terms of GNU GPL v2, 1991 * * libipt_dscp.c borrowed heavily from libipt_tos.c * * --class support added by Iain Barnes * * For a list of DSCP codepoints see * http://...
273
./android_firewall/external/iptables/extensions/libxt_udp.c
#include <stdint.h> #include <stdio.h> #include <netdb.h> #include <arpa/inet.h> #include <xtables.h> #include <linux/netfilter/xt_tcpudp.h> enum { O_SOURCE_PORT = 0, O_DEST_PORT, }; static void udp_help(void) { printf( "udp match options:\n" "[!] --source-port port[:port]\n" " --sport ...\n" " match source por...
274
./android_firewall/external/iptables/extensions/libxt_osf.c
/* * Copyright (c) 2003+ Evgeniy Polyakov <zbr@ioremap.net> * * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. ...
275
./android_firewall/external/iptables/extensions/libipt_unclean.c
/* Shared library add-on to iptables for unclean. */ #include <xtables.h> static struct xtables_match unclean_mt_reg = { .name = "unclean", .version = XTABLES_VERSION, .family = NFPROTO_IPV4, .size = XT_ALIGN(0), .userspacesize = XT_ALIGN(0), }; void _init(void) { xtables_register_match(&unclean_mt_reg); }
276
./android_firewall/external/iptables/extensions/libxt_esp.c
#include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_esp.h> enum { O_ESPSPI = 0, }; static void esp_help(void) { printf( "esp match options:\n" "[!] --espspi spi[:spi]\n" " match spi (range)\n"); } static const struct xt_option_entry esp_opts[] = { {.name = "espspi", .id = O_ESPSPI, .type = XTT...
277
./android_firewall/external/iptables/extensions/libipt_icmp.c
#include <stdint.h> #include <stdio.h> #include <string.h> #include <xtables.h> #include <limits.h> /* INT_MAX in ip6_tables.h */ #include <linux/netfilter_ipv4/ip_tables.h> /* special hack for icmp-type 'any': * Up to kernel <=2.4.20 the problem was: * '-p icmp ' matches all icmp packets * '-p icmp -m icmp' match...
278
./android_firewall/external/iptables/extensions/libxt_NFLOG.c
#include <stdbool.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <getopt.h> #include <xtables.h> #include <linux/netfilter/x_tables.h> #include <linux/netfilter/xt_NFLOG.h> enum { O_GROUP = 0, O_PREFIX, O_RANGE, O_THRESHOLD, }; #define s struct xt_nflog_info static const struct xt_option_...
279
./android_firewall/external/iptables/extensions/libxt_mark.c
#include <stdbool.h> #include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_mark.h> struct xt_mark_info { unsigned long mark, mask; uint8_t invert; }; enum { O_MARK = 0, }; static void mark_mt_help(void) { printf( "mark match options:\n" "[!] --mark value[/mask] Match nfmark value with optional ...
280
./android_firewall/external/iptables/extensions/libipt_REDIRECT.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <xtables.h> #include <limits.h> /* INT_MAX in ip_tables.h */ #include <linux/netfilter_ipv4/ip_tables.h> #include <net/netfilter/nf_nat.h> enum { O_TO_PORTS = 0, O_RANDOM, F_TO_PORTS = 1 << O_TO_PORTS, F_RANDOM = 1 << O_RANDOM, }; static void R...
281
./android_firewall/external/iptables/extensions/libxt_DSCP.c
/* Shared library add-on to iptables for DSCP * * (C) 2000- 2002 by Matthew G. Marsh <mgm@paktronix.com>, * Harald Welte <laforge@gnumonks.org> * * This program is distributed under the terms of GNU GPL v2, 1991 * * libipt_DSCP.c borrowed heavily from libipt_TOS.c * * --set-class added by Iain Barnes *...
282
./android_firewall/external/iptables/extensions/libxt_dccp.c
/* Shared library add-on to iptables for DCCP matching * * (C) 2005 by Harald Welte <laforge@netfilter.org> * * This program is distributed under the terms of GNU GPL v2, 1991 * */ #include <stdint.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <netdb.h> #include <arpa/inet.h> #include <xt...
283
./android_firewall/external/iptables/extensions/libxt_standard.c
/* Shared library add-on to iptables for standard target support. */ #include <stdio.h> #include <xtables.h> static void standard_help(void) { printf( "standard match options:\n" "(If target is DROP, ACCEPT, RETURN or nothing)\n"); } static struct xtables_target standard_target = { .family = NFPROTO_UNSPEC, .name...
284
./android_firewall/external/iptables/extensions/libip6t_hbh.c
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <errno.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_opts.h> #define DEBUG 0 enum { O_HBH_LEN = 0, O_HBH_OPTS, }; static void hbh_help(void) { printf( "hbh match options:\n" "[!] --hbh-len length total length of this hea...
285
./android_firewall/external/iptables/extensions/libxt_recent.c
#include <stdbool.h> #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter/xt_recent.h> enum { O_SET = 0, O_RCHECK, O_UPDATE, O_REMOVE, O_SECONDS, O_REAP, O_HITCOUNT, O_RTTL, O_NAME, O_RSOURCE, O_RDEST, O_MASK, F_SET = 1 << O_SET, F_RCHECK = 1 << O_RCHECK, F_UPDATE = 1...
286
./android_firewall/external/iptables/extensions/libip6t_LOG.c
#include <stdio.h> #include <string.h> #include <syslog.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_LOG.h> #ifndef IP6T_LOG_UID /* Old kernel */ #define IP6T_LOG_UID 0x08 #undef IP6T_LOG_MASK #define IP6T_LOG_MASK 0x0f #endif #define LOG_DEFAULT_LEVEL LOG_WARNING enum { O_LOG_LEVEL = 0, O_LOG_PREF...
287
./android_firewall/external/iptables/extensions/libip6t_hl.c
/* * IPv6 Hop Limit matching module * Maciej Soltysiak <solt@dns.toxicfilms.tv> * Based on HW's ttl match * This program is released under the terms of GNU GPL * Cleanups by Stephane Ouellette <ouellettes@videotron.ca> */ #include <stdio.h> #include <xtables.h> #include <linux/netfilter_ipv6/ip6t_hl.h> enum { O...
288
./android_firewall/external/iptables/extensions/libip6t_mh.c
/* Shared library add-on to ip6tables to add mobility header support. */ /* * Copyright (C)2006 USAGI/WIDE Project * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Author: ...
289
./android_firewall/external/iptables/extensions/libxt_MARK.c
#include <stdbool.h> #include <stdio.h> #include <xtables.h> #include <linux/netfilter/xt_MARK.h> /* Version 0 */ struct xt_mark_target_info { unsigned long mark; }; /* Version 1 */ enum { XT_MARK_SET=0, XT_MARK_AND, XT_MARK_OR, }; struct xt_mark_target_info_v1 { unsigned long mark; uint8_t mode; }; enum { O...
290
./android_firewall/external/iptables/extensions/libipt_CLUSTERIP.c
/* Shared library add-on to iptables to add CLUSTERIP target support. * (C) 2003 by Harald Welte <laforge@gnumonks.org> * * Development of this code was funded by SuSE AG, http://www.suse.com/ */ #include <stdbool.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <getopt.h> #include <stddef.h>...
291
./android_firewall/external/iptables/extensions/libxt_pkttype.c
/* * Shared library add-on to iptables to match * packets by their type (BROADCAST, UNICAST, MULTICAST). * * Michal Ludvig <michal@logix.cz> */ #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/if_packet.h> #include <linux/netfilter/xt_pkttype.h> enum { O_PKTTYPE = 0, }; struct pktt...
292
./android_firewall/external/iptables/extensions/libxt_IDLETIMER.c
/* * Shared library add-on for iptables to add IDLETIMER support. * * Copyright (C) 2010 Nokia Corporation. All rights reserved. * * Contact: Luciano Coelho <luciano.coelho@nokia.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License ...
293
./android_firewall/external/iptables/extensions/libxt_TEE.c
/* * "TEE" target extension for iptables * Copyright © Sebastian Claßen <sebastian.classen [at] freenet.ag>, 2007 * Jan Engelhardt <jengelh [at] medozas de>, 2007 - 2010 * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License; either * ver...
294
./android_firewall/external/iptables/extensions/libipt_SNAT.c
#include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <xtables.h> #include <iptables.h> #include <limits.h> /* INT_MAX in ip_tables.h */ #include <linux/netfilter_ipv4/ip_tables.h> #include <net/netfilter/nf_nat.h> enum { O_TO_SRC = 0, O_RANDOM, O_PERSISTENT, O_X_TO_SRC, F_TO_SRC ...
295
./android_firewall/external/iptables/extensions/libxt_time.c
/* * libxt_time - iptables part for xt_time * Copyright © CC Computer Consultants GmbH, 2007 * Contact: <jengelh@computergmbh.de> * * libxt_time.c is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either...
296
./android_firewall/external/iptables/extensions/libipt_TTL.c
/* Shared library add-on to iptables for the TTL target * (C) 2000 by Harald Welte <laforge@gnumonks.org> * * This program is distributed under the terms of GNU GPL */ #include <stdio.h> #include <xtables.h> #include <linux/netfilter_ipv4/ipt_TTL.h> enum { O_TTL_SET = 0, O_TTL_INC, O_TTL_DEC, F_TTL_SET = 1 << ...
297
./android_firewall/external/iptables/extensions/libipt_MASQUERADE.c
#include <stdio.h> #include <netdb.h> #include <string.h> #include <stdlib.h> #include <getopt.h> #include <xtables.h> #include <limits.h> /* INT_MAX in ip_tables.h */ #include <linux/netfilter_ipv4/ip_tables.h> #include <net/netfilter/nf_nat.h> enum { O_TO_PORTS = 0, O_RANDOM, }; static void MASQUERADE_help(void) ...
298
./android_firewall/external/iptables/extensions/libxt_set.c
/* Copyright (C) 2000-2002 Joakim Axelsson <gozem@linux.nu> * Patrick Schaaf <bof@bof.de> * Martin Josefsson <gandalf@wlug.westbo.se> * Copyright (C) 2003-2010 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> * * This program is free software; you can redistribute it and/...
299
./android_firewall/external/iptables/extensions/libxt_comment.c
/* Shared library add-on to iptables to add comment match support. * * ChangeLog * 2003-05-13: Brad Fisher <brad@info-link.net> * Initial comment match * 2004-05-12: Brad Fisher <brad@info-link.net> * Port to patch-o-matic-ng */ #include <stdio.h> #include <xtables.h> #include <linux/netf...
300
./android_firewall/external/iptables/extensions/libipt_REJECT.c
/* Shared library add-on to iptables to add customized REJECT support. * * (C) 2000 Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> */ #include <stdio.h> #include <string.h> #include <xtables.h> #include <linux/netfilter_ipv4/ipt_REJECT.h> #include <linux/version.h> /* If we are compiling against a kernel that does not...