'\" t .\" Title: dev_set_allmulti .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Network device support .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "DEV_SET_ALLMULTI" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Network device support" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" dev_set_allmulti \- update allmulti count on a device .SH "SYNOPSIS" .HP \w'int\ dev_set_allmulti('u .BI "int dev_set_allmulti(struct\ net_device\ *\ " "dev" ", int\ " "inc" ");" .SH "ARGUMENTS" .PP \fIdev\fR .RS 4 device .RE .PP \fIinc\fR .RS 4 modifier .RE .SH "DESCRIPTION" .PP Add or remove reception of all multicast frames to a device\&. While the count in the device remains above zero the interface remains listening to all interfaces\&. Once it hits zero the device reverts back to normal filtering operation\&. A negative \fIinc\fR value is used to drop the counter when releasing a resource needing all multicasts\&. Return 0 if successful or a negative errno code on error\&. .SH "COPYRIGHT" .br