summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>1999-05-12 22:58:49 +0000
committerHakan Olsson <ho@cvs.openbsd.org>1999-05-12 22:58:49 +0000
commit9c68dd3c30bfe3e35911127cf8ae3d0ad517f3a2 (patch)
tree685a925255b04fe9da503da5c3a2fa441130e96b /sys/netinet
parent91330aee898d5603ce4dc4f957516cb5f7798bc9 (diff)
Follow local indentation style.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_esp_new.c36
-rw-r--r--sys/netinet/ip_esp_old.c34
2 files changed, 35 insertions, 35 deletions
diff --git a/sys/netinet/ip_esp_new.c b/sys/netinet/ip_esp_new.c
index cb345c5bfce..b725edacc72 100644
--- a/sys/netinet/ip_esp_new.c
+++ b/sys/netinet/ip_esp_new.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp_new.c,v 1.41 1999/05/12 21:11:42 ho Exp $ */
+/* $OpenBSD: ip_esp_new.c,v 1.42 1999/05/12 22:58:47 ho Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -781,7 +781,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
struct ip *ip, ipo;
int i, ilen, ohlen, nh, rlen, plen, padding, rest;
struct esp_new espo;
- struct mbuf *mi, *mo = (struct mbuf *)NULL;
+ struct mbuf *mi, *mo = (struct mbuf *) NULL;
u_char *pad, *idat, *odat, *ivp;
u_char iv[ESP_MAX_IVS], blk[ESP_MAX_BLKS], auth[AH_ALEN_MAX], opts[40];
union {
@@ -801,7 +801,7 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
espstat.esps_output++;
/*
- * Loop through mbuf chain; if we find an M_EXT mbuf with
+ * Loop through mbuf chain; if we find an M_EXT mbuf with
* more than one reference, replace the rest of the chain.
*/
mi = m;
@@ -809,28 +809,28 @@ esp_new_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
(!(mi->m_flags & M_EXT) ||
mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1))
{
- mo = mi;
- mi = mi->m_next;
+ mo = mi;
+ mi = mi->m_next;
}
if (mi != NULL)
{
- /* Replace the rest of the mbuf chain. */
- struct mbuf *n = m_copym2 (mi, 0, M_COPYALL, M_DONTWAIT);
+ /* Replace the rest of the mbuf chain. */
+ struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT);
- if (n == NULL)
- {
- espstat.esps_hdrops++;
- m_freem(m);
- return ENOBUFS;
- }
+ if (n == NULL)
+ {
+ espstat.esps_hdrops++;
+ m_freem(m);
+ return ENOBUFS;
+ }
- if (mo != NULL)
- mo->m_next = n;
- else
- m = n;
+ if (mo != NULL)
+ mo->m_next = n;
+ else
+ m = n;
- m_freem(mi);
+ m_freem(mi);
}
m = m_pullup(m, sizeof (struct ip)); /* Get IP header in one mbuf */
diff --git a/sys/netinet/ip_esp_old.c b/sys/netinet/ip_esp_old.c
index 2d33b230eef..af389a112b8 100644
--- a/sys/netinet/ip_esp_old.c
+++ b/sys/netinet/ip_esp_old.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_esp_old.c,v 1.32 1999/05/12 21:11:42 ho Exp $ */
+/* $OpenBSD: ip_esp_old.c,v 1.33 1999/05/12 22:58:48 ho Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
@@ -505,7 +505,7 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
struct ip *ip, ipo;
int i, ilen, ohlen, nh, rlen, plen, padding, rest;
u_int32_t spi;
- struct mbuf *mi, *mo = (struct mbuf *)NULL;
+ struct mbuf *mi, *mo = (struct mbuf *) NULL;
u_char *pad, *idat, *odat, *ivp;
u_char iv[ESP_3DES_IVS], blk[ESP_3DES_IVS], opts[40];
int iphlen, blks;
@@ -523,28 +523,28 @@ esp_old_output(struct mbuf *m, struct sockaddr_encap *gw, struct tdb *tdb,
(!(mi->m_flags & M_EXT) ||
mclrefcnt[mtocl(mi->m_ext.ext_buf)] <= 1))
{
- mo = mi;
- mi = mi->m_next;
+ mo = mi;
+ mi = mi->m_next;
}
if (mi != NULL)
{
- /* Replace the rest of the mbuf chain. */
- struct mbuf *n = m_copym2 (mi, 0, M_COPYALL, M_DONTWAIT);
+ /* Replace the rest of the mbuf chain. */
+ struct mbuf *n = m_copym2(mi, 0, M_COPYALL, M_DONTWAIT);
- if (n == NULL)
- {
- espstat.esps_hdrops++;
- m_freem(m);
- return ENOBUFS;
- }
+ if (n == NULL)
+ {
+ espstat.esps_hdrops++;
+ m_freem(m);
+ return ENOBUFS;
+ }
- if (mo != NULL)
- mo->m_next = n;
- else
- m = n;
+ if (mo != NULL)
+ mo->m_next = n;
+ else
+ m = n;
- m_freem(mi);
+ m_freem(mi);
}
m = m_pullup(m, sizeof(struct ip));