aboutsummaryrefslogtreecommitdiff
path: root/pcap-nit.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-nit.c')
-rw-r--r--pcap-nit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-nit.c b/pcap-nit.c
index 2aa84ba4..aedd12e5 100644
--- a/pcap-nit.c
+++ b/pcap-nit.c
@@ -285,7 +285,7 @@ pcap_activate_nit(pcap_t *p)
goto bad;
}
snit.snit_family = AF_NIT;
- (void)strncpy(snit.snit_ifname, p->opt.source, NITIFSIZ);
+ (void)strncpy(snit.snit_ifname, p->opt.device, NITIFSIZ);
if (bind(fd, (struct sockaddr *)&snit, sizeof(snit))) {
/*