summaryrefslogtreecommitdiff
path: root/promisc.h
blob: b290b929b0dd7d63e6564e0bef0f4073fd39d13e (plain)
1
2
3
4
5
6
7
#ifndef PROMISC_H
#define PROMISC_H

extern short enter_promiscuous_mode(char *ifname);
extern void leave_promiscuous_mode(char *ifname, short oldflags);

#endif /* PROMISC_H */
tion>mode:
authorDavid Howells <dhowells@redhat.com>2016-09-07 14:45:26 +0100
committerDavid Howells <dhowells@redhat.com>2016-09-07 15:30:22 +0100
commitf4fdb3525b247e1b4f9cc563641494c96c80f91a (patch)
tree1a8c55630fae2e945ca87f5960ffa5059a7b9dda
parentfff72429c2e83bdbe32dc7f1ad6398dfe50750c6 (diff)
rxrpc: Use call->peer rather than call->conn->params.peer
Use call->peer rather than call->conn->params.peer to avoid the possibility of call->conn being NULL and, whilst we're at it, check it for NULL before we access it. Signed-off-by: David Howells <dhowells@redhat.com>
Diffstat
-rw-r--r--net/rxrpc/call_object.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/rxrpc/call_object.c b/net/rxrpc/call_object.c