File: netwatch.c.rej

package info (click to toggle)
netdiag 0.7-2
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,464 kB
  • ctags: 1,261
  • sloc: ansic: 12,948; makefile: 288; awk: 130; sh: 71
file content (49 lines) | stat: -rw-r--r-- 1,281 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
***************
*** 382,389 ****
  void handle_frame (unsigned char *buf, int length, struct sockaddr *saddr);
  void handle_ip (struct ip *buf, int length);
  void processinetrc (unsigned char *netmask, unsigned char *local, int *peth);
- 
- 
  
  typedef void (*sigfunc) (int);
  
--- 383,391 ----
  void handle_frame (unsigned char *buf, int length, struct sockaddr *saddr);
  void handle_ip (struct ip *buf, int length);
  void processinetrc (unsigned char *netmask, unsigned char *local, int *peth);
+ int doeth(void);
+ int gh(int);
+ int dokeyin(void);
  
  typedef void (*sigfunc) (int);
  
***************
*** 1344,1356 ****
    updatecurrent (HOSTINFO * work, struct ip *buf, int length, int opt, int destlocal, int orglocal)
  {
    int x;
-   unsigned long wlen;
    static char tpr[30];
  /*
   * static unsigned char finpk[] = { 206, 248, 7, 5 };  
   */
  
-   wlen = (unsigned long) ntohs (buf->tot_len);
  /*
   * Update current entries 
   */
--- 1342,1354 ----
    updatecurrent (HOSTINFO * work, struct ip *buf, int length, int opt, int destlocal, int orglocal)
  {
    int x;
+   int wlen;
    static char tpr[30];
  /*
   * static unsigned char finpk[] = { 206, 248, 7, 5 };  
   */
  
+   wlen = ntohs (buf->tot_len);
  /*
   * Update current entries 
   */