tag | line | file | source code |
sopt | 98 | include/net/ip.h | extern int ip_options_echo(struct options * dopt, struct options * sopt, |
sopt | 143 | include/net/ip.h | extern int ip_options_echo(struct options *dopt, struct options *sopt, __u32 daddr, __u32 saddr, struct sk_buff *skb); |
sopt | 73 | net/ipv4/ip_options.c | int ip_options_echo(struct options * dopt, struct options * sopt, |
sopt | 85 | net/ipv4/ip_options.c | if (!sopt) |
sopt | 86 | net/ipv4/ip_options.c | sopt = (struct options*)skb->proto_priv; |
sopt | 88 | net/ipv4/ip_options.c | if (sopt->optlen == 0) |
sopt | 94 | net/ipv4/ip_options.c | sptr = (sopt->is_data ? sopt->__data - sizeof(struct iphdr) : |
sopt | 98 | net/ipv4/ip_options.c | if (sopt->rr) |
sopt | 100 | net/ipv4/ip_options.c | optlen = sptr[sopt->rr+1]; |
sopt | 101 | net/ipv4/ip_options.c | soffset = sptr[sopt->rr+2]; |
sopt | 103 | net/ipv4/ip_options.c | memcpy(dptr, sptr+sopt->rr, optlen); |
sopt | 104 | net/ipv4/ip_options.c | if (sopt->rr_needaddr && soffset <= optlen) { |
sopt | 113 | net/ipv4/ip_options.c | if (sopt->ts) |
sopt | 115 | net/ipv4/ip_options.c | optlen = sptr[sopt->ts+1]; |
sopt | 116 | net/ipv4/ip_options.c | soffset = sptr[sopt->ts+2]; |
sopt | 118 | net/ipv4/ip_options.c | memcpy(dptr, sptr+sopt->ts, optlen); |
sopt | 121 | net/ipv4/ip_options.c | if (sopt->ts_needaddr) |
sopt | 128 | net/ipv4/ip_options.c | if (sopt->ts_needtime) |
sopt | 151 | net/ipv4/ip_options.c | if (sopt->srr) |
sopt | 153 | net/ipv4/ip_options.c | unsigned char * start = sptr+sopt->srr; |
sopt | 183 | net/ipv4/ip_options.c | dopt->is_strictroute = sopt->is_strictroute; |