|
|
@@ -54,7 +54,7 @@ void PrintSocketAddress(const struct sockaddr *address, FILE *stream) {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-// Mentioned as a possible exercise in 3.2.1
|
|
|
+// Chapter 3 exercise 4
|
|
|
int AF_to_PF(const int af) {
|
|
|
switch (af) {
|
|
|
case AF_UNSPEC:
|
|
|
@@ -151,7 +151,7 @@ int AF_to_PF(const int af) {
|
|
|
return PF_MAX;
|
|
|
}
|
|
|
|
|
|
- // Handle entries that (currently) have the same value
|
|
|
+ // Handle entries that (currently) have duplicate values
|
|
|
if (af == AF_UNIX) {
|
|
|
return PF_UNIX;
|
|
|
}
|