From a48d4a16ee3b77a49002d63d3ea27a46744d6352 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 3 Dec 2009 02:35:21 +0000 Subject: Reformat new comments git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23441 dc483132-0cff-0310-8789-dd5450dbe970 --- src/kadmin/server/network.c | 34 ++++++++++++++++++++-------------- src/kdc/network.c | 34 ++++++++++++++++++++-------------- 2 files changed, 40 insertions(+), 28 deletions(-) (limited to 'src') diff --git a/src/kadmin/server/network.c b/src/kadmin/server/network.c index 3cc0d74..c8ce4f1 100644 --- a/src/kadmin/server/network.c +++ b/src/kadmin/server/network.c @@ -1146,12 +1146,14 @@ static void init_addr(krb5_fulladdr *faddr, struct sockaddr *sa) } } -/* This holds whatever additional information might be needed to - properly send back to the client from the correct local address. - - In this case, we only need one datum so far: On Mac OS X, the - kernel doesn't seem to like sending from link-local addresses - unless we specify the correct interface. */ +/* + * This holds whatever additional information might be needed to + * properly send back to the client from the correct local address. + * + * In this case, we only need one datum so far: On Mac OS X, the + * kernel doesn't seem to like sending from link-local addresses + * unless we specify the correct interface. + */ union aux_addressing_info { int ipv6_ifindex; @@ -1308,12 +1310,14 @@ send_to_from(int s, void *buf, size_t len, int flags, struct in6_pktinfo *p = (struct in6_pktinfo *)CMSG_DATA(cmsgptr); const struct sockaddr_in6 *from6 = (const struct sockaddr_in6 *)from; p->ipi6_addr = from6->sin6_addr; - /* Because of the possibility of asymmetric routing, we - normally don't want to specify an interface. However, - Mac OS X doesn't like sending from a link-local address - (which can come up in testing at least, if you wind up - with a "foo.local" name) unless we do specify the - interface. */ + /* + * Because of the possibility of asymmetric routing, we + * normally don't want to specify an interface. However, + * Mac OS X doesn't like sending from a link-local address + * (which can come up in testing at least, if you wind up + * with a "foo.local" name) unless we do specify the + * interface. + */ if (IN6_IS_ADDR_LINKLOCAL(&from6->sin6_addr)) p->ipi6_ifindex = auxaddr->ipv6_ifindex; /* otherwise, already zero */ @@ -1460,8 +1464,10 @@ static void process_packet(void *handle, (struct sockaddr *)&daddr, daddr_len, &auxaddr); if (cc == -1) { - /* Note that the local address (daddr*) has no port number - info associated with it. */ + /* + * Note that the local address (daddr*) has no port number + * info associated with it. + */ char saddrbuf[NI_MAXHOST], sportbuf[NI_MAXSERV]; char daddrbuf[NI_MAXHOST]; int e = errno; diff --git a/src/kdc/network.c b/src/kdc/network.c index 24a6137..00218a7 100644 --- a/src/kdc/network.c +++ b/src/kdc/network.c @@ -1003,12 +1003,14 @@ static void init_addr(krb5_fulladdr *faddr, struct sockaddr *sa) } } -/* This holds whatever additional information might be needed to - properly send back to the client from the correct local address. - - In this case, we only need one datum so far: On Mac OS X, the - kernel doesn't seem to like sending from link-local addresses - unless we specify the correct interface. */ +/* + * This holds whatever additional information might be needed to + * properly send back to the client from the correct local address. + * + * In this case, we only need one datum so far: On Mac OS X, the + * kernel doesn't seem to like sending from link-local addresses + * unless we specify the correct interface. + */ union aux_addressing_info { int ipv6_ifindex; @@ -1164,12 +1166,14 @@ send_to_from(int s, void *buf, size_t len, int flags, struct in6_pktinfo *p = (struct in6_pktinfo *)CMSG_DATA(cmsgptr); const struct sockaddr_in6 *from6 = (const struct sockaddr_in6 *)from; p->ipi6_addr = from6->sin6_addr; - /* Because of the possibility of asymmetric routing, we - normally don't want to specify an interface. However, - Mac OS X doesn't like sending from a link-local address - (which can come up in testing at least, if you wind up - with a "foo.local" name) unless we do specify the - interface. */ + /* + * Because of the possibility of asymmetric routing, we + * normally don't want to specify an interface. However, + * Mac OS X doesn't like sending from a link-local address + * (which can come up in testing at least, if you wind up + * with a "foo.local" name) unless we do specify the + * interface. + */ if (IN6_IS_ADDR_LINKLOCAL(&from6->sin6_addr)) p->ipi6_ifindex = auxaddr->ipv6_ifindex; /* otherwise, already zero */ @@ -1288,8 +1292,10 @@ static void process_packet(struct connection *conn, int selflags) (struct sockaddr *)&daddr, daddr_len, &auxaddr); if (cc == -1) { - /* Note that the local address (daddr*) has no port number - info associated with it. */ + /* + * Note that the local address (daddr*) has no port number + * info associated with it. + */ char saddrbuf[NI_MAXHOST], sportbuf[NI_MAXSERV]; char daddrbuf[NI_MAXHOST]; int e = errno; -- cgit v1.1