Home
last modified time | relevance | path

Searched refs:ttl (Results 1 – 25 of 52) sorted by relevance

123

/linux-2.4.37.9/net/ipv4/netfilter/
Dipt_ttl.c30 return (iph->ttl == info->ttl); in match()
33 return (!(iph->ttl == info->ttl)); in match()
36 return (iph->ttl < info->ttl); in match()
39 return (iph->ttl > info->ttl); in match()
Dipt_recent.c56 u_int8_t ttl; member
147 len += sprintf(buffer+len,"ttl: %u ",curr_table->table[count].ttl); in ip_recent_get_info()
226 curr_table->table[count].ttl = 0; in ip_recent_ctrl()
320 skb->nh.iph->ttl = 0; in ip_recent_ctrl()
369 u_int8_t ttl = skb->nh.iph->ttl; in match() local
390 if(out) ttl++; in match()
421 …ENT_NAME ": match(): checking table, addr: %u, ttl: %u, orig_ttl: %u\n",addr,ttl,skb->nh.iph->ttl); in match()
437 (!r_list[hash_table[hash_result]].ttl || r_list[hash_table[hash_result]].ttl == ttl))) { in match()
511 r_list[location].ttl = ttl; in match()
581 r_list[location].ttl = ttl; in match()
[all …]
Dipt_REJECT.c164 nskb->nh.iph->ttl = MAXTTL; in send_reset()
289 iph->ttl = MAXTTL; in send_unreach()
Dipt_MIRROR.c134 if (iph->ttl <= 1) { in ipt_mirror_target()
/linux-2.4.37.9/net/ipv4/
Dinetpeer.c335 static int cleanup_once(unsigned long ttl) in cleanup_once() argument
343 if (time_after(p->dtime + ttl, jiffies)) { in cleanup_once()
435 int ttl; in peer_check_expire() local
438 ttl = inet_peer_minttl; in peer_check_expire()
440 ttl = inet_peer_maxttl in peer_check_expire()
443 for (i = 0; i < PEER_MAX_CLEANUP_WORK && !cleanup_once(ttl); i++); in peer_check_expire()
Dip_output.c141 iph->ttl = sk->protinfo.af_inet.ttl; in ip_build_and_send_pkt()
248 if (skb->nh.iph->ttl == 0) { in ip_mc_output()
396 iph->ttl = sk->protinfo.af_inet.ttl; in ip_queue_xmit()
596 iph->ttl = sk->protinfo.af_inet.mc_ttl; in ip_build_xmit_slow()
598 iph->ttl = sk->protinfo.af_inet.ttl; in ip_build_xmit_slow()
717 iph->ttl=sk->protinfo.af_inet.mc_ttl; in ip_build_xmit()
720 iph->ttl=sk->protinfo.af_inet.ttl; in ip_build_xmit()
Dipip.c337 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip_err()
455 if (t->parms.iph.ttl) { in ipip_err()
640 if ((iph->ttl = tiph->ttl) == 0) in ipip_tunnel_xmit()
641 iph->ttl = old_iph->ttl; in ipip_tunnel_xmit()
698 if (p.iph.ttl) in ipip_tunnel_ioctl()
730 t->parms.iph.ttl = p.iph.ttl; in ipip_tunnel_ioctl()
Dip_gre.c390 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipgre_err()
524 if (t->parms.iph.ttl) { in ipgre_err()
841 if ((iph->ttl = tiph->ttl) == 0) { in ipgre_tunnel_xmit()
843 iph->ttl = old_iph->ttl; in ipgre_tunnel_xmit()
846 iph->ttl = ((struct ipv6hdr*)old_iph)->hop_limit; in ipgre_tunnel_xmit()
849 iph->ttl = sysctl_ip_default_ttl; in ipgre_tunnel_xmit()
930 if (p.iph.ttl) in ipgre_tunnel_ioctl()
976 t->parms.iph.ttl = p.iph.ttl; in ipgre_tunnel_ioctl()
Dip_forward.c98 if (iph->ttl <= 1) in ip_forward()
Dip_sockglue.c75 int ttl = skb->nh.iph->ttl; in ip_cmsg_recv_ttl() local
76 put_cmsg(msg, SOL_IP, IP_TTL, sizeof(int), &ttl); in ip_cmsg_recv_ttl()
496 sk->protinfo.af_inet.ttl=val; in ip_setsockopt()
927 val=sk->protinfo.af_inet.ttl; in ip_getsockopt()
Dicmp.c341 sk->protinfo.af_inet.ttl = sysctl_ip_default_ttl; in icmp_reply()
486 icmp_socket->sk->protinfo.af_inet.ttl = sysctl_ip_default_ttl; in icmp_send()
998 icmp_socket_cpu(i)->sk->protinfo.af_inet.ttl = MAXTTL; in icmp_init()
/linux-2.4.37.9/net/ipv6/
Dsit.c278 if (t->parms.iph.ttl == 0 && type == ICMP_TIME_EXCEEDED) in ipip6_err()
364 if (rel_type == ICMPV6_TIME_EXCEED && t->parms.iph.ttl) { in ipip6_err()
594 if ((iph->ttl = tiph->ttl) == 0) in ipip6_tunnel_xmit()
595 iph->ttl = iph6->hop_limit; in ipip6_tunnel_xmit()
652 if (p.iph.ttl) in ipip6_tunnel_ioctl()
684 t->parms.iph.ttl = p.iph.ttl; in ipip6_tunnel_ioctl()
818 iph->ttl = 64; in ipip6_fb_tunnel_init()
Dip6_flowlabel.c247 static __u32 check_linger(__u16 ttl) in check_linger() argument
249 if (ttl < FL_MIN_LINGER) in check_linger()
251 if (ttl > FL_MAX_LINGER && !capable(CAP_NET_ADMIN)) in check_linger()
253 return ttl*HZ; in check_linger()
/linux-2.4.37.9/include/linux/
Dwanrouter.h236 unsigned char ttl; /* Time To Live for UDP security */ member
445 unsigned char ttl; /* Time To Live for UDP security */ member
499 unsigned char ttl; /* Time To Live for UDP security */ member
Dsmb_mount.h57 int ttl; /* maximum age in jiffies (inode, dentry & dircache) */ member
Dip.h130 __u8 ttl; member
Dsmb_fs.h124 #define SMB_MAX_AGE(server) (((server)->mnt->ttl * HZ) / 1000)
/linux-2.4.37.9/include/linux/netfilter_ipv4/
Dipt_ttl.h17 u_int8_t ttl; member
/linux-2.4.37.9/drivers/char/rio/
Dproto.h129 void gen_map( int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl );
130 void adjust_ttl( int mapping, int looking_at, int come_from, ROUTE_STR route[], int link, int *ttl);
/linux-2.4.37.9/fs/smbfs/
Dinode.c351 mnt->ttl = value; in parse_options()
402 if (mnt->ttl != SMB_TTL_DEFAULT) in smb_show_options()
403 seq_printf(s, ",ttl=%d", mnt->ttl); in smb_show_options()
501 mnt->ttl = SMB_TTL_DEFAULT; in smb_read_super()
/linux-2.4.37.9/drivers/usb/
Dusbnet.c1346 #define TTL_THIS(ttl) (0x00ff & ttl) argument
1347 #define TTL_OTHER(ttl) (0x00ff & (ttl >> 8)) argument
1350 static inline void nc_dump_ttl (struct usbnet *dev, u16 ttl) in nc_dump_ttl() argument
1355 ttl, in nc_dump_ttl()
1357 TTL_THIS (ttl), in nc_dump_ttl()
1358 TTL_OTHER (ttl) in nc_dump_ttl()
1367 u16 usbctl, status, ttl; in net1080_reset() local
1398 ttl = *vp; in net1080_reset()
1402 MK_TTL (NC_READ_TTL_MS, TTL_OTHER (ttl)) ); in net1080_reset()
/linux-2.4.37.9/include/net/
Dip.h180 return --iph->ttl; in ip_decrease_ttl()
/linux-2.4.37.9/drivers/net/
Dslhc.c354 || ip->ttl != cs->cs_ip.ttl in slhc_compress()
/linux-2.4.37.9/net/core/
Dprofile.c231 whitehole_iph.ttl = 2; in whitehole_init()
/linux-2.4.37.9/drivers/net/wan/
Dsdla_ft1.c208 card->wandev.ttl = 0x7F; in wpft1_init()

123