Deleted Added
full compact
if_pflog.c (147256) if_pflog.c (148887)
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 147256 2005-06-10 16:49:24Z brooks $ */
1/* $FreeBSD: head/sys/contrib/pf/net/if_pflog.c 148887 2005-08-09 10:20:02Z rwatson $ */
2/* $OpenBSD: if_pflog.c,v 1.12 2004/05/19 17:50:51 dhartmei Exp $ */
3
4/*
5 * The authors of this code are John Ioannidis (ji@tla.org),
6 * Angelos D. Keromytis (kermit@csd.uch.gr) and
7 * Niels Provos (provos@physnet.uni-hamburg.de).
8 *
9 * This code was written by John Ioannidis for BSD/OS in Athens, Greece,

--- 257 unchanged lines hidden (view full) ---

267pflogioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
268{
269 switch (cmd) {
270 case SIOCSIFADDR:
271 case SIOCAIFADDR:
272 case SIOCSIFDSTADDR:
273 case SIOCSIFFLAGS:
274 if (ifp->if_flags & IFF_UP)
2/* $OpenBSD: if_pflog.c,v 1.12 2004/05/19 17:50:51 dhartmei Exp $ */
3
4/*
5 * The authors of this code are John Ioannidis (ji@tla.org),
6 * Angelos D. Keromytis (kermit@csd.uch.gr) and
7 * Niels Provos (provos@physnet.uni-hamburg.de).
8 *
9 * This code was written by John Ioannidis for BSD/OS in Athens, Greece,

--- 257 unchanged lines hidden (view full) ---

267pflogioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
268{
269 switch (cmd) {
270 case SIOCSIFADDR:
271 case SIOCAIFADDR:
272 case SIOCSIFDSTADDR:
273 case SIOCSIFFLAGS:
274 if (ifp->if_flags & IFF_UP)
275 ifp->if_flags |= IFF_RUNNING;
275 ifp->if_drv_flags |= IFF_DRV_RUNNING;
276 else
276 else
277 ifp->if_flags &= ~IFF_RUNNING;
277 ifp->if_drv_flags &= ~IFF_DRV_RUNNING;
278 break;
279 default:
280 return (EINVAL);
281 }
282
283 return (0);
284}
285

--- 102 unchanged lines hidden ---
278 break;
279 default:
280 return (EINVAL);
281 }
282
283 return (0);
284}
285

--- 102 unchanged lines hidden ---