if_pfsync.c (148015) | if_pfsync.c (148887) |
---|---|
1/* $FreeBSD: head/sys/contrib/pf/net/if_pfsync.c 148015 2005-07-14 22:22:51Z mlaier $ */ | 1/* $FreeBSD: head/sys/contrib/pf/net/if_pfsync.c 148887 2005-08-09 10:20:02Z rwatson $ */ |
2/* $OpenBSD: if_pfsync.c,v 1.46 2005/02/20 15:58:38 mcbride Exp $ */ 3 4/* 5 * Copyright (c) 2002 Michael Shalayeff 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 975 unchanged lines hidden (view full) --- 985 int s, error; 986 987 switch (cmd) { 988 case SIOCSIFADDR: 989 case SIOCAIFADDR: 990 case SIOCSIFDSTADDR: 991 case SIOCSIFFLAGS: 992 if (ifp->if_flags & IFF_UP) | 2/* $OpenBSD: if_pfsync.c,v 1.46 2005/02/20 15:58:38 mcbride Exp $ */ 3 4/* 5 * Copyright (c) 2002 Michael Shalayeff 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions --- 975 unchanged lines hidden (view full) --- 985 int s, error; 986 987 switch (cmd) { 988 case SIOCSIFADDR: 989 case SIOCAIFADDR: 990 case SIOCSIFDSTADDR: 991 case SIOCSIFFLAGS: 992 if (ifp->if_flags & IFF_UP) |
993 ifp->if_flags |= IFF_RUNNING; | 993 ifp->if_drv_flags |= IFF_DRV_RUNNING; |
994 else | 994 else |
995 ifp->if_flags &= ~IFF_RUNNING; | 995 ifp->if_drv_flags &= ~IFF_DRV_RUNNING; |
996 break; 997 case SIOCSIFMTU: 998 if (ifr->ifr_mtu < PFSYNC_MINMTU) 999 return (EINVAL); 1000 if (ifr->ifr_mtu > MCLBYTES) 1001 ifr->ifr_mtu = MCLBYTES; 1002 s = splnet(); 1003#ifdef __FreeBSD__ --- 867 unchanged lines hidden --- | 996 break; 997 case SIOCSIFMTU: 998 if (ifr->ifr_mtu < PFSYNC_MINMTU) 999 return (EINVAL); 1000 if (ifr->ifr_mtu > MCLBYTES) 1001 ifr->ifr_mtu = MCLBYTES; 1002 s = splnet(); 1003#ifdef __FreeBSD__ --- 867 unchanged lines hidden --- |