Revision 72a6ef11 proto/bgp/bgp.c

View differences:

proto/bgp/bgp.c
78 78
  tm_start(t, value);
79 79
}
80 80

  
81
static int
82
bgp_rx(sock *sk, int size)
83
{
84
  DBG("BGP: Got %d bytes\n", size);
85

  
86
  return 1;				/* Start from the beginning */
87
}
88

  
89 81
static void
90 82
bgp_send_open(struct bgp_conn *conn)
91 83
{
92 84
  DBG("BGP: Sending open\n");
93 85
  conn->sk->rx_hook = bgp_rx;
94 86
  tm_stop(conn->connect_retry_timer);
95
  /* FIXME */
87
  bgp_schedule_packet(conn, PKT_OPEN);
96 88
  conn->state = BS_OPENSENT;
97 89
}
98 90

  
......
174 166
  s->data = conn;
175 167
  s->ttl = p->cf->multihop ? : 1;
176 168
  s->rbsize = BGP_RX_BUFFER_SIZE;
177
#if 0
169
  s->tbsize = BGP_TX_BUFFER_SIZE;
178 170
  s->tx_hook = bgp_tx;
179
#endif
180 171
  s->err_hook = bgp_err;
181 172
  s->tos = IP_PREC_INTERNET_CONTROL;
182 173

  
183 174
  conn->bgp = p;
184 175
  conn->sk = s;
176
  conn->packets_to_send = 0;
185 177

  
186 178
  t = conn->connect_retry_timer = tm_new(p->p.pool);
187 179
  t->hook = bgp_connect_timeout;

Also available in: Unified diff