File tree 1 file changed +18
-0
lines changed
1 file changed +18
-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_char; 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,17 @@ 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
+
1311
+ // linux/if_packet.h
1312
+ pub const PACKET_ADD_MEMBERSHIP : :: c_int = 1 ;
1313
+ pub const PACKET_DROP_MEMBERSHIP : :: c_int = 2 ;
1314
+
1315
+ pub const PACKET_MR_MULTICAST : :: c_int = 0 ;
1316
+ pub const PACKET_MR_PROMISC : :: c_int = 1 ;
1317
+ pub const PACKET_MR_ALLMULTI : :: c_int = 2 ;
1318
+ pub const PACKET_MR_UNICAST : :: c_int = 3 ;
1319
+
1320
+
1303
1321
// linux/netfilter.h
1304
1322
pub const NF_DROP : :: c_int = 0 ;
1305
1323
pub const NF_ACCEPT : :: c_int = 1 ;
You can’t perform that action at this time.
0 commit comments