/linux-2.4.37.9/net/ipv4/netfilter/ |
D | ipt_conntrack.c | 22 struct ip_conntrack *ct; in match() local 26 ct = ip_conntrack_get((struct sk_buff *)skb, &ctinfo); in match() 30 if (ct) in match() 36 if (ct) { in match() 37 if(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip != in match() 38 ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip) in match() 41 if(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip != in match() 42 ct->tuplehash[IP_CT_DIR_REPLY].tuple.src.ip) in match() 51 …if (!ct || FWINV(ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.protonum != sinfo->tuple[IP_CT_DIR_OR… in match() 56 …if (!ct || FWINV((ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip&sinfo->sipmsk[IP_CT_DIR_ORIGINAL]… in match() [all …]
|
D | ip_fw_compat_masq.c | 42 struct ip_conntrack *ct; in do_masquerade() local 59 ct = ip_conntrack_get(*pskb, &ctinfo); in do_masquerade() 61 if (!ct) { in do_masquerade() 66 info = &ct->nat.info; in do_masquerade() 90 ret = ip_nat_setup_info(ct, &range, NF_IP_POST_ROUTING); in do_masquerade() 99 return do_bindings(ct, ctinfo, info, NF_IP_POST_ROUTING, pskb); in do_masquerade() 106 struct ip_conntrack *ct; in check_for_masq_error() local 108 ct = ip_conntrack_get(skb, &ctinfo); in check_for_masq_error() 111 IP_NF_ASSERT(ct); in check_for_masq_error() 113 icmp_reply_translation(skb, ct, NF_IP_PRE_ROUTING, in check_for_masq_error() [all …]
|
D | ip_conntrack_core.c | 101 ip_conntrack_put(struct ip_conntrack *ct) in ip_conntrack_put() argument 103 IP_NF_ASSERT(ct); in ip_conntrack_put() 104 IP_NF_ASSERT(ct->infos[0].master); in ip_conntrack_put() 107 nf_conntrack_put(&ct->infos[0]); in ip_conntrack_put() 260 static void remove_expectations(struct ip_conntrack *ct, int drop_refcount) in remove_expectations() argument 265 DEBUGP("remove_expectations(%p)\n", ct); in remove_expectations() 267 list_for_each_safe(exp_entry, next, &ct->sibling_list) { in remove_expectations() 274 DEBUGP("remove_expectations: skipping established %p of %p\n", exp->sibling, ct); in remove_expectations() 284 IP_NF_ASSERT(exp->expectant == ct); in remove_expectations() 292 clean_from_lists(struct ip_conntrack *ct) in clean_from_lists() argument [all …]
|
D | ip_nat_ftp.c | 32 struct ip_conntrack *ct, in ftp_nat_expected() argument 39 struct ip_conntrack *master = master_ct(ct); in ftp_nat_expected() 47 exp_ftp_info = &ct->master->help.exp_ftp_info; in ftp_nat_expected() 84 return ip_nat_setup_info(ct, &mr, hooknum); in ftp_nat_expected() 93 struct ip_conntrack *ct, in mangle_rfc959_packet() argument 103 return ip_nat_mangle_tcp_packet(pskb, ct, ctinfo, matchoff, in mangle_rfc959_packet() 114 struct ip_conntrack *ct, in mangle_eprt_packet() argument 123 return ip_nat_mangle_tcp_packet(pskb, ct, ctinfo, matchoff, in mangle_eprt_packet() 134 struct ip_conntrack *ct, in mangle_epsv_packet() argument 143 return ip_nat_mangle_tcp_packet(pskb, ct, ctinfo, matchoff, in mangle_epsv_packet() [all …]
|
D | ip_nat_standalone.c | 55 struct ip_conntrack *ct, in call_expect() argument 58 return master->nat.info.helper->expect(pskb, hooknum, ct, info); in call_expect() 68 struct ip_conntrack *ct; in ip_nat_fn() local 85 ct = ip_conntrack_get(*pskb, &ctinfo); in ip_nat_fn() 90 if (!ct) { in ip_nat_fn() 107 return icmp_reply_translation(*pskb, ct, hooknum, in ip_nat_fn() 112 info = &ct->nat.info; in ip_nat_fn() 120 if (ct->master in ip_nat_fn() 121 && master_ct(ct)->nat.info.helper in ip_nat_fn() 122 && master_ct(ct)->nat.info.helper->expect) { in ip_nat_fn() [all …]
|
D | ip_nat_amanda.c | 37 struct ip_conntrack *ct, in amanda_nat_expected() argument 40 struct ip_conntrack *master = master_ct(ct); in amanda_nat_expected() 60 exp_amanda_info = &ct->master->help.exp_amanda_info; in amanda_nat_expected() 67 return ip_nat_setup_info(ct, &mr, hooknum); in amanda_nat_expected() 70 static int amanda_data_fixup(struct ip_conntrack *ct, in amanda_data_fixup() argument 82 t.dst.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in amanda_data_fixup() 92 return ip_nat_mangle_udp_packet(pskb, ct, ctinfo, in amanda_data_fixup() 98 static unsigned int help(struct ip_conntrack *ct, in help() argument 116 if (!amanda_data_fixup(ct, pskb, ctinfo, exp)) in help()
|
D | ipt_helper.c | 38 struct ip_conntrack *ct; in match() local 42 ct = ip_conntrack_get((struct sk_buff *)skb, &ctinfo); in match() 43 if (!ct) { in match() 48 if (!ct->master) { in match() 49 DEBUGP("ipt_helper: conntrack %p has no master\n", ct); in match() 53 exp = ct->master; in match()
|
D | ip_nat_rule.c | 116 struct ip_conntrack *ct; in ipt_snat_target() local 121 ct = ip_conntrack_get(*pskb, &ctinfo); in ipt_snat_target() 124 IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED in ipt_snat_target() 128 return ip_nat_setup_info(ct, targinfo, hooknum); in ipt_snat_target() 138 struct ip_conntrack *ct; in ipt_dnat_target() local 144 ct = ip_conntrack_get(*pskb, &ctinfo); in ipt_dnat_target() 147 IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED)); in ipt_dnat_target() 149 return ip_nat_setup_info(ct, targinfo, hooknum); in ipt_dnat_target() 269 struct ip_conntrack *ct, in ip_nat_rule_find() argument 279 ret = alloc_null_binding(ct, info, hooknum); in ip_nat_rule_find()
|
D | ip_conntrack_proto_icmp.c | 71 static int icmp_packet(struct ip_conntrack *ct, in icmp_packet() argument 80 if (atomic_dec_and_test(&ct->proto.icmp.count) in icmp_packet() 81 && del_timer(&ct->timeout)) in icmp_packet() 82 ct->timeout.function((unsigned long)ct); in icmp_packet() 84 atomic_inc(&ct->proto.icmp.count); in icmp_packet() 85 ip_ct_refresh(ct, ip_ct_icmp_timeout); in icmp_packet()
|
D | ip_nat_irc.c | 54 struct ip_conntrack *ct, in irc_nat_expected() argument 60 struct ip_conntrack *master = master_ct(ct); in irc_nat_expected() 70 newsrcip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in irc_nat_expected() 86 return ip_nat_setup_info(ct, &mr, hooknum); in irc_nat_expected() 90 struct ip_conntrack *ct, in irc_data_fixup() argument 108 newip = ct->tuplehash[IP_CT_DIR_REPLY].tuple.dst.ip; in irc_data_fixup() 141 return ip_nat_mangle_tcp_packet(pskb, ct, ctinfo, in irc_data_fixup() 147 static unsigned int help(struct ip_conntrack *ct, in help() argument 184 if (!irc_data_fixup(exp_irc_info, ct, pskb, ctinfo, exp)) in help()
|
D | ip_nat_helper.c | 53 struct ip_conntrack *ct, in ip_nat_resize_packet() argument 66 this_way = &ct->nat.info.seq[dir]; in ip_nat_resize_packet() 67 other_way = &ct->nat.info.seq[!dir]; in ip_nat_resize_packet() 126 struct ip_conntrack *ct, in ip_nat_mangle_tcp_packet() argument 150 if (!ip_nat_resize_packet(skb, ct, ctinfo, newlen)) { in ip_nat_mangle_tcp_packet() 220 struct ip_conntrack *ct, in ip_nat_mangle_udp_packet() argument 251 if (!ip_nat_resize_packet(skb, ct, ctinfo, newlen)) { in ip_nat_mangle_udp_packet() 367 struct ip_conntrack *ct, in ip_nat_sack_adjust() argument 402 &ct->nat.info.seq[!dir]); in ip_nat_sack_adjust() 412 struct ip_conntrack *ct, in ip_nat_seq_adjust() argument [all …]
|
D | ip_nat_tftp.c | 52 tftp_nat_help(struct ip_conntrack *ct, in tftp_nat_help() argument 78 repl = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_nat_help() 80 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_nat_help() 81 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_nat_help() 97 struct ip_conntrack *ct, in tftp_nat_expected() argument 100 const struct ip_conntrack *master = ct->master->expectant; in tftp_nat_expected() 138 return ip_nat_setup_info(ct,&mr,hooknum); in tftp_nat_expected()
|
D | ipt_REDIRECT.c | 62 struct ip_conntrack *ct; in redirect_target() local 71 ct = ip_conntrack_get(*pskb, &ctinfo); in redirect_target() 72 IP_NF_ASSERT(ct && (ctinfo == IP_CT_NEW || ctinfo == IP_CT_RELATED)); in redirect_target() 96 return ip_nat_setup_info(ct, &newrange, hooknum); in redirect_target()
|
D | ip_conntrack_tftp.c | 39 struct ip_conntrack *ct, in tftp_help() argument 51 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple); in tftp_help() 52 DUMP_TUPLE(&ct->tuplehash[IP_CT_DIR_REPLY].tuple); in tftp_help() 55 exp.tuple = ct->tuplehash[IP_CT_DIR_REPLY].tuple; in tftp_help() 65 ip_conntrack_expect_related(ct, &exp); in tftp_help()
|
D | ip_conntrack_ftp.c | 233 struct ip_conntrack *ct, in help() argument 246 struct ip_ct_ftp_master *ct_ftp_info = &ct->help.ct_ftp_info; in help() 303 array[0] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 24) & 0xFF; in help() 304 array[1] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 16) & 0xFF; in help() 305 array[2] = (ntohl(ct->tuplehash[dir].tuple.src.ip) >> 8) & 0xFF; in help() 306 array[3] = ntohl(ct->tuplehash[dir].tuple.src.ip) & 0xFF; in help() 342 == ct->tuplehash[dir].tuple.src.ip) { in help() 354 NIPQUAD(ct->tuplehash[dir].tuple.src.ip)); in help() 365 { { ct->tuplehash[!dir].tuple.src.ip, in help() 378 ip_conntrack_expect_related(ct, &expect); in help()
|
D | ip_conntrack_amanda.c | 49 struct ip_conntrack *ct, enum ip_conntrack_info ctinfo) in help() argument 78 ip_ct_refresh(ct, master_timeout * HZ); in help() 92 exp.tuple.src.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.ip; in help() 93 exp.tuple.dst.ip = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.dst.ip; in help() 112 ip_conntrack_expect_related(ct, &exp); in help()
|
/linux-2.4.37.9/net/ax25/ |
D | ax25_addr.c | 122 int ct = 0; in ax25cmp() local 124 while (ct < 6) { in ax25cmp() 125 if ((a->ax25_call[ct] & 0xFE) != (b->ax25_call[ct] & 0xFE)) /* Clean off repeater bits */ in ax25cmp() 127 ct++; in ax25cmp() 130 if ((a->ax25_call[ct] & 0x1E) == (b->ax25_call[ct] & 0x1E)) /* SSID without control bit */ in ax25cmp() 218 int ct = 0; in ax25_addr_build() local 251 while (ct < d->ndigi) { in ax25_addr_build() 252 memcpy(buf, &d->calls[ct], AX25_ADDR_LEN); in ax25_addr_build() 254 if (d->repeated[ct]) in ax25_addr_build() 264 ct++; in ax25_addr_build() [all …]
|
/linux-2.4.37.9/lib/ |
D | string.c | 149 int strcmp(const char * cs,const char * ct) in strcmp() argument 154 if ((__res = *cs - *ct++) != 0 || !*cs++) in strcmp() 169 int strncmp(const char * cs,const char * ct,size_t count) in strncmp() argument 174 if ((__res = *cs - *ct++) != 0 || !*cs++) in strncmp() 279 char * strpbrk(const char * cs,const char * ct) in strpbrk() argument 284 for( sc2 = ct; *sc2 != '\0'; ++sc2) { in strpbrk() 301 char * strtok(char * s,const char * ct) in strtok() argument 309 sbegin += strspn(sbegin,ct); in strtok() 314 send = strpbrk( sbegin, ct); in strtok() 334 char * strsep(char **s, const char *ct) in strsep() argument [all …]
|
/linux-2.4.37.9/net/appletalk/ |
D | aarp.c | 330 int ct; in aarp_expire_timeout() local 334 for (ct = 0; ct < AARP_HASH_SIZE; ct++) { in aarp_expire_timeout() 335 __aarp_expire_timer(&resolved[ct]); in aarp_expire_timeout() 336 __aarp_kick(&unresolved[ct]); in aarp_expire_timeout() 337 __aarp_expire_timer(&unresolved[ct]); in aarp_expire_timeout() 338 __aarp_expire_timer(&proxies[ct]); in aarp_expire_timeout() 351 int ct; in aarp_device_event() local 356 for (ct = 0; ct < AARP_HASH_SIZE; ct++) { in aarp_device_event() 357 __aarp_expire_device(&resolved[ct], ptr); in aarp_device_event() 358 __aarp_expire_device(&unresolved[ct], ptr); in aarp_device_event() [all …]
|
/linux-2.4.37.9/include/asm-m68k/ |
D | string.h | 85 static inline char *strpbrk(const char *cs,const char *ct) 90 for( sc2 = ct; *sc2 != '\0'; ++sc2) 122 static inline char *strtok(char *s, const char *ct) 130 sbegin += strspn(sbegin,ct); 135 send = strpbrk( sbegin, ct); 156 static inline int strcmp(const char * cs,const char * ct) in strcmp() argument 169 : "=a" (cs), "=a" (ct), "=d" (__res) in strcmp() 170 : "0" (cs), "1" (ct)); in strcmp() 175 static inline int strncmp(const char * cs,const char * ct,size_t count) in strncmp() argument 193 : "=a" (cs), "=a" (ct), "=d" (count), "=d" (__res) in strncmp() [all …]
|
/linux-2.4.37.9/include/linux/netfilter_ipv4/ |
D | ip_nat_helper.h | 28 unsigned int (*help)(struct ip_conntrack *ct, 38 struct ip_conntrack *ct, 47 struct ip_conntrack *ct, 54 struct ip_conntrack *ct, 61 struct ip_conntrack *ct,
|
/linux-2.4.37.9/include/asm-i386/ |
D | string-486.h | 119 static inline int strcmp(const char * cs,const char * ct) in strcmp() argument 136 :"=q" (__res), "=r" (cs), "=r" (ct) in strcmp() 137 :"1" (cs), "2" (ct) in strcmp() 143 static inline int strncmp(const char * cs,const char * ct,size_t count) in strncmp() argument 162 :"=q" (__res), "=r" (cs), "=r" (ct), "=r" (count) in strncmp() 163 :"1" (cs), "2" (ct), "3" (count)); in strncmp() 206 static inline size_t strcspn(const char * cs, const char * ct) in strcspn() argument 227 :"0" (cs), "1" (0), "2" (0xffffffff), "g" (ct) in strcspn() 428 static inline int memcmp(const void * cs,const void * ct,size_t count) in memcmp() argument 440 :"0" (0), "1" (cs), "2" (ct), "3" (count)); in memcmp()
|
/linux-2.4.37.9/net/ipv4/ |
D | ipmr.c | 1063 int ct; in ipmr_device_event() local 1067 for(ct=0;ct<maxvif;ct++,v++) { in ipmr_device_event() 1069 vif_delete(ct); in ipmr_device_event() 1225 int ct; in ipmr_find_vif() local 1226 for (ct=maxvif-1; ct>=0; ct--) { in ipmr_find_vif() 1227 if (vif_table[ct].dev == dev) in ipmr_find_vif() 1230 return ct; in ipmr_find_vif() 1238 int vif, ct; in ip_mr_forward() local 1288 for (ct = cache->mfc_un.res.maxvif-1; ct >= cache->mfc_un.res.minvif; ct--) { in ip_mr_forward() 1289 if (skb->nh.iph->ttl > cache->mfc_un.res.ttls[ct]) { in ip_mr_forward() [all …]
|
/linux-2.4.37.9/drivers/video/ |
D | promcon.c | 59 u16 ct = scr_readw(t); in promcon_start() local 61 if (inverted(cs) && inverted(ct)) in promcon_start() 63 ct); in promcon_start() 66 ct); in promcon_start() 67 else if (inverted(ct)) in promcon_start() 69 ct); in promcon_start() 71 return sprintf(b, "\b%c\b\033[@%c", cs, ct); in promcon_start() 93 u16 ct = scr_readw(t); in promcon_end() local 95 if (inverted(cs) && inverted(ct)) in promcon_end() 96 b += sprintf(b, "\b%c\b\033[@\033[7m%c\033[m", cs, ct); in promcon_end() [all …]
|
/linux-2.4.37.9/net/ipv4/ipvs/ |
D | ip_vs_core.c | 160 struct ip_vs_conn *ct; in ip_vs_sched_persist() local 191 ct = ip_vs_ct_in_get(iph->protocol, snet, 0, in ip_vs_sched_persist() 194 ct = ip_vs_ct_in_get(iph->protocol, snet, 0, in ip_vs_sched_persist() 197 if (!ct || !ip_vs_check_template(ct)) { in ip_vs_sched_persist() 215 ct = ip_vs_conn_new(iph->protocol, in ip_vs_sched_persist() 222 ct = ip_vs_conn_new(iph->protocol, in ip_vs_sched_persist() 228 if (ct == NULL) in ip_vs_sched_persist() 231 ct->timeout = svc->timeout; in ip_vs_sched_persist() 234 dest = ct->dest; in ip_vs_sched_persist() 245 ct = ip_vs_ct_in_get(IPPROTO_IP, snet, 0, in ip_vs_sched_persist() [all …]
|