Skip to content

Commit d1aa515

Browse files
committed
Fix warnings
1 parent 65dbfe9 commit d1aa515

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

junixsocket-darwin/src/main/java/org/newsclub/net/unix/darwin/system/AFSYSTEMDatagramSocket.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,14 @@ public int getNodeIdentity(WellKnownKernelControlNames name) throws IOException
109109
return getNodeIdentity(name.getControlName());
110110
}
111111

112+
/**
113+
* Retrieves the number of kernel control names registered with the kernel.
114+
*
115+
* An {@link IOException} is thrown if the count not be retrieved.
116+
*
117+
* @return The count.
118+
* @throws IOException on error.
119+
*/
112120
public int getKernelControlIdCount() throws IOException {
113121
return getImplExtensions().getKernelControlIdCount(getFileDescriptor());
114122
}

junixsocket-darwin/src/main/java/org/newsclub/net/unix/darwin/system/WellKnownKernelControlNames.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public enum WellKnownKernelControlNames {
5151
* See {@code http://newosxbook.com/src.jl?tree=listings&file=lsock.c} as well as
5252
* https://github.com/packetzero/libntstat
5353
*
54-
* @see {@code xnu/bsd/net/ntstat.c}
54+
* @see "xnu/bsd/net/ntstat.c"
5555
*/
5656
NETWORK_STATISTICS("com.apple.network.statistics"), //
5757

@@ -66,49 +66,49 @@ public enum WellKnownKernelControlNames {
6666
/**
6767
* {@code com.apple.net.netagent}.
6868
*
69-
* @see {@code xnu/bsd/net/network_agent.c}
69+
* @see "xnu/bsd/net/network_agent.c"
7070
*/
7171
NET_NETAGENT("com.apple.net.netagent"), //
7272

7373
/**
7474
* {@code com.apple.content-filter}.
7575
*
76-
* @see @{code xnu/bsd/net/content_filter.c}
76+
* @see "xnu/bsd/net/content_filter.c"
7777
*/
7878
CONTENT_FILTER("com.apple.content-filter"), //
7979

8080
/**
8181
* {@code com.apple.net.utun_control}. User-mode tunneling (VPN).
8282
*
83-
* @see {@code xnu/bsd/net/if_utun.h}
83+
* @see "xnu/bsd/net/if_utun.h"
8484
*/
8585
UTUN_CONTROL("com.apple.net.utun_control"), //
8686

8787
/**
8888
* {@code com.apple.net.ipsec_control}.
8989
*
90-
* @see {@code xnu/bsd/net/if_ipsec.c}
90+
* @see "xnu/bsd/net/if_ipsec.c"
9191
*/
9292
IPSEC_CONTROL("com.apple.net.ipsec_control"), //
9393

9494
/**
9595
* {@code com.apple.network.tcp_ccdebug}. Requires SOCK_STREAM.
9696
*
97-
* @see {@code xnu/bsd/netinet/tcp_cc.c}
97+
* @see "xnu/bsd/netinet/tcp_cc.c"
9898
*/
9999
NETWORK_TCP_CCDEBUG("com.apple.network.tcp_ccdebug"), //
100100

101101
/**
102102
* {@code com.apple.network.advisory}. MPTCP-related.
103103
*
104-
* @see {@code xnu/bsd/netinet/mptcp_subr.c}
104+
* @see "xnu/bsd/netinet/mptcp_subr.c"
105105
*/
106106
NETWORK_ADVISORY("com.apple.network.advisory"), //
107107

108108
/**
109109
* {@code com.apple.net.rvi_control}.
110110
*
111-
* @see {@code xnu/bsd/net/remote_vif.c}
111+
* @see "xnu/bsd/net/remote_vif.c"
112112
*/
113113
NET_RVI_CONTROL("com.apple.net.rvi_control"), //
114114

@@ -180,14 +180,14 @@ public enum WellKnownKernelControlNames {
180180
/**
181181
* {@code com.apple.net.kctl_test}.
182182
*
183-
* @see {@code xnu/bsd/net/kctl_test.c}
183+
* @see "xnu/bsd/net/kctl_test.c"
184184
*/
185185
NET_KCTL_TEST("com.apple.net.kctl_test"), //
186186

187187
/**
188188
* {@code com.apple.net.necp_control}.
189189
*
190-
* @see {@code xnu/bsd/net/necp.h}
190+
* @see "xnu/bsd/net/necp.h"
191191
*/
192192
NET_NECP_CONTROL("com.apple.net.necp_control"),
193193

0 commit comments

Comments
 (0)