Searched refs:opt2 (Results 1 – 2 of 2) sorted by relevance
993 struct ipv6_txoptions *opt2; in ipv6_dup_options() local995 opt2 = sock_kmalloc(sk, opt->tot_len, GFP_ATOMIC); in ipv6_dup_options()996 if (opt2) { in ipv6_dup_options()997 long dif = (char *)opt2 - (char *)opt; in ipv6_dup_options()998 memcpy(opt2, opt, opt->tot_len); in ipv6_dup_options()999 if (opt2->hopopt) in ipv6_dup_options()1000 *((char **)&opt2->hopopt) += dif; in ipv6_dup_options()1001 if (opt2->dst0opt) in ipv6_dup_options()1002 *((char **)&opt2->dst0opt) += dif; in ipv6_dup_options()1003 if (opt2->dst1opt) in ipv6_dup_options()[all …]
135 struct ceph_options *opt2 = client->options; in ceph_compare_options() local147 ret = memcmp(opt1, opt2, ofs); in ceph_compare_options()151 ret = strcmp_null(opt1->name, opt2->name); in ceph_compare_options()155 if (opt1->key && !opt2->key) in ceph_compare_options()157 if (!opt1->key && opt2->key) in ceph_compare_options()159 if (opt1->key && opt2->key) { in ceph_compare_options()160 if (opt1->key->type != opt2->key->type) in ceph_compare_options()162 if (opt1->key->created.tv_sec != opt2->key->created.tv_sec) in ceph_compare_options()164 if (opt1->key->created.tv_nsec != opt2->key->created.tv_nsec) in ceph_compare_options()166 if (opt1->key->len != opt2->key->len) in ceph_compare_options()[all …]