summaryrefslogtreecommitdiffstats
path: root/bgpd/bgp_msg_write.c
diff options
context:
space:
mode:
Diffstat (limited to 'bgpd/bgp_msg_write.c')
-rw-r--r--bgpd/bgp_msg_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_msg_write.c b/bgpd/bgp_msg_write.c
index d61ba642..6ba76545 100644
--- a/bgpd/bgp_msg_write.c
+++ b/bgpd/bgp_msg_write.c
@@ -237,7 +237,7 @@ bgp_msg_send_open(bgp_connection connection, bgp_open_state open_state)
stream_putw(s, (open_state->my_as <= BGP_AS_MAX)
? (u_int16_t) open_state->my_as : BGP_AS_TRANS) ;
stream_putw(s, open_state->holdtime) ;
- stream_putl(s, open_state->bgp_id) ;
+ stream_put_ipv4(s, open_state->bgp_id) ;
/* Set OPEN message options */
bgp_open_options(s, open_state) ;