---
name: "dev_set_allmulti"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/dev_set_allmulti"
---

# dev\_set\_allmulti(9)

update allmulti count on a device

## NAME

dev\_set\_allmulti - update allmulti count on a device

## SYNOPSIS

**int dev\_set\_allmulti(struct net\_device \*** *dev***, int** *inc***);**

## ARGUMENTS

*dev*

device

*inc*

modifier

## DESCRIPTION

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 *inc* 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.

## COPYRIGHT
