---
name: "dev_set_promiscuity"
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_promiscuity"
---

# dev\_set\_promiscuity(9)

update promiscuity count on a device

## NAME

dev\_set\_promiscuity - update promiscuity count on a device

## SYNOPSIS

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

## ARGUMENTS

*dev*

device

*inc*

modifier

## DESCRIPTION

Add or remove promiscuity from a device. While the count in the device remains above zero the interface remains promiscuous. Once it hits zero the device reverts back to normal filtering operation. A negative inc value is used to drop promiscuity on the device. Return 0 if successful or a negative errno code on error.

## COPYRIGHT
