Searched refs:dopt (Results 1 – 3 of 3) sorted by relevance
84 int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb) in ip_options_echo() argument92 memset(dopt, 0, sizeof(struct ip_options)); in ip_options_echo()94 dopt->is_data = 1; in ip_options_echo()99 dopt->optlen = 0; in ip_options_echo()104 dptr = dopt->__data; in ip_options_echo()114 dopt->rr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()120 dopt->rr_needaddr = 1; in ip_options_echo()123 dopt->optlen += optlen; in ip_options_echo()128 dopt->ts = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()134 dopt->ts_needaddr = 1; in ip_options_echo()[all …]
1352 struct ip_options *dopt = NULL; in tcp_v4_save_options() local1356 dopt = kmalloc(opt_size, GFP_ATOMIC); in tcp_v4_save_options()1357 if (dopt) { in tcp_v4_save_options()1358 if (ip_options_echo(dopt, skb)) { in tcp_v4_save_options()1359 kfree(dopt); in tcp_v4_save_options()1360 dopt = NULL; in tcp_v4_save_options()1364 return dopt; in tcp_v4_save_options()
258 extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb);