Deleted Added
full compact
16c16
< * $FreeBSD: head/sys/net/if_tun.c 111741 2003-03-02 15:50:23Z des $
---
> * $FreeBSD: head/sys/net/if_tun.c 111742 2003-03-02 15:56:49Z des $
138c138
< tunmodevent(module_t mod, int type, void *data)
---
> tunmodevent(module_t mod, int type, void *data)
145,146c145,146
< switch (type) {
< case MOD_LOAD:
---
> switch (type) {
> case MOD_LOAD:
165,166c165,166
< break;
< case MOD_UNLOAD:
---
> break;
> case MOD_UNLOAD:
195,197c195,197
< }
< return 0;
< }
---
> }
> return 0;
> }
199,201c199,201
< static moduledata_t tun_mod = {
< "if_tun",
< tunmodevent,
---
> static moduledata_t tun_mod = {
> "if_tun",
> tunmodevent,
203c203
< };
---
> };
317c317
< register struct ifaddr *ifa;
---
> struct ifaddr *ifa;
343c343
< register struct ifaddr *ifa;
---
> struct ifaddr *ifa;
351c351
< for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa;
---
> for (ifa = TAILQ_FIRST(&ifp->if_addrhead); ifa;
535c535
< struct tuninfo *tunp;
---
> struct tuninfo *tunp;
538,539c538,539
< case TUNSIFINFO:
< tunp = (struct tuninfo *)data;
---
> case TUNSIFINFO:
> tunp = (struct tuninfo *)data;
542c542
< if (tp->tun_if.if_mtu != tunp->mtu
---
> if (tp->tun_if.if_mtu != tunp->mtu
545,554c545,554
< tp->tun_if.if_mtu = tunp->mtu;
< tp->tun_if.if_type = tunp->type;
< tp->tun_if.if_baudrate = tunp->baudrate;
< break;
< case TUNGIFINFO:
< tunp = (struct tuninfo *)data;
< tunp->mtu = tp->tun_if.if_mtu;
< tunp->type = tp->tun_if.if_type;
< tunp->baudrate = tp->tun_if.if_baudrate;
< break;
---
> tp->tun_if.if_mtu = tunp->mtu;
> tp->tun_if.if_type = tunp->type;
> tp->tun_if.if_baudrate = tunp->baudrate;
> break;
> case TUNGIFINFO:
> tunp = (struct tuninfo *)data;
> tunp->mtu = tp->tun_if.if_mtu;
> tunp->type = tp->tun_if.if_type;
> tunp->baudrate = tp->tun_if.if_baudrate;
> break;
572c572
< } else
---
> } else
609c609
< for( *(int *)data = 0; mb != 0; mb = mb->m_next)
---
> for( *(int *)data = 0; mb != 0; mb = mb->m_next)