Home
last modified time | relevance | path

Searched refs:opt2 (Results 1 – 2 of 2) sorted by relevance

/net/ipv6/
Dexthdrs.c716 struct ipv6_txoptions *opt2; in ipv6_dup_options() local
718 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()
719 if (opt2) { in ipv6_dup_options()
720 long dif = (char *)opt2 - (char *)opt; in ipv6_dup_options()
721 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()
722 if (opt2->hopopt) in ipv6_dup_options()
723 *((char **)&opt2->hopopt) += dif; in ipv6_dup_options()
724 if (opt2->dst0opt) in ipv6_dup_options()
725 *((char **)&opt2->dst0opt) += dif; in ipv6_dup_options()
726 if (opt2->dst1opt) in ipv6_dup_options()
[all …]
/net/ceph/
Dceph_common.c129 struct ceph_options *opt2 = client->options; in ceph_compare_options() local
134 ret = memcmp(opt1, opt2, ofs); in ceph_compare_options()
138 ret = strcmp_null(opt1->name, opt2->name); in ceph_compare_options()
142 if (opt1->key && !opt2->key) in ceph_compare_options()
144 if (!opt1->key && opt2->key) in ceph_compare_options()
146 if (opt1->key && opt2->key) { in ceph_compare_options()
147 if (opt1->key->type != opt2->key->type) in ceph_compare_options()
149 if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) in ceph_compare_options()
151 if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) in ceph_compare_options()
153 if (opt1->key->len != opt2->key->len) in ceph_compare_options()
[all …]