Lines Matching refs:opt

123 			  u32 saddr, u32 daddr, struct ip_options *opt)  in ip_build_and_send_pkt()  argument
129 if (opt) in ip_build_and_send_pkt()
130 iph=(struct iphdr *)skb_push(skb,sizeof(struct iphdr) + opt->optlen); in ip_build_and_send_pkt()
149 if (opt && opt->optlen) { in ip_build_and_send_pkt()
150 iph->ihl += opt->optlen>>2; in ip_build_and_send_pkt()
151 ip_options_build(skb, opt, daddr, rt, 0); in ip_build_and_send_pkt()
350 struct ip_options *opt = sk->protinfo.af_inet.opt; in ip_queue_xmit() local
368 if(opt && opt->srr) in ip_queue_xmit()
369 daddr = opt->faddr; in ip_queue_xmit()
385 if (opt && opt->is_strictroute && rt->rt_dst != rt->rt_gateway) in ip_queue_xmit()
389 iph = (struct iphdr *) skb_push(skb, sizeof(struct iphdr) + (opt ? opt->optlen : 0)); in ip_queue_xmit()
403 if(opt && opt->optlen) { in ip_queue_xmit()
404 iph->ihl += opt->optlen >> 2; in ip_queue_xmit()
405 ip_options_build(skb, opt, sk->daddr, rt, 0); in ip_queue_xmit()
457 struct ip_options *opt = ipc->opt; in ip_build_xmit_slow() local
466 if (opt) { in ip_build_xmit_slow()
467 fragheaderlen = sizeof(struct iphdr) + opt->optlen; in ip_build_xmit_slow()
468 maxfraglen = ((mtu-sizeof(struct iphdr)-opt->optlen) & ~7) + fragheaderlen; in ip_build_xmit_slow()
571 if (opt) { in ip_build_xmit_slow()
572 iph->ihl += opt->optlen>>2; in ip_build_xmit_slow()
573 ip_options_build(skb, opt, in ip_build_xmit_slow()
675 if (length > rt->u.dst.pmtu || ipc->opt != NULL) in ip_build_xmit()
969 struct ip_options opt; in ip_send_reply() member
976 if (ip_options_echo(&replyopts.opt, skb)) in ip_send_reply()
980 ipc.opt = NULL; in ip_send_reply()
982 if (replyopts.opt.optlen) { in ip_send_reply()
983 ipc.opt = &replyopts.opt; in ip_send_reply()
985 if (ipc.opt->srr) in ip_send_reply()
986 daddr = replyopts.opt.faddr; in ip_send_reply()