@@ -132,6 +132,8 @@ public final class PosixConstants {
132
132
public static final MandatoryIntConstant AF_UNSPEC ;
133
133
public static final MandatoryIntConstant AF_INET ;
134
134
public static final MandatoryIntConstant AF_INET6 ;
135
+ public static final OptionalIntConstant AF_PACKET ;
136
+ public static final MandatoryIntConstant AF_UNIX ;
135
137
public static final MandatoryIntConstant SOCK_DGRAM ;
136
138
public static final MandatoryIntConstant SOCK_STREAM ;
137
139
public static final MandatoryIntConstant INADDR_ANY ;
@@ -354,6 +356,9 @@ public final class PosixConstants {
354
356
AF_UNSPEC = reg .createMandatoryInt ("AF_UNSPEC" );
355
357
AF_INET = reg .createMandatoryInt ("AF_INET" );
356
358
AF_INET6 = reg .createMandatoryInt ("AF_INET6" );
359
+ // Following two aren't really supported, but we can fail later:
360
+ AF_PACKET = reg .createOptionalInt ("AF_PACKET" );
361
+ AF_UNIX = reg .createMandatoryInt ("AF_UNIX" );
357
362
SOCK_DGRAM = reg .createMandatoryInt ("SOCK_DGRAM" );
358
363
SOCK_STREAM = reg .createMandatoryInt ("SOCK_STREAM" );
359
364
INADDR_ANY = reg .createMandatoryInt ("INADDR_ANY" );
@@ -483,7 +488,7 @@ public final class PosixConstants {
483
488
waitOptions = new IntConstant []{WNOHANG , WUNTRACED };
484
489
accessMode = new IntConstant []{R_OK , W_OK , X_OK , F_OK };
485
490
rtld = new IntConstant []{RTLD_LAZY , RTLD_NOW , RTLD_GLOBAL , RTLD_LOCAL };
486
- socketFamily = new IntConstant []{AF_UNSPEC , AF_INET , AF_INET6 };
491
+ socketFamily = new IntConstant []{AF_UNSPEC , AF_INET , AF_INET6 , AF_PACKET , AF_UNIX };
487
492
socketType = new IntConstant []{SOCK_DGRAM , SOCK_STREAM };
488
493
ip4Address = new IntConstant []{INADDR_ANY , INADDR_BROADCAST , INADDR_NONE , INADDR_LOOPBACK , INADDR_ALLHOSTS_GROUP , INADDR_MAX_LOCAL_GROUP , INADDR_UNSPEC_GROUP };
489
494
gaiFlags = new IntConstant []{AI_PASSIVE , AI_CANONNAME , AI_NUMERICHOST , AI_V4MAPPED , AI_ALL , AI_ADDRCONFIG , AI_IDN , AI_CANONIDN , AI_NUMERICSERV };
0 commit comments