Lines Matching defs:opt

150 			  __be32 saddr, __be32 daddr, struct ip_options_rcu *opt,
159 skb_push(skb, sizeof(struct iphdr) + (opt ? opt->opt.optlen : 0));
166 iph->daddr = (opt && opt->opt.srr ? opt->opt.faddr : daddr);
184 if (opt && opt->opt.optlen) {
185 iph->ihl += opt->opt.optlen>>2;
186 ip_options_build(skb, &opt->opt, daddr, rt);
484 if (inet_opt && inet_opt->opt.srr)
485 daddr = inet_opt->opt.faddr;
505 if (inet_opt && inet_opt->opt.is_strictroute && rt->rt_uses_gateway)
509 skb_push(skb, sizeof(struct iphdr) + (inet_opt ? inet_opt->opt.optlen : 0));
523 if (inet_opt && inet_opt->opt.optlen) {
524 iph->ihl += inet_opt->opt.optlen >> 2;
525 ip_options_build(skb, &inet_opt->opt, inet->inet_daddr, rt);
847 if (first_frag && IPCB(skb)->opt.optlen) {
848 /* ipcb->opt is not populated for frags
852 IPCB(iter.frag)->opt.optlen =
853 IPCB(skb)->opt.optlen;
964 struct ip_options *opt = cork->opt;
987 fragheaderlen = sizeof(struct iphdr) + (opt ? opt->optlen : 0);
993 mtu - (opt ? opt->optlen : 0));
1286 struct ip_options_rcu *opt;
1302 opt = ipc->opt;
1303 if (opt) {
1304 if (!cork->opt) {
1305 cork->opt = kmalloc(sizeof(struct ip_options) + 40,
1307 if (unlikely(!cork->opt))
1310 memcpy(cork->opt, &opt->opt, sizeof(struct ip_options) + opt->opt.optlen);
1373 kfree(cork->opt);
1374 cork->opt = NULL;
1392 struct ip_options *opt = NULL;
1434 opt = cork->opt;
1453 if (opt) {
1454 iph->ihl += opt->optlen >> 2;
1455 ip_options_build(skb, opt, cork->addr, rt);
1553 cork->opt = NULL;
1601 if (__ip_options_echo(net, &replyopts.opt.opt, skb, sopt))
1608 if (replyopts.opt.opt.optlen) {
1609 ipc.opt = &replyopts.opt;
1611 if (replyopts.opt.opt.srr)
1612 daddr = replyopts.opt.opt.faddr;