diff options
Diffstat (limited to 'isisd')
-rw-r--r-- | isisd/isis_bpf.c | 2 | ||||
-rw-r--r-- | isisd/isis_pfpacket.c | 10 | ||||
-rw-r--r-- | isisd/isisd.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/isisd/isis_bpf.c b/isisd/isis_bpf.c index 88c3bfa63..5f3d70ed3 100644 --- a/isisd/isis_bpf.c +++ b/isisd/isis_bpf.c @@ -161,7 +161,7 @@ static int open_bpf_dev(struct isis_circuit *circuit) /* * And set the filter */ - memset(&bpf_prog, 0, sizeof(struct bpf_program)); + memset(&bpf_prog, 0, sizeof(bpf_prog)); bpf_prog.bf_len = 8; bpf_prog.bf_insns = &(llcfilter[0]); if (ioctl(fd, BIOCSETF, (caddr_t)&bpf_prog) < 0) { diff --git a/isisd/isis_pfpacket.c b/isisd/isis_pfpacket.c index d58cd1c5b..a448e0043 100644 --- a/isisd/isis_pfpacket.c +++ b/isisd/isis_pfpacket.c @@ -144,7 +144,7 @@ static int open_packet_socket(struct isis_circuit *circuit) /* * Bind to the physical interface */ - memset(&s_addr, 0, sizeof(struct sockaddr_ll)); + memset(&s_addr, 0, sizeof(s_addr)); s_addr.sll_family = AF_PACKET; s_addr.sll_protocol = htons(ETH_P_ALL); s_addr.sll_ifindex = circuit->interface->ifindex; @@ -233,7 +233,7 @@ int isis_recv_pdu_bcast(struct isis_circuit *circuit, uint8_t *ssnpa) addr_len = sizeof(s_addr); - memset(&s_addr, 0, sizeof(struct sockaddr_ll)); + memset(&s_addr, 0, sizeof(s_addr)); bytesread = recvfrom(circuit->fd, (void *)&llc, LLC_LEN, MSG_PEEK, @@ -306,7 +306,7 @@ int isis_recv_pdu_p2p(struct isis_circuit *circuit, uint8_t *ssnpa) int bytesread, addr_len; struct sockaddr_ll s_addr; - memset(&s_addr, 0, sizeof(struct sockaddr_ll)); + memset(&s_addr, 0, sizeof(s_addr)); addr_len = sizeof(s_addr); /* we can read directly to the stream */ @@ -351,7 +351,7 @@ int isis_send_pdu_bcast(struct isis_circuit *circuit, int level) struct sockaddr_ll sa; stream_set_getp(circuit->snd_stream, 0); - memset(&sa, 0, sizeof(struct sockaddr_ll)); + memset(&sa, 0, sizeof(sa)); sa.sll_family = AF_PACKET; size_t frame_size = stream_get_endp(circuit->snd_stream) + LLC_LEN; @@ -398,7 +398,7 @@ int isis_send_pdu_p2p(struct isis_circuit *circuit, int level) ssize_t rv; stream_set_getp(circuit->snd_stream, 0); - memset(&sa, 0, sizeof(struct sockaddr_ll)); + memset(&sa, 0, sizeof(sa)); sa.sll_family = AF_PACKET; sa.sll_ifindex = circuit->interface->ifindex; sa.sll_halen = ETH_ALEN; diff --git a/isisd/isisd.c b/isisd/isisd.c index 85307f448..996a62f4d 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -177,7 +177,7 @@ struct isis *isis_lookup_by_sysid(const uint8_t *sysid) void isis_master_init(struct thread_master *master) { - memset(&isis_master, 0, sizeof(struct isis_master)); + memset(&isis_master, 0, sizeof(isis_master)); im = &isis_master; im->isis = list_new(); im->master = master; |