Searched refs:dopt (Results 1 – 3 of 3) sorted by relevance
86 int ip_options_echo(struct ip_options * dopt, struct sk_buff * skb) in ip_options_echo() argument94 memset(dopt, 0, sizeof(struct ip_options)); in ip_options_echo()99 dopt->optlen = 0; in ip_options_echo()104 dptr = dopt->__data; in ip_options_echo()111 dopt->rr = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()117 dopt->rr_needaddr = 1; in ip_options_echo()120 dopt->optlen += optlen; in ip_options_echo()125 dopt->ts = dopt->optlen + sizeof(struct iphdr); in ip_options_echo()131 dopt->ts_needaddr = 1; in ip_options_echo()138 dopt->ts_needtime = 1; in ip_options_echo()[all …]
827 struct ip_options *dopt = NULL; in tcp_v4_save_options() local831 dopt = kmalloc(opt_size, GFP_ATOMIC); in tcp_v4_save_options()832 if (dopt) { in tcp_v4_save_options()833 if (ip_options_echo(dopt, skb)) { in tcp_v4_save_options()834 kfree(dopt); in tcp_v4_save_options()835 dopt = NULL; in tcp_v4_save_options()839 return dopt; in tcp_v4_save_options()
420 extern int ip_options_echo(struct ip_options *dopt, struct sk_buff *skb);