diff options
author | Ken Raeburn <raeburn@mit.edu> | 2009-12-03 02:35:21 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2009-12-03 02:35:21 +0000 |
commit | a48d4a16ee3b77a49002d63d3ea27a46744d6352 (patch) | |
tree | 3d32ce756641cceb336d235c044f6ddd2d6459f2 /src/kadmin/server/network.c | |
parent | eba0ec199690e944da56f1398a9ab407f95af0d5 (diff) | |
download | krb5-a48d4a16ee3b77a49002d63d3ea27a46744d6352.zip krb5-a48d4a16ee3b77a49002d63d3ea27a46744d6352.tar.gz krb5-a48d4a16ee3b77a49002d63d3ea27a46744d6352.tar.bz2 |
Reformat new comments
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23441 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/kadmin/server/network.c')
-rw-r--r-- | src/kadmin/server/network.c | 34 |
1 files changed, 20 insertions, 14 deletions
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; |