File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -229,6 +229,13 @@ s! {
229
229
pad: [ :: c_long; 4 ] ,
230
230
}
231
231
232
+ pub struct packet_mreq {
233
+ pub mr_ifindex: :: c_int,
234
+ pub mr_type: :: c_ushort,
235
+ pub mr_alen: :: c_ushort,
236
+ pub mr_address: [ :: c_uchar; 8 ] ,
237
+ }
238
+
232
239
pub struct cpu_set_t {
233
240
#[ cfg( all( target_pointer_width = "32" ,
234
241
not( target_arch = "x86_64" ) ) ) ]
@@ -1300,6 +1307,15 @@ pub const CTRL_ATTR_MCAST_GRP_UNSPEC: ::c_int = 0;
1300
1307
pub const CTRL_ATTR_MCAST_GRP_NAME : :: c_int = 1 ;
1301
1308
pub const CTRL_ATTR_MCAST_GRP_ID : :: c_int = 2 ;
1302
1309
1310
+ // linux/if_packet.h
1311
+ pub const PACKET_ADD_MEMBERSHIP : :: c_int = 1 ;
1312
+ pub const PACKET_DROP_MEMBERSHIP : :: c_int = 2 ;
1313
+
1314
+ pub const PACKET_MR_MULTICAST : :: c_int = 0 ;
1315
+ pub const PACKET_MR_PROMISC : :: c_int = 1 ;
1316
+ pub const PACKET_MR_ALLMULTI : :: c_int = 2 ;
1317
+ pub const PACKET_MR_UNICAST : :: c_int = 3 ;
1318
+
1303
1319
// linux/netfilter.h
1304
1320
pub const NF_DROP : :: c_int = 0 ;
1305
1321
pub const NF_ACCEPT : :: c_int = 1 ;
You can’t perform that action at this time.
0 commit comments