Lines Matching refs:dopt
79 * build in dopt compiled option set appropriate for answering.
83 * NOTE: dopt cannot point to skb.
86 int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb)
94 memset(dopt, 0, sizeof(struct ip_options));
99 dopt->optlen = 0;
104 dptr = dopt->__data;
111 dopt->rr = dopt->optlen + sizeof(struct iphdr);
117 dopt->rr_needaddr = 1;
120 dopt->optlen += optlen;
125 dopt->ts = dopt->optlen + sizeof(struct iphdr);
131 dopt->ts_needaddr = 1;
138 dopt->ts_needtime = 1;
141 dopt->ts_needtime = 0;
148 dopt->ts_needtime = 1;
157 dopt->optlen += optlen;
182 dopt->faddr = faddr;
187 dopt->srr = dopt->optlen + sizeof(struct iphdr);
188 dopt->optlen += doffset+3;
189 dopt->is_strictroute = sopt->is_strictroute;
194 dopt->cipso = dopt->optlen+sizeof(struct iphdr);
197 dopt->optlen += optlen;
199 while (dopt->optlen & 3) {
201 dopt->optlen++;