raw_ip.c (3b6aad64bf372fff16a24e502aceacff87d77b50) | raw_ip.c (fb95b5d3c3d91d5c06e16abf161c11d4be32fb7a) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 145 unchanged lines hidden (view full) --- 154 if (ipsec4_in_reject_so(n, last->inp_socket)) { 155 policyfail = 1; 156 ipsecstat.in_polvio++; 157 /* do not inject data to pcb */ 158 } 159#endif /*IPSEC*/ 160#ifdef MAC 161 if (policyfail == 0 && | 1/* 2 * Copyright (c) 1982, 1986, 1988, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 145 unchanged lines hidden (view full) --- 154 if (ipsec4_in_reject_so(n, last->inp_socket)) { 155 policyfail = 1; 156 ipsecstat.in_polvio++; 157 /* do not inject data to pcb */ 158 } 159#endif /*IPSEC*/ 160#ifdef MAC 161 if (policyfail == 0 && |
162 mac_check_socket_receive(last->inp_socket, | 162 mac_check_socket_deliver(last->inp_socket, |
163 n) != 0) 164 policyfail = 1; 165#endif 166 } 167 if (policyfail) 168 m_freem(n); 169 else if (n) { 170 if (last->inp_flags & INP_CONTROLOPTS || --- 20 unchanged lines hidden (view full) --- 191 m_freem(m); 192 ipsecstat.in_polvio++; 193 ipstat.ips_delivered--; 194 /* do not inject data to pcb */ 195 return; 196 } 197#endif /*IPSEC*/ 198#ifdef MAC | 163 n) != 0) 164 policyfail = 1; 165#endif 166 } 167 if (policyfail) 168 m_freem(n); 169 else if (n) { 170 if (last->inp_flags & INP_CONTROLOPTS || --- 20 unchanged lines hidden (view full) --- 191 m_freem(m); 192 ipsecstat.in_polvio++; 193 ipstat.ips_delivered--; 194 /* do not inject data to pcb */ 195 return; 196 } 197#endif /*IPSEC*/ 198#ifdef MAC |
199 if (mac_check_socket_receive(last->inp_socket, m) != 0) { | 199 if (mac_check_socket_deliver(last->inp_socket, m) != 0) { |
200 m_freem(m); 201 ipstat.ips_delivered--; 202 return; 203 } 204#endif 205 if (last->inp_flags & INP_CONTROLOPTS || 206 last->inp_socket->so_options & SO_TIMESTAMP) 207 ip_savecontrol(last, &opts, ip, m); --- 525 unchanged lines hidden --- | 200 m_freem(m); 201 ipstat.ips_delivered--; 202 return; 203 } 204#endif 205 if (last->inp_flags & INP_CONTROLOPTS || 206 last->inp_socket->so_options & SO_TIMESTAMP) 207 ip_savecontrol(last, &opts, ip, m); --- 525 unchanged lines hidden --- |