Skip to content

Commit

Permalink
Fixed javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
SecureNetWizard committed Jan 20, 2024
1 parent 22244df commit 3a0dddc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/org/jnetpcap/constant/ArpHdr.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public enum ArpHdr implements IntSupplier {
/** Cisco HDLC. */
ARPHDR_CISCO(513, "CISCO"),

/** */
/** HDLC */
ARPHRD_HDLC(513, "CISCO"),

/** LAPB. */
Expand Down
8 changes: 7 additions & 1 deletion src/main/java/org/jnetpcap/constant/PcapIfFlag.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2023 Sly Technologies Inc
* Copyright 2024 Sly Technologies Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -116,6 +116,12 @@ public static Set<PcapIfFlag> toEnumSet(int flags) {
return set;
}

/**
* To a set of PcapIf flags..
*
* @param flags the bitmask of flags
* @return the set of enum constants
*/
public static Set<String> toLabelSet(int flags) {
return toEnumSet(flags).stream()
.map(PcapIfFlag::label)
Expand Down

0 comments on commit 3a0dddc

Please sign in to comment.