Lines Matching refs:sopt
86 struct ip_options *sopt; in ip_options_echo() local
96 sopt = &(IPCB(skb)->opt); in ip_options_echo()
98 if (sopt->optlen == 0) { in ip_options_echo()
111 if (sopt->rr) { in ip_options_echo()
112 optlen = sptr[sopt->rr+1]; in ip_options_echo()
113 soffset = sptr[sopt->rr+2]; in ip_options_echo()
115 memcpy(dptr, sptr+sopt->rr, optlen); in ip_options_echo()
116 if (sopt->rr_needaddr && soffset <= optlen) { in ip_options_echo()
125 if (sopt->ts) { in ip_options_echo()
126 optlen = sptr[sopt->ts+1]; in ip_options_echo()
127 soffset = sptr[sopt->ts+2]; in ip_options_echo()
129 memcpy(dptr, sptr+sopt->ts, optlen); in ip_options_echo()
131 if (sopt->ts_needaddr) { in ip_options_echo()
137 if (sopt->ts_needtime) { in ip_options_echo()
162 if (sopt->srr) { in ip_options_echo()
163 unsigned char * start = sptr+sopt->srr; in ip_options_echo()
191 dopt->is_strictroute = sopt->is_strictroute; in ip_options_echo()