~ubuntu-branches/debian/sid/ettercap/sid

« back to all changes in this revision

Viewing changes to src/os/ec_bsd.c

  • Committer: Package Import Robot
  • Author(s): Gianfranco Costamagna
  • Date: 2015-04-26 23:37:53 UTC
  • mfrom: (25.1.3 experimental)
  • Revision ID: package-import@ubuntu.com-20150426233753-im0zda85pixmp34k
Tags: 1:0.8.2-2
Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
   /* open the socket to work on */
138
138
   sock = socket(PF_INET, SOCK_DGRAM, 0);
139
 
   if (sock = -1)
 
139
   if (sock == -1)
140
140
      FATAL_ERROR("Unable to open socket on interface for MTU query\n");               
141
141
   memset(&ifr, 0, sizeof(ifr));
142
142
   strncpy(ifr.ifr_name, iface, sizeof(ifr.ifr_name));