Lines Matching defs:last
202 struct inpcb *last = 0;
224 if (last) {
231 if (ipsec4_in_reject_so(n, last->inp_socket)) {
241 if (mac_inpcb_check_deliver(last, n, AF_INET,
250 if ((last->inp_flags & INP_CONTROLOPTS) != 0 ||
251 (last->inp_socket->so_options & SO_TIMESTAMP) != 0 ||
252 (last->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
253 ret = ip_savecontrol(last, &opts, ip, n);
257 last = inp;
261 if (last->inp_flags & INP_STRIPHDR) {
266 so_recv_data_stat(last->inp_socket, m, 0);
267 if (sbappendaddr(&last->inp_socket->so_rcv,
270 sorwakeup(last->inp_socket);
280 last = inp;
286 if (ipsec_bypass == 0 && last) {
287 if (ipsec4_in_reject_so(m, last->inp_socket)) {
297 if (last && skipit == 0) {
298 if (mac_inpcb_check_deliver(last, m, AF_INET, SOCK_RAW) != 0) {
305 if (last) {
306 if ((last->inp_flags & INP_CONTROLOPTS) != 0 ||
307 (last->inp_socket->so_options & SO_TIMESTAMP) != 0 ||
308 (last->inp_socket->so_options & SO_TIMESTAMP_MONOTONIC) != 0) {
309 ret = ip_savecontrol(last, &opts, ip, m);
316 if (last->inp_flags & INP_STRIPHDR) {
321 so_recv_data_stat(last->inp_socket, m, 0);
322 if (sbappendaddr(&last->inp_socket->so_rcv,
324 sorwakeup(last->inp_socket);
927 * it will handle the socket dealloc on last reference
948 /* cleanup after last reference */